[Xapian-discuss] Stemming and Quoted Phrases
olly at survex.com
Fri Oct 19 04:25:47 BST 2007
On Wed, Oct 17, 2007 at 08:11:01PM -0400, Mike Boone wrote:
> It might be nice to search an exact phrase, but searching a stemmed
> phrase is good enough for my purposes, and eliminates the need to
> index the full term. In my application, a potential user would
> probably be happy if a search for "chemical engineering" also bought
> up results like "chemical engineers".
> It would be nice if there were some flag directive where I could tell
> the query parser to both stem and set the word positions. Maybe that
> already exists, but I'm not sure which flag(s) to use.
If you're only indexing stemmed forms then use QueryParser::STEM_ALL.
That should do what you want.
More information about the Xapian-discuss