mradamlacey / elasticsearch-tableau-connector

Tableau Web Data Connector for Elasticsearch
MIT License
149 stars 64 forks source link

Multiple Indexes #5

Closed borgcc closed 8 years ago

borgcc commented 8 years ago

Is it possible to have multiple indexes. Similar to how elasticsearch api handles multiple indices separated by commas

mradamlacey commented 8 years ago

The only reason why this wouldn't work is if the Mapping API (that this connector calls to get the list of columns to return to Tableau) doesn't work or returns a slightly different response against an alias or list of indices like:

GET <cluster base url>:<port>/<index list or alias name>/<type name>/_mapping

I don't think adding support for this would be that difficult. One thing to note is if multiple indices have different mappings for the same type, the connector would either return an error or pick one of the mappings and use that. I would lean towards just picking the first mapping and somehow returning a message to the user.

mradamlacey commented 8 years ago

I just pushed a commit that adds support to:

Some things to iron out: