# Full text search: multi word

**URL:** <https://discuss.elastic.co/t/full-text-search-multi-word/137449>\
**Category:** Elasticsearch\
**Created:** [June 26, 2018, 2:17pm UTC](https://discuss.elastic.co/t/full-text-search-multi-word/137449 "2018-06-26T14:17:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefan10](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@stefan10](https://discuss.elastic.co/u/stefan10)\
**Post date:** [June 26, 2018, 2:17pm UTC](https://discuss.elastic.co/t/full-text-search-multi-word/137449/1 "2018-06-26T14:17:04Z")

</div>

When doing a full-text search against a field, is there an option to disable multiple words from the search phrase to be matched by the same term in a document field?

For instance:  
if we search against a 'name' field which has the following values in three different documents: 'Phill A', 'Phil B', 'Phill Phillips' and search term is 'Phill Ph\*', is there a way to get only the last document (with 'Phill Phillips' name) as a query result? If I am not missing something, all documents will be returned because both words, 'Phill' and 'Ph\*' would be matched by 'Phill' term in the 'name' field.

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [June 26, 2018, 3:53pm UTC](https://discuss.elastic.co/t/full-text-search-multi-word/137449/2 "2018-06-26T15:53:28Z")

</div>

See [Phrase prefix](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase-prefix.html) queries

---

<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 24, 2018, 3:53pm UTC](https://discuss.elastic.co/t/full-text-search-multi-word/137449/3 "2018-07-24T15:53:29Z")

</div>

Closed on July 24, 2018, 3:53pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
