Reserved characters on multimatch query

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

can anyone has any idea on this ?

On Tue, Oct 14, 2014 at 12:07 PM, Anantha Govindarajan <
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.
To unsubscribe from this group and all its topics, send an email to
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEX_wjoDU9W35g9ARAsAoKr2JVL7wzS565SDXFcGAPnxndYwRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.