Hello everyone,

I'm trying to implement a search for one of my indices using the following 
query:

{
"query" : {
"query_string" : {
"query" : "some text",
"fields" : ["collected.*"]
}
}
}

The documents in the index have a field named "collected" which is dynamic 
and changes between documents.

When I try to run this query I get NumberFormatException since some of the 
fields are Numeric and I guess elasticsearch tries to cast the input string 
to a number.
Is there any possibility to make the query_string parameter perform a 'best 
effort' search without raising that exception so that it will ignore the 
fields that he can't cast,

Thanks,
Yarin

-- 
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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/d4492b49-b299-4eae-92a7-07026e19be66%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to