# Exact name match search - can't get it to work

**URL:** <https://discuss.elastic.co/t/exact-name-match-search-cant-get-it-to-work/20710>\
**Category:** Elasticsearch\
**Created:** [November 12, 2014, 3:26pm UTC](https://discuss.elastic.co/t/exact-name-match-search-cant-get-it-to-work/20710 "2014-11-12T15:26:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Alkire](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Robert\_Alkire](https://discuss.elastic.co/u/Robert_Alkire)\
**Post date:** [November 12, 2014, 3:26pm UTC](https://discuss.elastic.co/t/exact-name-match-search-cant-get-it-to-work/20710/1 "2014-11-12T15:26:48Z")

</div>

[https://gist.github.com/anonymous/b59ea5a6bbf308f8e562](https://gist.github.com/anonymous/b59ea5a6bbf308f8e562)

This is the definition of the problem.  
It seems that "index" : "not\_analyzed" is broken when using copy\_to fields

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ddd7c884-788d-4f92-a338-d193f5ed2948%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ddd7c884-788d-4f92-a338-d193f5ed2948%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [November 12, 2014, 3:37pm UTC](https://discuss.elastic.co/t/exact-name-match-search-cant-get-it-to-work/20710/2 "2014-11-12T15:37:18Z")

</div>

The terms are copied to the full name and are not analyzed as specified.  
However, two terms are being copied, not one. The term query expects a  
single token of "Jeremy Smith", while you have two separate non analyzed  
tokens.

Cheers,

Ivan  
On Nov 12, 2014 10:29 AM, "Robert Alkire" [dracomorbis@gmail.com](mailto:dracomorbis@gmail.com) wrote:

> [https://gist.github.com/anonymous/b59ea5a6bbf308f8e562](https://gist.github.com/anonymous/b59ea5a6bbf308f8e562)
> 
> This is the definition of the problem.  
> It seems that "index" : "not\_analyzed" is broken when using copy\_to fields
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/ddd7c884-788d-4f92-a338-d193f5ed2948%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ddd7c884-788d-4f92-a338-d193f5ed2948%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/ddd7c884-788d-4f92-a338-d193f5ed2948%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ddd7c884-788d-4f92-a338-d193f5ed2948%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDd%2BDiYy3zrQsyjZNQn09FY-E0o-np7FAtWnaTJ%2BPXcJw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDd%2BDiYy3zrQsyjZNQn09FY-E0o-np7FAtWnaTJ%2BPXcJw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Robert\_Alkire](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Robert\_Alkire](https://discuss.elastic.co/u/Robert_Alkire)\
**Post date:** [November 12, 2014, 4:33pm UTC](https://discuss.elastic.co/t/exact-name-match-search-cant-get-it-to-work/20710/3 "2014-11-12T16:33:10Z")

</div>

Ignore first link use this instead:  
[How can I make exact name match work with score of 1? · GitHub](https://gist.github.com/anonymous/7051eb01114d4cbf3160)  
I understand the composite now is composed of two tokens thus my query must  
be altered. If there is a better way to accomplish what I desire to do,  
please let me know.

On Wednesday, November 12, 2014 9:26:48 AM UTC-6, Robert Alkire wrote:

> [https://gist.github.com/anonymous/b59ea5a6bbf308f8e562](https://gist.github.com/anonymous/b59ea5a6bbf308f8e562)
> 
> This is the definition of the problem.  
> It seems that "index" : "not\_analyzed" is broken when using copy\_to fields

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b2ec8f58-b4cf-4180-a91d-dbee64f6682d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b2ec8f58-b4cf-4180-a91d-dbee64f6682d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:50am UTC](https://discuss.elastic.co/t/exact-name-match-search-cant-get-it-to-work/20710/4 "2017-07-06T00:50:27Z")

</div>


