I am new to Elastic search and trying to fetch data for one of the attribute whose value(lengh >15)

GET catalog-us/_search
{
  
  "query": {
    "bool": {
      "must": [
        {
          "term": {
            "relation_type": {
              "value": "product"
            }
          }
        },
        {
        "filter" : 
          {
            "script" : {
                "script" : "'product.product_id'.values.length > 12"
              
            }
            }
        }
        
      ]
    }
  }
}

Hi,

Are you still in trouble?
If so, this page may help you to access data in script.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.