excludeFields parameter in river.
richardwilly98 opened this issue · 3 comments
This parameter should provide a comma separated list of fields that should not be indexed.
Currently the only option available to exclude fields to be indexed is using a script filter. It would be probably more efficient to exclude directly within the river.
Please rate this feature.
Add support for child level attributes using dotted notation.
exclude_fields = ["level1.level2"]
{
"level1" : {
"level2" : {
"attribute" : "1"
},
"attribute2" : "9"
}
}
Should be transformed in
{
"level1" : {
"attribute2" : "9"
}
}
For more details see [1] and [2].
[1] - https://github.com/richardwilly98/elasticsearch-river-mongodb/blob/master/src/test/java/test/elasticsearch/plugin/river/mongodb/ExcludeFieldsTest.java
[2] - https://github.com/richardwilly98/elasticsearch-river-mongodb/blob/master/src/test/java/test/elasticsearch/plugin/river/mongodb/test-exclude-fields-document.json
using include_fields as a parameter in options. however there are other extra keys that are getting indexed. Any pointers ?