[Xapian-discuss] queries on numerical fields not working

gervin23 gervin23 at fastmail.fm
Tue Sep 28 10:23:22 BST 2004


ah yes, i just ran across the code in queryparser.cc that differentiates 
the two. not a biggy since this particular instance can be handled in 
the search script before issuing set_prefix().

thanks much,
andrew

Olly Betts wrote:

> On Mon, Sep 27, 2004 at 03:16:23AM -0600, gervin23 wrote:
> 
>>'Xapian::Query(Fmonth:june:(pos=1))' returns hits
>>'Xapian::Query(Fyear::2004:(pos=1))' returns no hits
> 
> 
> The code in QueryParser expects prefixes to be all uppercase and/or
> digits.  It then adds a colon if the term starts with uppercase or
> a digit, to disambiguate where the term starts.  It doesn't expect
> you to add your own colon in the prefix.
> 
> However, it would be easy to tweak it to support your usage.  I'll
> check something in shortly.
> 
> Cheers,
>     Olly



More information about the Xapian-discuss mailing list