[
https://issues.apache.org/jira/browse/LUCENE-2454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051662#comment-13051662
]
Paul Elschot commented on LUCENE-2454:
--------------------------------------
With these rewrite and createWeight methods TestNestedDocumentQuery passes:
{code}
+ @Override
+ public Query rewrite(IndexReader reader) throws IOException {
+ Query rewrittenChildQuery = childQuery.rewrite(reader);
+ return (rewrittenChildQuery == childQuery) ? this
+ : new NestedDocumentQuery(rewrittenChildQuery, parentsFilter, scoreMode);
+ }
+
+ @Override
+ public Weight createWeight(IndexSearcher searcher) throws IOException {
+ return new NestedDocumentQueryWeight(childQuery.createWeight(searcher));
+ }
+
{code}
I'll continue adding the use of prevSetBit.
Would modules/grouping meanwhile be a better place for this than
lucene/contrib/queries?
> Nested Document query support
> -----------------------------
>
> Key: LUCENE-2454
> URL: https://issues.apache.org/jira/browse/LUCENE-2454
> Project: Lucene - Java
> Issue Type: New Feature
> Components: core/search
> Affects Versions: 3.0.2
> Reporter: Mark Harwood
> Assignee: Mark Harwood
> Priority: Minor
> Attachments: LUCENE-2454.patch, 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]