Precision_step - number or string?

In the official documentation precision_step is called as "number", but in
examples value is wrapped into double-qoutes: "precision_step" : "0" So, in
json terms, is it a string or a number? Is there more precision definition
of precision_step?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

The value can be either a string or number since the code knows how to
interpret both:
https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/mapper/core/TypeParsers.java#L54

The precision step is a Lucene-level concept and you can read more about it
on the Lucene site:
http://lucene.apache.org/core/4_3_0/core/org/apache/lucene/search/NumericRangeQuery.html#precisionStepDesc

On Sat, Jun 1, 2013 at 11:26 PM, Andrew Gaydenko
andrew.gaydenko@gmail.comwrote:

In the official documentation precision_step is called as "number", but
in examples value is wrapped into double-qoutes: "precision_step" : "0"So, in json terms, is it a string or a number? Is there more precision
definition of precision_step?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ivan, thanks for the clarification and refs!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.