Hello, I have a problem with QueryParser. Terms in database contain chars like '#!()@_'. I don't know how to search that terms using wildcard. e.g. term in db: XTERMaaa#bbb query: term:aaa!b* sending this to queryparser will give me: Xapian::Query(XTERMaaa:(pos=1)) (I use STEM_NONE as stemming_strategy) and of course it doesn't match anything. When query looks like 'aaa*' everything works fine. So is it possible to use a wildcard with not alnum chars in query? Tom
On Fri, Oct 27, 2006 at 02:00:31PM +0200, Tomasz Jackowiak wrote:> I have a problem with QueryParser. Terms in database contain chars > like '#!()@_'.QueryParser currently won't treat any of these characters as part of a term when tokenising terms from the query string. It ought to handle this better, but at present I'm afraid you'll have to either parse the query string yourself, or modify the QueryParser code. Cheers, Olly