Hi All I'm search a value field and was wondering if there was a way to make it case insensitive. So that a search for "ARTHUR" returns "ARTHUR" or "Arthur" or "arthur" fieldMatchFilter = Query(Query::OP_VALUE_RANGE, fieldValueInt, textMatcher, textMatcher); Thanks Colin
Andreas Marienborg
2008-Apr-10 10:54 UTC
[Xapian-discuss] Value field Query and case sensitivity
On Apr 10, 2008, at 12:41 PM, Colin Bell wrote:> Hi All > > I'm search a value field and was wondering if there was a way to make > it case insensitive. So that a search for "ARTHUR" returns "ARTHUR" or > "Arthur" or "arthur" > > fieldMatchFilter = Query(Query::OP_VALUE_RANGE, fieldValueInt, > textMatcher, textMatcher);I would do it by lowercasing the values before indexing, and then also lowercasing any terms I search for in the fields. - andreas