Finding a fullstop in a elasticsearch preceeded by wildcard

时间:2017-12-18 05:25:56

标签: database elasticsearch logstash kibana

I have stored my document using whitespace analyzer.Now I want to search for a string like ("*.") but i am unable to find any matches moreover it is unable to find words like ("xyz.") where xyz. exists in the document. Can someone tell the correct query format.

1 个答案:

答案 0 :(得分:1)

Have you tried with wildcard query something like this ?

GET /your_index/your_type/_search
{
    "query": {
        "wildcard": {
            "field": "*."
        }
    }
}