You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2016/11/23 15:31:59 UTC

[jira] [Updated] (LUCENE-7572) Cache the hashcode of the doc values terms queries

     [ https://issues.apache.org/jira/browse/LUCENE-7572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrien Grand updated LUCENE-7572:
---------------------------------
    Attachment: LUCENE-7572.patch

Here is a patch. DocValuesTermsQuery and DocValuesNumbersQuery now compute a hashCode in constant time. DocValuesTermsQuery was also switched to PrefixCodedTerms to be more consistent with TermsQuery and DocValuesNumbersQuery switched to a hash set of primitive longs to avoid having to box all terms.

> Cache the hashcode of the doc values terms queries
> --------------------------------------------------
>
>                 Key: LUCENE-7572
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7572
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-7572.patch
>
>
> DocValuesNumbersQuery and DocValuesTermsQuery can potentially wrap a large number of terms so it would help if we cached their hashcode.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org