Not clearly understanding your question here. if your query is q=kind:animal weight:50 you will get no results, as nothing matches (assuming a q.op of AND)
On Thu, Feb 14, 2019 at 4:06 PM Nicolas Paris <nicolas.pa...@riseup.net> wrote: > Hi > > I have a numeric field (say "weight") and I d'like to be able to get > results sorted. > q=kind:animal weight:50 > pf=kind^2 weight^3 > > would return: > name=dog, kind=animal, weight=51 > name=tiger, kind=animal,weight=150 > name=elephant, kind=animal,weight=2000 > > > In other terms how to deal with numeric fields ? > > My first idea is to encode numeric into letters (one x per value) > dog xxxxxxxxxxxxxxxxxxxxxxxxx > tiger xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > elephant > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > and the query would be > kind:animal, weight:xxxxxxxxxxxxxxxxxxxxxxx > > > How to deal with numeric fields ? > > Thanks > -- > nicolas >