Hi,
I have the following (simplified) structure:
{
"id": "571344ad-c234-4144-92c2-94efa991240c",
"name": "MyDocument.pdf",
"metaDataValueLst": [
{
"metaDataFieldID": "19a2c920-013c-4a9f-91c7-d1a16a168779",
"metaDataFieldName": "BillNr",
"metaDataValue": 5514
},
{
"metaDataFieldID": "83d65910-70d5-4a97-9bfb-b21a6270e55c",
"metaDataFieldName": "BillDate",
"metaDataValue": "2012-08-30T22:49:00.927",
},
{
"metaDataFieldID": "bdf56521-cd9c-47f5-a8c7-bc344c57e1f7",
"metaDataFieldName": "Description",
"metaDataValue": "The description"
}
]
}
As you can see, the field "metaDataValueLst.metaDataValue" can contain
values of different types (numeric, datetime or string).
I could just use the type "string" for the metaDataValue field, but then I
would not be able to apply range-searches...
Is it possible to create a corresponding mapping in a way, that the value
is indexed according to its specific type?
I think creating a Multifield with 3 fields (metaDataValue_string,
metaDataValue_numeric, metaDataValue_date) would solve the problem, but
this would increase the search complexity and require additional space.
Any better suggestions?
--
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/5379f52c-62b7-4a6c-b025-06b8a176e14a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.