ruby on rails - Tire and elastic search query behavior -
i'm using tire wrap search behavior in rails app. i'm not doing special configuration yet, i'm running issue here:
i have 'foo bar'
string inside indexed model, , if search either 'foo'
or 'foo bar'
, record matches, if i'm doing 'hello bar'
, record still found.
is there configuration can stop happening? meaning if not terms found, discard result
as stated in doc, can change default operator, in case, use and
query string 'ruby python', :default_operator => 'and' end
Comments
Post a Comment