Answer the question
In order to leave comments, you need to log in
How to use strings for selections requiring "numeric"?
The essence of the problem is this. The type has constant fields, as well as additional dynamic fields, and they are different for each record.
// Постоянные поля
product_id
title
description
// динамические, у каждой записи они могут быть разные
property_45
property_7
{
"range" : {
"property_7" : {
"gte" : 10,
"lte" : 20,
}
}
}
{
"aggs" : {
"my_stats" : { "stats" : {
"script" : "try { Integer.parseInt(doc['property_7'].value); } catch(Exception e){ return 0;}"
}}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question