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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -