[Xapian-discuss] correct use of stem

Alexander Lind malte at webstay.org
Mon Jan 15 20:25:31 GMT 2007


> Yes, it's much better to let the QueryParser do the stemming.  Just
> call Xapian::QueryParser::set_stemmer().
>   
Excellent, I will change to that today. I thought I must have been doing 
something wrong there.
> I'd say it's a mistake to try to manipulate user specified query strings
> before passing them to the QueryParser.  You'll essentially need to
> duplicate how the QueryParser parses a query string, but the exact
> handling of corner cases (especially in the case of oddly formed
> queries, such as a phrase search with unmatched quotes) is open to
> change, so even if you reverse engineer the current behaviour, it might
> change in a future release.
>   
Yes, that all makes sense. I'm definitely not out to reinvent any wheels 
here if they are already in Xapian.

Thanks!
Alec
> Cheers,
>     Olly
>
>   



More information about the Xapian-discuss mailing list