# Reserved characters on multimatch query

**URL:** <https://discuss.elastic.co/t/reserved-characters-on-multimatch-query/20228>\
**Category:** Elasticsearch\
**Created:** [October 14, 2014, 6:37am UTC](https://discuss.elastic.co/t/reserved-characters-on-multimatch-query/20228 "2014-10-14T06:37:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ananth](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@ananth](https://discuss.elastic.co/u/ananth)\
**Post date:** [October 14, 2014, 6:37am UTC](https://discuss.elastic.co/t/reserved-characters-on-multimatch-query/20228/1 "2014-10-14T06:37:19Z")

</div>

Hi,

How to search reserve/special characters on multimatch query ?

First of all , here the analyzer details for your reference.

index :

analysis :

```
  analyzer :

    default_index :

        type : custom

        tokenizer : whitespace

        filter : [word_delimiter, snowball, lowercase]

    default_search :

        type : custom

        tokenizer : whitespace

        filter : [word_delimiter, snowball, lowercase]

  filter :

      word_delimiter :

        type : word_delimiter

        preserve_original : true

        split_on_numerics : true

        stem_english_possessive : false

```

The following query returns no resluts , when using the multimatch query.

"query" : {

```
"bool" : {

  "must" : {

    "multi_match" : {

      "query" : "\\(\\)",

      "fields" : ["field1", "field2", "field3", "field4"],

      "operator" : "AND"

    }

  }

}

```

Where when i search through specific field it works perfectly.

"query" : {

```
"bool" : {

  "must" : {

    "query_string" : {

      "query" : "message:\\(\\)",

      "default_operator" : "and"

    }

  }

}

```

}

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/cc067a67-3735-4b80-85f8-b14ddad9fdc6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cc067a67-3735-4b80-85f8-b14ddad9fdc6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![ananth](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@ananth](https://discuss.elastic.co/u/ananth)\
**Post date:** [October 16, 2014, 7:13am UTC](https://discuss.elastic.co/t/reserved-characters-on-multimatch-query/20228/2 "2014-10-16T07:13:30Z")

</div>

can anyone has any idea on this ?

On Tue, Oct 14, 2014 at 12:07 PM, Anantha Govindarajan \<  
[ananthagovindarajan@gmail.com](mailto:ananthagovindarajan@gmail.com)\> wrote:

> Hi,
> 
> How to search reserve/special characters on multimatch query ?
> 
> First of all , here the analyzer details for your reference.
> 
> index :
> 
> analysis :
> 
> ```
> analyzer :
> 
> default_index :
> 
> type : custom
> 
> tokenizer : whitespace
> 
> filter : [word_delimiter, snowball, lowercase]
> 
> default_search :
> 
> type : custom
> 
> tokenizer : whitespace
> 
> filter : [word_delimiter, snowball, lowercase]
> 
> filter :
> 
> word_delimiter :
> 
> type : word_delimiter
> 
> preserve_original : true
> 
> split_on_numerics : true
> 
> stem_english_possessive : false
> 
> ```
> 
> The following query returns no resluts , when using the multimatch query.
> 
> "query" : {
> 
> ```
> "bool" : {
> 
> "must" : {
> 
> "multi_match" : {
> 
> "query" : "\\(\\)",
> 
> "fields" : ["field1", "field2", "field3", "field4"],
> 
> "operator" : "AND"
> 
> }
> 
> }
> 
> }
> 
> ```
> 
> Where when i search through specific field it works perfectly.
> 
> "query" : {
> 
> ```
> "bool" : {
> 
> "must" : {
> 
> "query_string" : {
> 
> "query" : "message:\\(\\)",
> 
> "default_operator" : "and"
> 
> }
> 
> }
> 
> }
> 
> ```
> 
> }
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/gAIMlIC73cM/unsubscribe](https://groups.google.com/d/topic/elasticsearch/gAIMlIC73cM/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/cc067a67-3735-4b80-85f8-b14ddad9fdc6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cc067a67-3735-4b80-85f8-b14ddad9fdc6%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/cc067a67-3735-4b80-85f8-b14ddad9fdc6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/cc067a67-3735-4b80-85f8-b14ddad9fdc6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEX\_wjoDU9W35g9ARAsAoKr2JVL7wzS565SDXFcGAPnxndYwRA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEX_wjoDU9W35g9ARAsAoKr2JVL7wzS565SDXFcGAPnxndYwRA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:55am UTC](https://discuss.elastic.co/t/reserved-characters-on-multimatch-query/20228/3 "2017-07-06T00:55:50Z")

</div>


