# Elasticsearch splitting the token

**URL:** <https://discuss.elastic.co/t/elasticsearch-splitting-the-token/14849>\
**Category:** Elasticsearch\
**Created:** [December 13, 2013, 6:00am UTC](https://discuss.elastic.co/t/elasticsearch-splitting-the-token/14849 "2013-12-13T06:00:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![deep\_saxena](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@deep\_saxena](https://discuss.elastic.co/u/deep_saxena)\
**Post date:** [December 13, 2013, 6:00am UTC](https://discuss.elastic.co/t/elasticsearch-splitting-the-token/14849/1 "2013-12-13T06:00:38Z")

</div>

If we fire the query A=B, then it splits the token into two and gives  
result A ,B and A=B ,

Expected :- I only want A=B not any other result. can any body help on  
this, what settings could be done in the config file to get it over???

--  
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/40e2313f-d127-4df4-9671-4ea1f7802e5c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/40e2313f-d127-4df4-9671-4ea1f7802e5c%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 13, 2013, 6:10am UTC](https://discuss.elastic.co/t/elasticsearch-splitting-the-token/14849/2 "2013-12-13T06:10:23Z")

</div>

It depends on your mapping for the field you are querying on.  
Don't analyze this field and you're done.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 13 déc. 2013 à 07:00, deep saxena [sandy100ster@gmail.com](mailto:sandy100ster@gmail.com) a écrit :

If we fire the query A=B, then it splits the token into two and gives result A ,B and A=B ,

## Expected :- I only want A=B not any other result. can any body help on this, what settings could be done in the config file to get it over???

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/40e2313f-d127-4df4-9671-4ea1f7802e5c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/40e2313f-d127-4df4-9671-4ea1f7802e5c%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/8FBB4FE2-148C-436B-91AA-5B7CF0BA6D44%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/8FBB4FE2-148C-436B-91AA-5B7CF0BA6D44%40pilato.fr).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![deep\_saxena](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@deep\_saxena](https://discuss.elastic.co/u/deep_saxena)\
**Post date:** [December 13, 2013, 7:06am UTC](https://discuss.elastic.co/t/elasticsearch-splitting-the-token/14849/3 "2013-12-13T07:06:54Z")

</div>

where to set dont analyze option could you put light on that???

On Friday, 13 December 2013 11:40:23 UTC+5:30, David Pilato wrote:

> It depends on your mapping for the field you are querying on.  
> Don't analyze this field and you're done.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 13 déc. 2013 à 07:00, deep saxena \<[sandy1...@gmail.com](mailto:sandy1...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> If we fire the query A=B, then it splits the token into two and gives  
> result A ,B and A=B ,
> 
> Expected :- I only want A=B not any other result. can any body help on  
> this, what settings could be done in the config file to get it over???
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/40e2313f-d127-4df4-9671-4ea1f7802e5c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/40e2313f-d127-4df4-9671-4ea1f7802e5c%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/74f9d8aa-22e6-4118-a689-5009e6029f4a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/74f9d8aa-22e6-4118-a689-5009e6029f4a%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![deep\_saxena](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@deep\_saxena](https://discuss.elastic.co/u/deep_saxena)\
**Post date:** [December 13, 2013, 7:12am UTC](https://discuss.elastic.co/t/elasticsearch-splitting-the-token/14849/4 "2013-12-13T07:12:28Z")

</div>

I have one analyzer setting like this in elasticsearch-config.yml file like  
this :

# Index Settings

index:  
analysis:  
analyzer:  
# set standard analyzer with no stop words as the default for both  
indexing and searching  
default:  
type: custom  
tokenizer: standard  
filter: [standard,lowercase]

On Friday, 13 December 2013 12:36:54 UTC+5:30, deep saxena wrote:

> where to set don't analyze option could you put light on that???
> 
> On Friday, 13 December 2013 11:40:23 UTC+5:30, David Pilato wrote:
> 
> > It depends on your mapping for the field you are querying on.  
> > Don't analyze this field and you're done.
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 13 déc. 2013 à 07:00, deep saxena [sandy1...@gmail.com](mailto:sandy1...@gmail.com) a écrit :
> > 
> > If we fire the query A=B, then it splits the token into two and gives  
> > result A ,B and A=B ,
> > 
> > Expected :- I only want A=B not any other result. can any body help on  
> > this, what settings could be done in the config file to get it over???
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/40e2313f-d127-4df4-9671-4ea1f7802e5c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/40e2313f-d127-4df4-9671-4ea1f7802e5c%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/3a03fe11-22da-411d-b3c3-a272fe619f09%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3a03fe11-22da-411d-b3c3-a272fe619f09%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 13, 2013, 7:17am UTC](https://discuss.elastic.co/t/elasticsearch-splitting-the-token/14849/5 "2013-12-13T07:17:24Z")

</div>

[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-put-mapping.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-put-mapping.html)  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-core-types.html#string](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-core-types.html#string)

## HTH

David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 13 décembre 2013 at 08:12:31, deep saxena ([sandy100ster@gmail.com](mailto:sandy100ster@gmail.com)) a écrit:

I have one analyzer setting like this in elasticsearch-config.yml file like this :

# Index Settings

index:  
analysis:  
analyzer:  
# set standard analyzer with no stop words as the default for both indexing and searching  
default:  
type: custom  
tokenizer: standard  
filter: [standard,lowercase]

On Friday, 13 December 2013 12:36:54 UTC+5:30, deep saxena wrote:  
where to set don't analyze option could you put light on that???

On Friday, 13 December 2013 11:40:23 UTC+5:30, David Pilato wrote:  
It depends on your mapping for the field you are querying on.  
Don't analyze this field and you're done.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 13 déc. 2013 à 07:00, deep saxena [sandy1...@gmail.com](mailto:sandy1...@gmail.com) a écrit :

If we fire the query A=B, then it splits the token into two and gives result A ,B and A=B ,

## Expected :- I only want A=B not any other result. can any body help on this, what settings could be done in the config file to get it over???

## 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/40e2313f-d127-4df4-9671-4ea1f7802e5c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/40e2313f-d127-4df4-9671-4ea1f7802e5c%40googlegroups.com). For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

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/3a03fe11-22da-411d-b3c3-a272fe619f09%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3a03fe11-22da-411d-b3c3-a272fe619f09%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/etPan.52aab485.2ae8944a.5598%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.52aab485.2ae8944a.5598%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:01am UTC](https://discuss.elastic.co/t/elasticsearch-splitting-the-token/14849/6 "2017-07-06T02:01:29Z")

</div>


