From 4bd16f053847f2efe347ebda9136ef2233ee0d2c Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 28 Apr 2009 00:15:53 +0200 Subject: added thinking_sphinx plugin for fulltext search on nodes and heads --- .../thinking-sphinx/lib/thinking_sphinx/class_facet.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/class_facet.rb (limited to 'vendor/plugins/thinking-sphinx/lib/thinking_sphinx/class_facet.rb') diff --git a/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/class_facet.rb b/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/class_facet.rb new file mode 100644 index 0000000..cb301b8 --- /dev/null +++ b/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/class_facet.rb @@ -0,0 +1,15 @@ +module ThinkingSphinx + class ClassFacet < ThinkingSphinx::Facet + def name + :class + end + + def attribute_name + "class_crc" + end + + def value(object, attribute_value) + object.class.name + end + end +end -- cgit v1.3