[Xapian-discuss] Stemming and Query Parsing
Mike Boone
mike at boonedocks.net
Mon Oct 18 18:58:16 BST 2004
Hi Olly,
I wasn't able to find C_isnotsign in the xapian-core code...can you point me
to it? I did find some code that looks like it handles the extra characters
in the function yylex2() of queryparser.cc (also in queryparser.yy - what's
a .yy file?). Is this the correct place to modify the code, or should I look
elsewhere?
Thanks,
Mike.
-----Original Message-----
From: Olly Betts [mailto:olly at survex.com]
Sent: Sunday, October 17, 2004 8:27 PM
Subject: Re: [Xapian-discuss] Stemming and Query Parsing
Are you indexing "c#" as a term? Our indexers (omindex and scriptindex)
currently don't (which ought to be fixed next time we make indexing
changes), and the QueryParser is set up in line with this - there's no
point it generating search terms not in the index.
If you do have "c#" as a term, you'll have to modify the queryparser
source for now as this isn't currently configurable. Look for the call
to C_isnotsign - currently this keeps trailing + and - in the term (e.g.
C++, Cl-, Mg2+). You also want to allow "#" here.
More information about the Xapian-discuss
mailing list