How would I do that?

Here is the current definition of the field:
    <fieldType name="tlong" class="solr.TrieLongField"
docValues="true" precisionStep="8" positionIncrementGap="0"/>

I can see that under the covers it makes a choice between DocValues
and LegacyNumericRangeQuery based on whether the field is indexed.

So, do I use a different non-Trie type for this range use-case? I did
a quick search through JIRAs, but can't seem to find one.

Regards,
   Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 20 August 2016 at 02:24, Michael McCandless
<[email protected]> wrote:
> You should use dimensional points for range searching now.
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>
> On Fri, Aug 19, 2016 at 12:02 PM, Alexandre Rafalovitch <[email protected]>
> wrote:
>>
>> Hi,
>>
>> I was looking at the type definitions in our examples and we have
>> numerics with precisionStep=0 and those with precisionStep=8. But the
>> documentation that explains why the later are useful
>> (NumericRangeQuery) is now a (LegacyNumericRangeQuery) and the source
>> code seems to show that docValues can (should?) be used instead.
>>
>> So, are the additional types with non-zero precisionStep still have
>> their place? Or can we just use a single numeric type and add
>> docValues if they will be used with range queries?
>>
>> Regards,
>>    Alex.
>>
>> ----
>> Newsletter and resources for Solr beginners and intermediates:
>> http://www.solr-start.com/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to