I store numbers by using string type.when i filter these use script filter 
range like this:

  {
  "query": {
    "filtered": {
      "query": {
        "match_all": {}
      },
      "filter": {
        "nested": {
          "path": "pt_account",
          "filter": {
            "bool": {
              "must": [
              
                {
                  "term": {
                    "column": "mobile_account"
                  }
                },
                {
                  "script" : {
                    "script" : "doc['value'].value >= param1 and 
doc['value'].value <= param2",
                    "params" : {
                      "param1" : "15091568126",
                      "param2" : "15191568126"
                    }
                  }
                }
               
              ]
            }
          }
        }
      }
    }
  }
}

Will this field value reindex when i filter like that,how do i to Improve 
Performance ? Thank you!

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/ded279aa-78c9-4b3e-9959-9548b47c8e24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to