polyfractal / sherlock

MIT License
119 stars 28 forks source link

Match() query deviates from ElasticSearch default #53

Closed kwisatz closed 11 years ago

kwisatz commented 11 years ago

Hi, is there a specific reason, why the Match() query has operator set to and as a default when ElasticSearch sets it to or?

The default match query is of type boolean. It means that the text provided is analyzed and > the analysis process constructs a boolean query from the provided text. The operator flag > can be set to or or and to control the boolean clauses (defaults to or). (http://www.elasticsearch.org/guide/reference/query-dsl/match-query/)

polyfractal commented 11 years ago

No specific reason...likely just a typo.

I'm going to leave it alone for now, since the resolution of #30 will take care of the issue (and prevent breaking what people are using in the mean time).