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

Rename FieldValueQuery to DocValuesFieldExistsQuery

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0, 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      I don't think we have a query today to efficiently test whether a doc values field exists (has any value) for each document in the index?

      Now that we use iterators to access doc values, this should be an efficient query: we can return the DISI we get for the doc values.

      ElasticSearch indexes its own field to record which field names occur in a document, so it's able to do "exists" for any field (not just doc values fields), but I think doc values fields we can just get "for free".

      I haven't started on this ... just wanted to open the issue first for discussion.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment