[
https://issues.apache.org/jira/browse/LUCENE-2454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13000444#comment-13000444
]
Mark Harwood commented on LUCENE-2454:
--------------------------------------
bq. The intention is quite simple: allow a set of documents to be used to
provide a single score value during query searching
That's what the existing NestedDocumentQuery code attached to this issue
already provides. As far as I am concerned the search side works fine and I
have it installed in several live installations (along with a bug fix for
"skip" that I must remember to upload here). "Parent" filters as you suggest
benefit from caching and I typically use the XMLQueryParser with a
<CachedFilter> tag to take care of that (I need to upload the XMLQueryParser
extensions for this Nested stuff too).
The new "intention" that I think you added in your last post was more complex
and is related to indexing, not searching and introduced the idea that adding a
new child doc on its own should somehow trigger some automated repair of the
index contents. This repair would involve ensuring that related documents from
previous adds would be reorganised such that all related documents still
remained physically next to each other in the same segment.
I don't think a custom choice of "MergePolicy" is the class to perform this
operation - they are simply consulted as an advisor to pick which segments are
ripe for a background merge operation conducted elsewhere. The more complex
merge task you need to be performed here requires selective deletes of related
docs from existing segments and addition of the same documents back into a new
segment. This is a task I have always considered something the application code
should do rather than relying on Lucene to second-guess what index
reorganisation may be required. We could try make core Lucene understand and
support parent/child relationships more fully but I'd settle for this existing
approach with some added app-control over flushing as a first step.
> Nested Document query support
> -----------------------------
>
> Key: LUCENE-2454
> URL: https://issues.apache.org/jira/browse/LUCENE-2454
> Project: Lucene - Java
> Issue Type: New Feature
> Components: Search
> Affects Versions: 3.0.2
> Reporter: Mark Harwood
> Assignee: Mark Harwood
> Priority: Minor
> Attachments: LuceneNestedDocumentSupport.zip
>
>
> A facility for querying nested documents in a Lucene index as outlined in
> http://www.slideshare.net/MarkHarwood/proposal-for-nested-document-support-in-lucene
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]