[Xapian-devel] FLAG_BOOLEAN_ANY_CASE does not work

Olly Betts olly at survex.com
Tue Mar 7 13:15:26 GMT 2006

On Tue, Mar 07, 2006 at 06:39:29PM +0900, Sungsoo Kim wrote:
> In the following code in queryparser.lemony, I think every "term"
> within if () condition should be changed to "lcterm". I attach a patch
> file to fix this.
>                     } else if (flags & FLAG_BOOLEAN_ANY_CASE) {
>                         string lcterm = downcase_term(term);
>                         if (term == "and") {
>                             Parse(pParser, AND, NULL, &state);
>                             continue;
>                         } else if (term == "or") {

As you say, it ought to be using lcterm (at least if we want 'woman And
man' to work.  But I can't see why your example ('woman and man')
doesn't already work since we check '(term == "and")'.

How are you setting FLAG_BOOLEAN_ANY_CASE?


More information about the Xapian-devel mailing list