richard at lemurconsulting.com
2007-Apr-21 22:25 UTC
[Xapian-devel] QueryParser::stoplist_begin() behaviour
I'm wondering what the intended semantics for the contents of the list returned by QueryParser::stoplist_begin() is. Currently, if a query parser is created, and then used multiple times, the list returned by stoplist_begin() is the list of all terms that have been excluded from any query due to being considered a stoplist. I would have expected it to only return items from the previous query. The documentation comment ("Iterate over terms omitted from the query as stopwords.") doesn't make it totally clear which is the intended behaviour (though if I had to guess, I'd guess that it should only return information for the previous query). By contrast, the list returned by unstem_begin() only refers to the previous query. Is anyone relying on the current behaviour, and would anyone object if I changed the behaviour to match that of unstem_begin()? -- Richard
On Sat, Apr 21, 2007 at 11:25:48PM +0100, richard at lemurconsulting.com wrote:> Is anyone relying on the current behaviour, and would anyone object if I > changed the behaviour to match that of unstem_begin()?This is most definitely a bug. I've committed the obvious fix, plus a regression test (I have a feeling I've fixed something very similar in a previous version of QueryParser!) Cheers, Olly
Possibly Parallel Threads
- QueryParser doesn''t use StandardAnalyzer correctly?
- [issue] The difference between QueryParser::FLAG_AUTO_SYNONYMS and QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS
- How to make QueryParser select entire word like "H.O.T"
- setting the default operator on a QueryParser
- QueryParser bug?