fullscale / elastic.js

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

Fix documentation; "OR" is not Google's default operator #40

Closed bgrainger closed 10 years ago

bgrainger commented 10 years ago

ElasticSearch uses OR as the default operator for a query_string query if no operator is specified.

The elasticjs documentation says that this is the "same as Google". This is not true; Google uses AND as its default Boolean operator.

For example, see Google Advanced Search which requires "OR" to be typed for an OR query, but will search for "all these words" (i.e., an AND query) if no operator is used.

brubrant commented 10 years ago

True. I've noticed the same error.