Non Alphanumeric character searching


(deep saxena) #1

#%##%#%#$%#%#$%#$ my data contain this string.

I am firing this query, but not able to search the data. any clues why it
is not searching? if I put abc in between #%##%#%#abc$%#%#$%#$ and fire the
same query which this query string it find out the result for me.

{
"from" : 0,
"size" : 3,
"query" : {
"filtered" : {
"query" : {
"bool" : {
"should" : {
"query_string" : {
"query" : ""#%##%#%#$%#%#$%#$"",
"default_field" : "DATA"
}
}
}
},
"filter" : {
"range" : {
"timestamp" : {
"from" : 0,
"to" : 1388412035468,
"include_lower" : true,
"include_upper" : true
}
}
}
}
}
}

--
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/b13816bb-e08b-4627-a517-dce0f90ca581%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Alexander Reelsen) #2

Hey,

most likely those special chars have been removed before your data has been
stored in the inverted index - and thus cannot be searched for. This highly
depends on the mapping for a field. You can play around with the analyze
API to find out, how a string is tokenized and stored. See
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-analyze.html

Or use the awesome inquisitor plugin, which offers a nice GUI around that
functionality, see https://github.com/polyfractal/elasticsearch-inquisitor

--Alex

On Mon, Dec 30, 2013 at 3:05 PM, deep saxena sandy100ster@gmail.com wrote:

#%##%#%#$%#%#$%#$ my data contain this string.

I am firing this query, but not able to search the data. any clues why it
is not searching? if I put abc in between #%##%#%#abc$%#%#$%#$ and fire the
same query which this query string it find out the result for me.

{
"from" : 0,
"size" : 3,
"query" : {
"filtered" : {
"query" : {
"bool" : {
"should" : {
"query_string" : {
"query" : ""#%##%#%#$%#%#$%#$"",
"default_field" : "DATA"
}
}
}
},
"filter" : {
"range" : {
"timestamp" : {
"from" : 0,
"to" : 1388412035468,
"include_lower" : true,
"include_upper" : true
}
}
}
}
}
}

--
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/b13816bb-e08b-4627-a517-dce0f90ca581%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/CAGCwEM-_kNROsaOVN0ZDbp7x9VDRD_HxAAP2UUeMO8j189OLkA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(deep saxena) #3

Hey
Thanx for the reply. I am not able to install the inquisitor, can you
please show us the path on this

On Thursday, 2 January 2014 01:43:30 UTC+5:30, Alexander Reelsen wrote:

Hey,

most likely those special chars have been removed before your data has
been stored in the inverted index - and thus cannot be searched for. This
highly depends on the mapping for a field. You can play around with the
analyze API to find out, how a string is tokenized and stored. See
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-analyze.html

Or use the awesome inquisitor plugin, which offers a nice GUI around that
functionality, see https://github.com/polyfractal/elasticsearch-inquisitor

--Alex

On Mon, Dec 30, 2013 at 3:05 PM, deep saxena <sandy1...@gmail.com<javascript:>

wrote:

#%##%#%#$%#%#$%#$ my data contain this string.

I am firing this query, but not able to search the data. any clues why it
is not searching? if I put abc in between #%##%#%#abc$%#%#$%#$ and fire the
same query which this query string it find out the result for me.

{
"from" : 0,
"size" : 3,
"query" : {
"filtered" : {
"query" : {
"bool" : {
"should" : {
"query_string" : {
"query" : ""#%##%#%#$%#%#$%#$"",
"default_field" : "DATA"
}
}
}
},
"filter" : {
"range" : {
"timestamp" : {
"from" : 0,
"to" : 1388412035468,
"include_lower" : true,
"include_upper" : true
}
}
}
}
}
}

--
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/b13816bb-e08b-4627-a517-dce0f90ca581%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/dfe29397-662a-45b8-b1de-dcb3ca4c0a43%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(deep saxena) #4

Thanx you very much

On Thursday, 2 January 2014 01:43:30 UTC+5:30, Alexander Reelsen wrote:

Hey,

most likely those special chars have been removed before your data has
been stored in the inverted index - and thus cannot be searched for. This
highly depends on the mapping for a field. You can play around with the
analyze API to find out, how a string is tokenized and stored. See
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-analyze.html

Or use the awesome inquisitor plugin, which offers a nice GUI around that
functionality, see https://github.com/polyfractal/elasticsearch-inquisitor

--Alex

On Mon, Dec 30, 2013 at 3:05 PM, deep saxena <sandy1...@gmail.com<javascript:>

wrote:

#%##%#%#$%#%#$%#$ my data contain this string.

I am firing this query, but not able to search the data. any clues why it
is not searching? if I put abc in between #%##%#%#abc$%#%#$%#$ and fire the
same query which this query string it find out the result for me.

{
"from" : 0,
"size" : 3,
"query" : {
"filtered" : {
"query" : {
"bool" : {
"should" : {
"query_string" : {
"query" : ""#%##%#%#$%#%#$%#$"",
"default_field" : "DATA"
}
}
}
},
"filter" : {
"range" : {
"timestamp" : {
"from" : 0,
"to" : 1388412035468,
"include_lower" : true,
"include_upper" : true
}
}
}
}
}
}

--
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/b13816bb-e08b-4627-a517-dce0f90ca581%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/1be366ea-c1d0-46c3-ac76-e05b95f0a189%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #5