Re: Searching accross 2 fields

2012-05-22 Thread mark harwood
s, Mark ____ From: Mohit Anchlia To: java-user@lucene.apache.org Sent: Monday, 21 May 2012, 23:32 Subject: Re: Searching accross 2 fields Thanks! Are there any good examples I can look at? In some cases it's the nested document in other cases it's within the

Re: Searching accross 2 fields

2012-05-21 Thread Mohit Anchlia
Thanks! Are there any good examples I can look at? In some cases it's the nested document in other cases it's within the same document. Something like: In below example I want to search for form.id = 1040 and name = age and value = 20 and return only doc1. Does this also fall under "cross matchin

Re: Searching accross 2 fields

2012-05-21 Thread Mark Harwood
You're describing what I call the "cross matching" problem if you flatten nested, repeating structures with multiple fields into a single flat Lucene document model. The approach for handling the more complex mappings is to use nested child docs in Lucene and for that look at BlockJoinQuery. Ho