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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -