[Xapian-discuss] Value field Query and case sensitivity
Colin Bell
colinabell at gmail.com
Thu Apr 10 12:05:32 BST 2008
Thanks Andreas
The data held in the value fields are displayed during search results,
so things like names of authors etc need to maintain their proper noun
case sensitivity.
Does anyone know if and where I would modify the Xapian source code to
lowercase the values before it does a value field match? Is this an
option?
On 10 Apr 2008, at 11:54, Andreas Marienborg wrote:
>
> 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