Hi there,
I indexed shapes in an ELS 1.7.3 index that have the mapping
{"wof":
  {"_source":
    {"excludes":["shape"]},
    "properties":{ 
       "shape":{
          "type":"geo_shape",
          "tree":"quadtree",
         "tree_levels":20}...
Because the shape-fields are quite big in certain cases and slow down source retrieval (they come from https://github.com/whosonfirst/whosonfirst-data)
Now, normal searches like this are working correctly:
{
  "query": {
    "filtered": {
  "query": {
    "match_all": {}
  },
  "filter": {
    "geo_shape": {
      "shape": {
        "shape": {
          "type": "Point",
          "coordinates": [
            12.96,
            55.59
          ]
        }
      }
    }
  }
}
}
}
But something like an indexed shape in another index (mapimages/mapimage) query fails:
{
"query": {
"filtered": {
  "query": {
    "match_all": {}
  },
  "filter": {
    "geo_shape": {
      "l_shape": {
        "indexed_shape": {
          "id": "101752283",
          "index": "wofs",
          "type": "wof",
          "path": "shape"
        }
      }
    }
  }
}
} 
}
with an exception:
ElasticsearchIllegalStateException[Shape with name [101752283] found but missing shape field];
That field is there but only indexed, and it should not be needed, since the query is going against the mapimages/mapimage documents and never needing the wof.shape field?
Why is the first query working but no the second?
Thanks for any help!
/peter