Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7461

Refactor doc values queries to better use the new doc values APIs

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The new doc values APIs make it easy to implement a TwoPhaseIterator, and things are going to be faster in the sparse case since we can use the doc values object as an approximation.

      1. LUCENE-7461.patch
        22 kB
        Adrien Grand

        Issue Links

          Activity

          Hide
          jpountz Adrien Grand added a comment -

          Here is a patch. I also removed RandomAccessWeight since it was almost only used for doc values queries.

          Show
          jpountz Adrien Grand added a comment - Here is a patch. I also removed RandomAccessWeight since it was almost only used for doc values queries.
          Hide
          dsmiley David Smiley added a comment -

          Ah; I see – now possible since SortedSetDocValues extends DISI.

          +1 patch looks good.

          Show
          dsmiley David Smiley added a comment - Ah; I see – now possible since SortedSetDocValues extends DISI. +1 patch looks good.
          Hide
          mikemccand Michael McCandless added a comment -

          +1, nice

          Show
          mikemccand Michael McCandless added a comment - +1, nice
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 212b1d846235b06ec40fdf27cb969838072dca95 in lucene-solr's branch refs/heads/master from Adrien Grand
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=212b1d8 ]

          LUCENE-7461: Refactor doc values queries to leverage the new iterator API.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 212b1d846235b06ec40fdf27cb969838072dca95 in lucene-solr's branch refs/heads/master from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=212b1d8 ] LUCENE-7461 : Refactor doc values queries to leverage the new iterator API.

            People

            • Assignee:
              jpountz Adrien Grand
              Reporter:
              jpountz Adrien Grand
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development