Suppose we have two entries for index "Phones" 1]iphone 6 2]iphone 7
1]if I search for "iphone 6" Exact match will have one record 2]if I search for "iphone" Partial match will have both record
So I want to toggle between above methods based on some condition. How can we do this in Elasticsearch ?