How do I do a partial match in Elasticsearch?

前端 未结 6 1975
一整个雨季
一整个雨季 2020-12-15 16:14

I have a link like http://drive.google.com and I want to match \"google\" out of the link.

I have:

query: {
    bool : {
        must: {
                    


        
6条回答
  •  一整个雨季
    2020-12-15 16:37

    I can't find a breaking change disabling regular expressions in match, but match: { text: '.*google.*'} does not work on any of my Elasticsearch 6.2 clusters. Perhaps it is configurable?

    Regexp works:

    "query": {
       "regexp": { "text": ".*google.*"} 
    }
    

提交回复
热议问题