Hi!
I am creating an index, creating a mapping and importing documents via pyes
into ElasticSearch version 0.20.6.
Although my mapping should disable the _source field, all result items
still contain that field. Is this a problem with pyes?
This is my code, basically:
es.indices.create_index(new_index)
mapping = {
'_source': {'enabled': False},
'_all': {'enabled': True},
...
}
es.indices.put_mapping("submission", {'properties': mapping}, [new_index])
Even the _mapping output from ES confirms this:
submission:
{
properties:
{
_source:
{
type: "object",
enabled: false},
...
However, all my search output contains the _source field per document.
Marian
--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.