If I escape that character '/' I will get the data irrelevant to the search
term
eg: if a/b, a/c, a/d, a(b), a(c), a-b, ab is my data
My requirement is if I enter the term a( then I have to get only a( as a
result but not ab,a-b,...
I would like to get the results without escaping them, the result need to
preserve the special character '/' , any query which is relevant to that
will be helpful and the search term need to search in different fields but
no need to match in all fields , any one field match result is required.
On Monday, March 23, 2015 at 7:50:08 PM UTC+5:30, Periyandavar wrote:
>
> Hi
> I think You need to escape those spl char in search string, like
> {
> "query": {
> "bool": {
> "must": [
> {
> "query_string": {
> "fields": [
> "msg"
> ],
> "query": "a\\/"
> }
> }
> ]
> }
> }
> }
>
>
>
> --
> View this message in context:
> http://elasticsearch-users.115913.n3.nabble.com/Unable-to-preserve-special-characters-in-search-results-of-ElasticSearch-tp4072409p4072418.html
>
> Sent from the ElasticSearch Users mailing list archive at Nabble.com.
>
--
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/0c8b7093-5dae-4ea5-9b60-bf5353f6d985%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.