oh...@cox.net wrote:
Document1                 subdoc1 term1 term2
                                      subdoc2 term1a term2a
                                      subdoc3 term1b term2b

However, I've now been asked to implement the ability to query the sub-documents.
In other words, rather than the web app displaying what I showed above, they 
want it to return something like just:

Document1                 subdoc2 term1a term2a

Just checking here... you only want to match where the terms are in specific sub-documents? That is, if someone searches for 'term1a AND term2b', what do you want to see? Nothing (because no sub-document matches both terms)? Or subdoc2 and subdoc3, because they're both part of the reason that Document1 matched?

If the former, then just indexing each sub-doc as a separate document (duplicating the document-level information) may be the simplest option.

Cheers,

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to