Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate field metadata on ElasticType #259

Open
KodrAus opened this issue Oct 15, 2017 · 1 comment
Open

Generate field metadata on ElasticType #259

KodrAus opened this issue Oct 15, 2017 · 1 comment
Labels
Milestone

Comments

@KodrAus
Copy link
Member

KodrAus commented Oct 15, 2017

For supporting a strongly-typed Query DSL, we should generate some runtime-queryable metadata for each field when deriving ElasticType.

That way we can capture properties of each field that might affect generated queries as types. Things like date formats for example.

I don't have a clear picture of what this should look like yet, I think we'll end up with some strongly-typed structure implementing traits for each field, one per type, but it needs some proper design.

@KodrAus
Copy link
Member Author

KodrAus commented Oct 15, 2017

We don't want to lose the ability to manually construct queries ergonomically or deserialise them from files.

Making queries generic and composable will be quite tricky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant