Search for -1 in Solr
Posted
by Znarkus
on Stack Overflow
See other posts from Stack Overflow
or by Znarkus
Published on 2010-06-04T06:48:08Z
Indexed on
2010/06/04
6:49 UTC
Read the original article
Hit count: 283
Hi!
I have an optional property of type pfloat, that can either be an encoded numeric value, or -1 if the property is not set. Numerics are encoded to be range searchable (1 is encoded to something like 10000000001), but -1 will always be -1.
How can I search a field for -1?
property:-1
throws parse error and property:'-1'
doesn't return anything.
Thanks for help!
© Stack Overflow or respective owner