Open steveyen opened 8 years ago
@steveyen is this still needed?
I think so. The original need was to allow mapping builder UI's (like bleve-mapping-ui) to able to clone various builtin components, so if there's another approach that comes to mind, that'd be cool too.
(On Marty's suggestion, I converted an email into a public github issues...)
I'd started looking at how to get bleve's built-in analysis components into the bleve-mapping-ui project....
They're all listed in bleve's registry, so that's good. But, what I need (I think) next is a way to get some JSON representation for some of these various built-in components, to be able to send to the browser/UI.
The idea is that a user of bleve-mapping-ui should just be able to click some sort of copy or clone button on some existing built-in analysis components in order to use that as a starting point for their own, fancy custom definitions.
So, I think the next step is to start adding JSON marshaling code to some of these things (the data-driven ones, like token maps)... and, to the ones that are JSON amendable (not all of them are). But, of course need Marty's sanity check that this is viable, and useful, and isn't an offensive, or waste-of-time pathway.