fullscale / elastic.js

A JavaScript implementation of the elasticsearch Query DSL
http://docs.fullscale.co/elasticjs/
MIT License
654 stars 163 forks source link

Setting default_operator to AND #108

Open JoeDylanK opened 6 years ago

JoeDylanK commented 6 years ago

Spent hours attempting to change the default operator to AND for query string queries. Any ideas?

sudo-suhas commented 6 years ago

Hey @JoeDylanK, you could try elastic-builder if you are using elasticsearch@2 or higher. Here's the documentation link - https://elastic-builder.js.org/docs/#querystringquerybasedefaultoperator. You can also try it out in the online playground - https://elastic-builder.js.org/.