[Xapian-discuss] Value field Query and case sensitivity
Andreas Marienborg
andreas at startsiden.no
Thu Apr 10 11:54:41 BST 2008
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
More information about the Xapian-discuss
mailing list