Hi,

I am having this simplified mapping:
{
   "someting": {
      "mappings": {
         "test": {
            "properties": {
               "abc": {
                  "type": "string"
               },
               "titles": {
                  "properties": {
                     "count": {
                        "type": "string"
                     },
                     "counta": {
                        "type": "long"
                     },
                     "date1": {
                        "type": "date",
                        "format": "dateOptionalTime"
                     }
                  }
               }
            }
         }
      }
   }
}

So, there is an array, but not a nested type.

How can I make without using scripts something similar to what exists for 
nested types:
GET someting/test/_search
{
  "query": {
    "match_all": {}
  },
*  "sort": [*
    {
*      "titles.counta": {*
*        "order": "asc",*
*        "mode": "sum",*
       * "nested_filter": {*
          "range": {
           * "titles.date1": {*
*              "gte": "2015-01-01"*
            }
          }
        }
      }
    }
  ]
}

I am interested in taking for sorting the counta that have a date greater 
than the one I give as parameter.

Thank you,
Roxana

-- 
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 protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/b4eb59b9-636b-4471-83d9-42f219d1960d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to