[Xapian-discuss] QueryParser, mapping a single prefix to multiple fields ?

Daniel Ménard Daniel.Menard at Bdsp.tm.fr
Thu Sep 14 18:34:43 BST 2006


>It shouldn't break existing code (since add_prefix and add_boolean_prefix
>currently don't work as intended when called a second time) but it would
>make it impossible to change the registered prefixes, and having to
>start from a fresh QueryParser is a pain if you just want to change one
>setting.
>  
>
I see the point... Perhaps that another option would be to accept as a 
parameter a space-separated-list of prefixes (which would be OR'ed). 
Calling add_prefix a second time with the same 'field' would overwrite 
the first call... Just an idea...

>But it's not an unreasonable thing to want to do, and I think it should
>be possible to allow it.  I'm in the middle of trying to sort out UTF-8 
>right now - can you file a wishlist bug so this doesn't get forgotten?
>  
>
Nice to see there's some hope ! In the meantime, I will do the job with 
some ugly search and replace code before feeding the queryparser.

I just filled a wishlist record in bugzilla:
http://www.xapian.org/cgi-bin/bugzilla/show_bug.cgi?id=93

I hope I did it well...

Thank you for your answer, Olly, and all the best with the UTF-8 thing...

P.S.: I have other enhancement ideas (like being able to use the 
ExpandDecider from the bindings).
Should I post on the list, so the things can be discussed, or should I 
directly file a whishlist bug ?

Best regards,

Daniel



More information about the Xapian-discuss mailing list