[Xapian-discuss] Searching for numbers?
Marcus Ramberg
marcus at startsiden.no
Mon Nov 7 08:22:56 GMT 2005
On 5. nov. 2005, at 21.33, Olly Betts wrote:
> On Thu, Nov 03, 2005 at 05:29:18PM +0100, Marcus Ramberg wrote:
>
>> Hey, it looks like queries with numbers return 0 hits in my Xapian
>> search database. The query parser seems to handle them allright,
>> anyone got a clue why they fail? for example, a search for xbox 360
>> or E6 returns 0 hits, and I can easily see I have entries with these
>> terms.
>>
>
> The way I'd debug this is to check what QueryParser produces in the
> Query object. Print the string returned by Query::get_description()
> which will show the terms in the query.
Thanks for the tips. Actually, the cause for this was my tokenizer,
which stripped numbers. :(
Marcus
More information about the Xapian-discuss
mailing list