Excerpts from Aldous D. Penaranda's message of Fri Jan 19 01:33:51 -0800 2007: > Is there a way to make ferret recognize the 'and' inside the query as > a search term and not an operator? (I hope I got the terminology > right)
You need to use an Analyzer that does not remove 'and'. The default analyzer removes all words in FULL_ENGLISH_STOP_WORDS, which includes 'and'. (So does ENGLISH_STOP_WORDS.) The analyzer needs to be used both while adding documents to the index and when parsing the query parsing time (i.e. passed to both QueryParser.new and IndexWriter.new/Index.new). If you've been using the default analyzer, you'll have to reindex so that the occurrences of 'and' get written to disk. -- William <[EMAIL PROTECTED]> _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

