How to search such values :- 1/2"-12


(mohit.Kumar) #1

Hello Folks,

I have a such data

doc1 -> { "Data" : "1/2"-12"}
doc2 -> { "Data" : "3/4"-22"}
doc3 -> { "Data" : "1/8"-42"}
doc4 -> { "Data" : "4/13"-2"}
*doc5 -> { "Data" : "13/24"-27"} *

where data is mapped as a string. {"Data":{"type":"String"}}

I am using following query for search :-

{"query_string": {"query": "Data:1\/2\"-12"}}

but I am getting irrelevant response.

Can you please suggest me some ways to track it..

Thanks in advance...!!

Thanks
Mohit

--
Please update your bookmarks! We have moved to https://discuss.elastic.co/

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/CAK6eDKfjzpwqUNuCgox%3Dn5a8xTrBG5C%2B4uKOv9%2B4xCNGPLokQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2