Elasticsearch Reader Feature Type Parameters
|
To access feature type parameters, click the gear icon Tip To always display the editor in FME Workbench, you can select View > Windows > Parameter Editor.
General All feature types share similar General parameters, which may include Feature Type Name, Reader or Writer information, and Geometry. In most Writer Feature Type parameter dialogs, you can also control Dynamic Schema Definitions. Some database formats accept Table or Index Qualifier prefixes on the output table feature type. |
Type/Index Settings
JSON Query
This parameter optionally contains a JSON document that is used to filter incoming features.
The JSON document is used as the request body in a search on the Index (version 7 and later), as shown in the Elasticsearch API reference.
This means that the full Elasticsearch Query DSL can be used to filter the features that are read.
Example
For example, if the parameter contains:
{
"query": {
"or": [
{ "term": { "foo": “bar” } },
{ "term": { "foo": “baz” } }
],
“filter”: {
“geo_shape”: {
“geometry”: {
“shape”: {
“type”: “envelope”,
“coordinates”: [[-40.0, -25.0], [40.0, 55.0]]
},
“relation”: “intersects”
}
}
}
}
}
then only features that intersect the spatial envelope and have a “foo” attribute value of “bar” or “baz” will be read.
on a feature type in the