Reputation: 3858
For storing a float type in a document these are two options with apparently overlapping functionalities. What's there difference? (I'm using lucene-solr 4.6)
Upvotes: 0
Views: 219
Reputation: 33351
FloatDocValuesField
is a DocValues
field. The idea is to provide values for a document that can be retrieved quickly, without having to resort to fetching the document from storage, for use, for example, in scoring (See: AtomicReader.getNumericDocValues
).
Generally, you should stick to FloatField
, etc. unless you need the functionality provided by the DocValues fields.
For further reading: Introducing Lucene Index Doc Values, or this brief description of it as pertains to Solr.
Upvotes: 1