I am using the index array field json as,
"productdetailsarray":
{
"properties":{
"producttone" : { "type" : "integer", "store" : "yes", "precision_step" : "8" },
"productsaleid" : { "type" : "integer", "store" : "yes", "precision_step" : "8" },
"productcoverage" : { "type" : "integer", "store" : "yes", "precision_step" : "8" },
"productdataid" : { "type" : "integer", "store" : "yes", "precision_step" : "8" },
"productid" : { "type" : "integer", "store" : "yes", "precision_step" : "8" }}
}
How to search the data inside the array?
Simple parse the JSon using a library like GSon:
Once in object-form, you can use any of the standard Java constructs to search the data.
If you use Maven, you can use the following to import GSon: