search - python elasticsearch query for boolean -
i have following query:
bool(must=[terms(avail_req=['available'], boost=2.0), terms(boost=2.0, sale_rent=['sale']), nested(path='listings', query=bool(should= [terms(boost=2.0, listings.parents_id=[80]), terms(boost=2.0, listings.loc_id=[80])]))])
now terms default without should
, must
query (for eg terms(boost=2.0, sale_rent=['sale'])) what?
as these should queries
query=bool(should= [terms(boost=2.0, listings.parents_id=[80]), terms(boost=2.0, listings.loc_id=[80])]))])
i getting results terms(boost=2.0, listings.parents_id=[80]) not other one
Comments
Post a Comment