You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Kuehn, Dennis" <De...@brands4friends.de> on 2014/07/16 11:51:04 UTC

TrieDateField, precisionStep impact on sorting performance

Hello,

I'd like to sort on a TrieDateField which currently has a precisionStep value of 6.
>From what I got so far, the precisionStep value only affects range query performance and index size.

However, the documentation for TrieDateField says:
'precisionStep="0" enables efficient date sorting and minimizes index size; precisionStep="8" (the default) enables efficient range queries.'

Does this mean sorting performance will suffer for precisionStep values other than 0?

Cheers,
Dennis

Re: TrieDateField, precisionStep impact on sorting performance

Posted by "Kuehn, Dennis" <De...@brands4friends.de>.
Thanks for clarifying!

Dennis



On 7/16/14 3:19 PM, "Yonik Seeley" <yo...@heliosearch.com> wrote:

>On Wed, Jul 16, 2014 at 5:51 AM, Kuehn, Dennis
><De...@brands4friends.de> wrote:
>> I'd like to sort on a TrieDateField which currently has a precisionStep
>>value of 6.
>> From what I got so far, the precisionStep value only affects range
>>query performance and index size.
>>
>> However, the documentation for TrieDateField says:
>> 'precisionStep="0" enables efficient date sorting and minimizes index
>>size; precisionStep="8" (the default) enables efficient range queries.'
>>
>> Does this mean sorting performance will suffer for precisionStep values
>>other than 0?
>
>No, sorting speed is unaffected by precisionStep.  That comment looks
>slightly misleading.
>
>-Yonik
>http://heliosearch.org - native code faceting, facet functions,
>sub-facets, off-heap data


Re: TrieDateField, precisionStep impact on sorting performance

Posted by Yonik Seeley <yo...@heliosearch.com>.
On Wed, Jul 16, 2014 at 5:51 AM, Kuehn, Dennis
<De...@brands4friends.de> wrote:
> I'd like to sort on a TrieDateField which currently has a precisionStep value of 6.
> From what I got so far, the precisionStep value only affects range query performance and index size.
>
> However, the documentation for TrieDateField says:
> 'precisionStep="0" enables efficient date sorting and minimizes index size; precisionStep="8" (the default) enables efficient range queries.'
>
> Does this mean sorting performance will suffer for precisionStep values other than 0?

No, sorting speed is unaffected by precisionStep.  That comment looks
slightly misleading.

-Yonik
http://heliosearch.org - native code faceting, facet functions,
sub-facets, off-heap data