[Xapian-discuss] Indexing, searching and sorting signed integers

Olly Betts olly at survex.com
Sat Jul 6 00:03:33 BST 2013


On Fri, Jul 05, 2013 at 04:27:43PM +0200, Oliver Flimm wrote:
> with year:-59 as $fullquerystring and X7 as the search prefix for year.
> 
> I would have expected X7-59 for the internal query term... And of
> course I only got results for a positive term 59 ;-)

It works if you set year as a boolean prefix, which is what you almost
certainly want to do anyway:

$ examples/quest -byear:X7 "rome year:-59"
Parsed Query: Query((Zrome at 1 FILTER X7-59))

Cheers,
    Olly



More information about the Xapian-discuss mailing list