I started a topic earlier about making a mapping for a recursive tree
structure to which there wasn't a great answer, but my original desire was
to just turn off analysis on certain indexes. All that I'd like to do is
store a JSON document by ID and recall it. In this case the need has again
arisen because of the way I'm treating floating point numbers in my JSON
parser. I designed it to support INFINITY and NaN, which I understand is
not actually a part of the official JSON specification. The issue I have
is that sometimes a float field is a number, and sometimes it's a string.
For example, I have a field that can sometimes be = INFINITY. If I've
mapped this field as a float, a document with it = INFINITY will come in
with that field as a string. This throws an error:
MapperParsingException[failed to parse [max_length]]; nested:
NumberFormatException[For input string: "INFINITY"];
max_length being the field name and INFINITY being the value I'm trying to
set it to. As I said before I really just want to disable analysis and
store the documents wholesale. Or maybe I can just mark certain fields as
don't analyze? Any other ideas for what I should do here? The only thing
I can think of is to escape the JSON and store it as a string, or to
convert all my float parameters to and from strings when I store them.
Thanks for the help!
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@example.com.
For more options, visit https://groups.google.com/groups/opt_out.