[Xapian-discuss] I can't get prefixes to work
Jim
jim at fayettedigital.com
Wed Oct 31 11:00:57 GMT 2007
Olly Betts wrote:
> On Tue, Oct 30, 2007 at 08:35:11PM -0400, Jim wrote:
>
>> Xapian, omega and scriptindex version 1.0.3 from HEAD about a week ago.
>>
>>
>> This is from omega FMT=godmode.
>> 1 XRULERule_237
>>
>
> Note that this will be parsed as prefix "XRULER" on term "ule_237".
>
> If you want to add an X-prefix to a term which starts with a capital
> letter, you need to insert a colon so it's clear where the prefix ends
> and the term begins, which is why the QueryParser generates this:
>
>
>> Running query Xapian::Query(XRULE:Rule_237)
>>
>
> So scriptindex is wrong for not inserting a ':' in this case.
>
> Cheers,
> Olly
>
>
OK so should I change this line in my data:
rule=Rule_237
To
rule=:Rule_237
?
Thanks,
Jim.
More information about the Xapian-discuss
mailing list