Saturday 15 June 2013

elasticsearch - Combining Elastic Search Queries -



elasticsearch - Combining Elastic Search Queries -

i using elasticsearch , combine 2 sets of query results 1 query if possible.

i using 3 fields this.

first query want 5 results have field "featured" value "1" fuzzy match term "seo" in fields "title" , "description".

then want remainder of results fuzzy match term "seo" in fields "title" , "description" featured "0".

i unsure if limit 5 can used. ideas anyone. if need more info please allow me know.

thanks in advance.

consider merging 2 queries 1 bool query "should" clause.

elasticsearch match fuzzy-search

No comments:

Post a Comment