Work Around to index Array of Integer in normal index field


(manoj-2) #1

Hi All,

I am interested to know, if there is a any work around to index an array of
integer values to a normal integer field, with out modifying the mapping
JSON. Because, I don't want to re-index my huge DB for this field.

Thanks in advance!
Manoj


(Shay Banon) #2

What do you mean? You have a field that had single value integer field, and
you want now to index the same field with multiple values? It is supported.

On Fri, Jun 29, 2012 at 6:12 PM, Manoj manokrrish@gmail.com wrote:

Hi All,

I am interested to know, if there is a any work around to index an array
of integer values to a normal integer field, with out modifying the mapping
JSON. Because, I don't want to re-index my huge DB for this field.

Thanks in advance!
Manoj


(manoj-2) #3

Thanks Kimchy, This gave me a peace of mind

I am using the following type of Mapping Syntax for arrays.

"idarray":
{
"properties":{
"id":{"type" : "integer", "store" : "yes","precision_step"
: "0"}
}
}

but for single Integer, it is something like below.

"id" : { "type" : "integer", "store" : "yes", "precision_step" : "0" }

Won't it affect the older index(existing index), if I try to Index an array
of integers using the JSON format mentioned with field "idarray"?

Or is there something I understood wrong here?

I just wanted to confirm before making changes to my production.

On Friday, June 29, 2012 11:59:46 PM UTC+5:30, kimchy wrote:

What do you mean? You have a field that had single value integer field,
and you want now to index the same field with multiple values? It is
supported.

On Fri, Jun 29, 2012 at 6:12 PM, Manoj manokrrish@gmail.com wrote:

Hi All,

I am interested to know, if there is a any work around to index an array
of integer values to a normal integer field, with out modifying the mapping
JSON. Because, I don't want to re-index my huge DB for this field.

Thanks in advance!
Manoj


(manoj-2) #4

Any updates on this?

On Friday, June 29, 2012 11:59:46 PM UTC+5:30, kimchy wrote:

What do you mean? You have a field that had single value integer field,
and you want now to index the same field with multiple values? It is
supported.

On Fri, Jun 29, 2012 at 6:12 PM, Manoj manokrrish@gmail.com wrote:

Hi All,

I am interested to know, if there is a any work around to index an array
of integer values to a normal integer field, with out modifying the mapping
JSON. Because, I don't want to re-index my huge DB for this field.

Thanks in advance!
Manoj


(system) #5