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

Support non-spatial where clauses #6

Open
dmfenton opened this issue Jun 29, 2015 · 5 comments
Open

Support non-spatial where clauses #6

dmfenton opened this issue Jun 29, 2015 · 5 comments

Comments

@dmfenton
Copy link
Contributor

This is gonna be tough, but totally worth it.

Needs:

  1. Allow providers to pass in mapping
  2. set up default mappings
  3. Change indexing to hold analyzed and unanalyzed
  4. Parse where clauses and generate elasticsearch json

Some options for generating ES json:

  1. Roll our own
  2. Contribute to and install https://github.com/NLPchina/elasticsearch-sql
  3. Install the plugin above but only use the explain feature to generate SQL and then add to it.
@chelm
Copy link
Contributor

chelm commented Jun 29, 2015

@dmfenton by mappings you mean like a schema right? So a provider would pass in the fields that could be searched?

@dmfenton
Copy link
Contributor Author

Yep and what type they are.

@chelm
Copy link
Contributor

chelm commented Jun 29, 2015

Can you show me an example of using a single index with different fields mapped? or does this now mean we'd have a different index for every dataset?

@dmfenton
Copy link
Contributor Author

we probably should keep everything it it's own index
you can search across all indexes like so:
http://localhost:9200/*/_search

@chelm
Copy link
Contributor

chelm commented Jun 29, 2015

this will be tricky. We'll need to create a schema, but providers currently dont pass schema info down to the cache on creation. Koop caches assume uniform json. Will need to think through that and avoid doing something in a provider that is custom to ES.

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

No branches or pull requests

2 participants