How do I do a partial match in Elasticsearch?

前端 未结 6 1993
一整个雨季
一整个雨季 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:18

    For both partial and full text matching ,the following worked

    "query" : {
        "query_string" : {
          "query" : "*searchText*",
          "fields" : [
            "fieldName"
          ]
        }
    

提交回复
热议问题