[ 
https://issues.apache.org/jira/browse/LUCENE-2454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12878782#action_12878782
 ] 

Mark Harwood commented on LUCENE-2454:
--------------------------------------

bq.  I wonder if potentially many places in Solr would have to be become aware 
of this scheme 

Supporting multiple doc types in this way can be a big modelling change. Not 
everyone needs it so I suspect that may be a hard sell to the Solr crowd.

bq. Another nice thing about the parallel index is that the idf relevancy 
factor stays clean

I have an "IDF compensating" wrapper query that takes care of that. It wraps a 
child query to then wrap the Similarity class in use and adjusts IDF 
calculations to be based on the number of documents of the required type. I'll 
attach it here when I get a chance.

bq. Before I saw this issue, I was going to try something with SpanNearQuery 
and the masking-field variant.

I went through a similar thought process around using position info to make 
this stuff work. This child-doc approach used here seems the cleanest by far.

> 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-1.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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to