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
- is related to
-
LUCENE-7452 improve exception message: child query must only match non-parent docs, but parent docID=180314...
- Closed
- relates to
-
LUCENE-4968 Several ToParentBlockJoinQuery/Collector issues
- Closed