CottageLabs / edges

Data query, manipulation, search and visualisation front-end library
MIT License
8 stars 7 forks source link

Place data sources (es, csv) behind standardised interface #8

Open richard-jones opened 6 years ago

richard-jones commented 6 years ago

As use of CSVs as datasources makes its way into edges, we can see there's a disconnect between how all the data sources are used. Components basically need a lot of knowledge about where data is stored and what format it is in, which makes them highly customised to their position. It would be nice to have a standard filtering/aggregating/results interface behind which both es and csvs sit. We would then be able to add other data sources more easily, such as Solr, Lunr, XML, JSON, etc.

Not sure what the right format for that interface is, but I'd probably begin with the ES query and results syntax, and force the other data sources to conform to that via an adaptor.