hi alex, sounds like you are going to tackle a similar problem to what we're trying to do in our XML too -- as it looks like you've got a one-to-many type relationship you want to search over but return based on the top-level document -- similar to an an XML i.e. structured doc search problem
-- simon willnauer pointed me this slideshow at the apache conference in prague a little while ago which was the best solution i found (i went there to find one!!) and this is the one we are going to soon try and implement/extend to allow index/search over our XML docs: http://www.slideshare.net/MarkHarwood/proposal-for-nested-document-support-in-lucene hope that helps you too :) bec On 26 June 2010 01:39, Alexandre Leopoldo Gonçalves <a.l.goncal...@stela.org.br> wrote: > Hi All, > > I wonder if it is possible to create Lucene indexes with a multiple level > structure. For instance, > a field named "institutions" with all institutions I扉e worked and sub-fields > to detail my > contribution in a specific institution. > > The structure would be like this: > > field: name > content: person name > field: search > content: full text from a set of papers > field: institutions > content: institution_A subfield: position > content: manger > subfield: admission_year > content: 2001 > content: institution_B > subfield: position > content: professor > subfield: admission_year > content: 2006 > > After that, my intention is to query people which have worked with > "information retrieval" at "institution_A" > as "professor" and admission year >= "2006". > > Regards, > > Alex > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org