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
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
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.