ElasticSearch: Search across multiple fields with input strings (NumberFormatException) -


i searching across multiple fields in query using * asterisk notation (ex: want fields startings source specify fields source.*) , specify query of foobar string. using query string type query.

i keep getting numberformatexception , have fields in there mapping type of long , double.

any idea how go this? need multi-field search.

my query posted below:

{     "query": {         "bool": {             "must": [{                 "query_string": {                     "default_field": "source.*",                     "query": "foobar"                 }             }],             "must_not": [],             "should": []         }     },     "from": 0,     "size": 100000,     "sort": [],     "facets": {} } 

set lenient true ignore format based failures

example :

"query_string":   {       "default_field": "source.*",       "query": "foobar",       "lenient": true   } 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -