# Default\_operator trouble

**URL:** <https://discuss.elastic.co/t/default-operator-trouble/11643>\
**Category:** Elasticsearch\
**Created:** [April 19, 2013, 11:58am UTC](https://discuss.elastic.co/t/default-operator-trouble/11643 "2013-04-19T11:58:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tenhorses](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@tenhorses](https://discuss.elastic.co/u/tenhorses)\
**Post date:** [April 19, 2013, 11:58am UTC](https://discuss.elastic.co/t/default-operator-trouble/11643/1 "2013-04-19T11:58:47Z")

</div>

Hey

Trying to figure out how to use the default\_operator using a URI request.  
I'm searching for words / phrases in two different keys:

- Search for firstName contains "John"  
AND
- Search for note contains "Some testnotes"

See query below:

/contacts/\_search?q=+firstName:John+note:some%20testnotes&default\_operator=AND

However, elasticsearch returns records where "some" and "testnotes" are found separately in the "note" key.  
How can I solve this?

TIA

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:40am UTC](https://discuss.elastic.co/t/default-operator-trouble/11643/2 "2017-07-06T02:40:24Z")

</div>


