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 <[email protected]> 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 [email protected]. > 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 [email protected]. 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.
