Numberformat exception

I am indexing different type of fields that include number and strings.
When I use multimatch queries (that includes both number and string fields)
for terms such as "2001 camaro", I get NumberFormatException. I understand
why this is happening but wondering if this can be avoided. Temporarily, I
have fixed it by indexing all fields as strings instead of numbers.

Example:
Fields used : year (number) and model (string)
multimatch cross type query includes both year and model.
search query: 2001 camaro

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/97149488-9e49-4ba8-8bdb-1a1a157e79b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

On this issue is being worked on

Indexing all fields as strings seems like a plausible workaround.

Jörg

On Fri, Jan 23, 2015 at 7:54 PM, Prateek Asthana paryanz@gmail.com wrote:

I am indexing different type of fields that include number and strings.
When I use multimatch queries (that includes both number and string fields)
for terms such as "2001 camaro", I get NumberFormatException. I understand
why this is happening but wondering if this can be avoided. Temporarily, I
have fixed it by indexing all fields as strings instead of numbers.

Example:
Fields used : year (number) and model (string)
multimatch cross type query includes both year and model.
search query: 2001 camaro

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/97149488-9e49-4ba8-8bdb-1a1a157e79b1%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/97149488-9e49-4ba8-8bdb-1a1a157e79b1%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHUkoL9GaoCu1g6Fv-UbLj-LWydTxvTFgWgurQA%3Dc7adA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.