I need to be able to intersect the result of two queries based on a field
"ID". So if I do a search: 

Content2 = "something totally" and a search: Content1 = "something" I want
to return only Document 2 based on the field ID being the same.

Any tip on how to do this in Lucene, or should I go for an external
solution?

 

Document 1: 

ID = 500

Content1 = "something"

 

Document 2:

ID = 500

Content2 = "something totally"

 

Document 3:

ID = 501

Content2 = "something totally different"

 

 

Regards

Trond A Myklebust

 

Reply via email to