Re: Searching on plurals and phrases in a single field

2007-12-12 Thread Lucifer Hammer
Hi Erick, Thanks for the great idea, it's exactly the kind of suggestion I was looking for! Lucifer On Dec 12, 2007 2:34 PM, Erick Erickson <[EMAIL PROTECTED]> wrote: > I faced a very similar requirement and solved it by indexing multiple > tokens at the same place. For instance, say you're ind

Re: Searching on plurals and phrases in a single field

2007-12-12 Thread Erick Erickson
I faced a very similar requirement and solved it by indexing multiple tokens at the same place. For instance, say you're indexing the word "foxes". Index something like fox$ and foxes at the same position (see SynonymAnalyzer in Lucene In Action for an example). You probably MUST index the multiple

Searching on plurals and phrases in a single field

2007-12-12 Thread Lucifer Hammer
Hi, We've got a requirement that we need to give our users the ability to search on exact phrases within a field, or, if they prefer, they can match on plurals(either via stems, or another plural algorithm). However, the cases are mutually exclusive, for example given the following field in the