On 6/28/07, Jérôme Etévé <[EMAIL PROTECTED]> wrote:
Hi, I have an index which I generated with clucene where there is a float field. This float field is stored as a simple verbatim character string.
Then you should be able to use FloatField (normally of type "float" in the schema).
The solr schema doc states that for such float fields: <!-- numeric field types that store and index the text value verbatim (and hence don't support range queries, since the lexicographic ordering isn't equal to the numeric ordering) --> And for sortable float fields: <!-- Numeric field types that manipulate the value into a string value that isn't human-readable in its internal form, but with a lexicographic ordering the same as the numeric ordering, so that range queries work correctly. --> What does exactly means 'a string value that isn't human-readable in its internal form' ? Does that mean that such a field as to be indexed as a binary representation of the number to allow the use of the sfloat type ?
It's munged binary into a string such that the lucene term ordering (lexicographic) will match the numeric ordering. -Yonik