cancel
Showing results for 
Search instead for 
Did you mean: 

How to query two types in lucene

nikhilesh_s1vak
Confirmed Champ
Confirmed Champ
Hello Team,

I was wondering how to query on two types in Apache lucene. I am trying to get the my custom type objects in a single query where the query should contain all the persons id which is again a lucene query formed by type persons. Now i want to club these two queries so that i can get two properties from persons (firstname, lastname) and my custom type properties from the my custom type.
Is there any way to get this type of solution in lucene. This is more like Joins Concept in RDBMS.

Please help if any one have an idea on this.

Thanks,
Nikhilesh
1 REPLY 1

nikes
Champ on-the-rise
Champ on-the-rise
Just a guess, you can try using OR operator between two types.