Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9528

Make _docid_ (lucene id) a pseudo field

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 7.0
    • None
    • None
    • None

    Description

      Lucene document id is a transitory id that cannot be relied on as it can change on document updates, etc.

      However, there are circumstances where it could be useful to use it in a search. The primarily use is a debugging where some error messages provide only lucene document id as the reference. For example:

      child query must only match non-parent docs, but parent docID=38200 matched childScorer=class org.apache.lucene.search.DisjunctionSumScorer
      

      We already expose the lucene id with [docid] transformer with _docid_ sorting.

      On the email list, yonik@apache.org proposed that docid should be a legitimate pseudo-field, which would make it returnable, usable in function queries, etc.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              arafalov Alexandre Rafalovitch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: