In the scheme I described the invoice id is simply another document field. You would construct a query for it the same way you construct a query for the other fields and combine them with whatever logical clauses you require.
For example, assuming field names of invoice_id, item_id, unit_price, queries might look like this: "invoice_id:1234 AND unit_price:12" "invoice_id:1234 AND (item_id:1 OR item_id:2)" "invoice_id:1234 AND NOT unit_price:12" - Neal -----Original Message----- From: Sailesh [mailto:[email protected]] Sent: Friday, April 08, 2011 1:54 AM To: [email protected] Subject: RE: Searching a group of associated multi-value fileds Thanks for the repose. But I have free more queries related your solution. In that case we need to perform two search operations, one for invoice id and other for invoice details. But if there is a scenario where we have to perform search on invoice and item fields at a time then how can we do it? -- View this message in context: http://lucene.472066.n3.nabble.com/Searching-a-group-of-associated-multi-value-fileds-tp2789957p2794346.html Sent from the Lucene - General mailing list archive at Nabble.com.
