You can also enable indexed=true to avail range queries using the BKD Trees.
On Tue, 27 Jun, 2023, 5:54 pm Ishan Chattopadhyaya, < ichattopadhy...@gmail.com> wrote: > You can use an IntPointField with indexed=false, stored=false, > docValues=true. > > On Tue, 27 Jun, 2023, 3:23 pm Szűcs Roland, <szucs.rol...@bookandwalk.hu> > wrote: > >> Hi Solr developers, >> >> I would like to have a price field in Solr with integer type. I need to >> store it. In addition to show it in the search result, the only role of >> this field is to use it as a range filter. >> >> My question is what fieldType should I use as a best practice. I have read >> that: >> "For general numeric needs, consider using one of the IntPointField, >> LongPointField, FloatPointField, or DoublePointField classes, depending on >> the specific values you expect. These "Dimensional Point" based numeric >> classes use specially encoded data structures to support efficient range >> queries regardless of the size of the ranges used. Enable DocValues >> <https://solr.apache.org/guide/solr/latest/indexing-guide/docvalues.html> >> on >> these fields as needed for sorting and/or faceting." >> Based on this, am I correct that I should use InpointField with >> indexed="false" stored="true" docValues="true" for my use case? >> >> Thanks in advance, >> Roland >> >> P.S.: It is not clear at all what does "Dimensional Point" means for a >> scalar value >> >