lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Granroth, Neal V." <>
Subject RE: Searching a group of associated multi-value fileds
Date Fri, 08 Apr 2011 14:49:02 GMT

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 [] 
Sent: Friday, April 08, 2011 1:54 AM
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:
Sent from the Lucene - General mailing list archive at

View raw message