I will index for example:
<field name="price">19,95</field>
<field name="price">25,45</field>

I can only float with numbers with dots indexing.

Thanks

Am Mittwoch, den 08.05.2013, 10:52 +0200 schrieb Rafał Kuć <r....@solr.pl>:
Hello!

Use a float field type in your schema.xml file, for example like this:
<fieldType name="float" class="solr.TrieFloatField" precisionStep="0"
positionIncrementGap="0"/>

Define a field using this type:
<field name="price"  type="float" indexed="true" stored="true"/>

You'll be able to index data like this:
<field name="price">19.95</field>

--
Regards,
 Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

 Hi,
 how can I indexing numbers with decimal point.
 For example:
 5,50
 109,90

 I want to sort the numbers.

 Thanks


Reply via email to