I'm running Elasticsearch 1.0.1 using the following 
$ES_HOME/config/default-mapping.json:
{
  "_default": {
    "properties": {
      "foo": {
        "type": "nested",
        "include_in_all": false,
        "properties": {
          "bar": {
            "type": "string",
            "index": "not_analyzed",
            "include_in_all": false,
            "fields": {
              "lower": {
                "analyzer": "lowercase",
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}

When i post the following, the include_in_all does not seem to be 
recognized at any level:
{
  "foo": {
    "bar": "Elasticsearch rules!"
  }
}

The resulting index metadata is the following:
{
    state: open
    settings: {
        index: {
            uuid: TJf_oVKLSzuGD1q8xWq9nw
            number_of_replicas: 0
            number_of_shards: 1
            version: {
                created: 1000199
            }
        }
    }
    mappings: {
        foobar: {
            properties: {
                foo: {
                    properties: {
                        bar: {
                            type: string
                        }
                    }
                }
            }
        }
    }
    aliases: [ ]
}

I verified that _all does include the "elasticsearch rules" via the 
following aggregation search:
{
  "aggs": {
    "foobar": {
      "terms": {
        "field": "_all"
      }
    }
  },
  "size": 0
}

The aggregation results are the following:
{
    took: 25
    timed_out: false
    _shards: {
        total: 1
        successful: 1
        failed: 0
    }
    hits: {
        total: 1
        max_score: 0
        hits: [ ]
    }
    aggregations: {
        foo: {
            buckets: [
                {
                    key: elasticsearch
                    doc_count: 1
                }
                {
                    key: rules
                    doc_count: 1
                }
            ]
        }
    }
}

Any idea what I'm doing wrong, or is this a bug?

-- 
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/54564669-d69c-48a9-85b5-a0a9c8162ff7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to