cancel
Showing results for 
Search instead for 
Did you mean: 

UNION lucene search

cybermakoki
Champ in-the-making
Champ in-the-making
hi!

I'd like to join two different lists, each one with a different lucene search. I've the problem that i can't use functions like "addAll" or "add" in javascript….

¿Any idea?
2 REPLIES 2

jpfi
Champ in-the-making
Champ in-the-making
Hi,
why not simply combining your two queries into one with OR:
query = "("+query1+") OR ("+query2+")"
cheers, jan

cybermakoki
Champ in-the-making
Champ in-the-making
If I do that, if the first condition is true, it doesn't look the second one. Finally I've do the following and it seems to work ok:

var queryUnion = query union query1