You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sujatha Arun <su...@gmail.com> on 2012/03/28 19:51:16 UTC
Range Queries -sfloat
Hello,
I am having an issue with range query in solr 1.3 .
query is price: [ 1 TO 20 ] is returning values out of this range ,like
23.00 AND 55.00 .The field type of the price field is sfloat .
When I check this form admin Debug query ,I am seeing junk instead of price.
example:
<str name="rawquerystring">price:[ 1 TO 20 ]</str>
<str name="querystring">price:[ 1 TO 20 ]</str>
<str name="parsedquery">price:[1.0 TO 20.0]</str>
<str name="parsedquery_toString">price:[¿ࠀ#0; TO Á#0;]</str>
Why is this happenning ?
Regards
Sujatha
Re: Range Queries -sfloat
Posted by Chris Hostetter <ho...@fucit.org>.
: query is price: [ 1 TO 20 ] is returning values out of this range ,like
: 23.00 AND 55.00 .The field type of the price field is sfloat .
can you provide more details about the documents matching out of the
range? are you sure this isn't a multivalued field?
: When I check this form admin Debug query ,I am seeing junk instead of price.
...
: <str name="parsedquery">price:[1.0 TO 20.0]</str>
: <str name="parsedquery_toString">price:[¿ࠀ#0; TO Á#0;]</str>
:
: Why is this happenning ?
this is expected from the "toString" because the SortableFloatField uses a
special byte encoding of the numeric values so that "term order" matches
numeric order.
-Hoss