Olly Betts
2004-May-11 17:30 UTC
[Xapian-devel] Re: [Xapian-commits] Changes in xapian/xapian-applications/queryserver/ xapian/xapian-applications/queryserver/source/
On Tue, May 11, 2004 at 05:41:58PM +0100, Richard Boulton wrote:> * If the queryserver can't parse a query, strip out all special > characters, and then retry. This means that we get some kind of > result even if the query is broken.That's probably a feature worth pushing down into Xapian::QueryParser... Cheers, Olly
Olly Betts
2004-May-13 16:55 UTC
Reparsing queries (was Re: [Xapian-devel] Re: [Xapian-commits] Changes in xapian/xapian-applications/queryserver/ xapian/xapian-applications/queryserver/source/)
On Tue, May 11, 2004 at 06:30:47PM +0100, Olly Betts wrote:> On Tue, May 11, 2004 at 05:41:58PM +0100, Richard Boulton wrote: > > * If the queryserver can't parse a query, strip out all special > > characters, and then retry. This means that we get some kind of > > result even if the query is broken. > > That's probably a feature worth pushing down into Xapian::QueryParser...I've now done this. It's essentially the same as the queryserver patch, except that "@" is also stripped. It seems arbitrary to leave "@" but to strip other phrase generators (especially "'" as then contractions such as "isn't" get broken up). As it is now it works well on the sample of real world queries from tweakers.net, whereas not stripping *any* phrase generators seems to do slightly less well. I think this is something to revisit after this is addressed: http://www.xapian.org/cgi-bin/bugzilla/show_bug.cgi?id=22 Thoughts? Cheers, Olly
Alex Bowley
2004-May-13 17:13 UTC
[Xapian-devel] Re: [Xapian-commits] Changes in xapian/xapian-applications/queryserver/ xapian/xapian-applications/queryserver/source/
On Tue, May 11, 2004 at 06:30PM, Olly Betts wrote:> That's probably a feature worth pushing down into Xapian::QueryParser...What is ::QueryParser? The name would suggest it takes strings (say of the form 'hotel AND (beach OR "swimming pool")' and converts them into ::Query objects. Is this correct (I can't see any reference to the class in the API docs)? I'm doing a fair amount of hacking on the Perl bindings atm, and it occurs to me that this would be a useful feature, even if I have to do it in the perl wrapper. IIrc, the python bindings do something similar - do they just use ::QueryParser under the hood? -- Alex Bowley http://hyperspeed.org/ "Written laws are like spider's webs; they will catch, it is true, the weak and the poor, but would be torn in pieces by the rich and powerful." - Anarcharsis
Apparently Analagous Threads
- Re: [Xapian-commits] 9476: trunk/xapian-core/ trunk/xapian-core/include/xapian/ trunk/xapian-core/queryparser/ trunk/xapian-core/tests/
- Make Xapian accept all characters
- Xapian .lemony files
- Re: [Xapian-commits] Changes in xapian/xapian-bindings/ xapian/xapian-bindings/python/docs/
- Problem getting Xapian working with Burmese