Elasticsearch splitting the token


(deep saxena) #1

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.
To view this discussion on the web visit 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.


(David Pilato) #2

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

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

Le 13 déc. 2013 à 07:00, deep saxena 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.
To view this discussion on the web visit 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.

--
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.
To view this discussion on the web visit 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.


(deep saxena) #3

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 13 déc. 2013 à 07:00, deep saxena <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 <javascript:>.
To view this discussion on the web visit
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.

--
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.
To view this discussion on the web visit 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.


(deep saxena) #4

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 13 déc. 2013 à 07:00, deep saxena 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.
To view this discussion on the web visit
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.

--
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.
To view this discussion on the web visit 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.


(David Pilato) #5

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

HTH

David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 13 décembre 2013 at 08:12:31, deep saxena (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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 13 déc. 2013 à 07:00, deep saxena 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.
To view this discussion on the web visit 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.

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.
To view this discussion on the web visit 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.

--
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.
To view this discussion on the web visit 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.


(system) #6