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

filtering by type in a multi-model index #78

Closed
leemhenson opened this issue Oct 15, 2014 · 2 comments
Closed

filtering by type in a multi-model index #78

leemhenson opened this issue Oct 15, 2014 · 2 comments

Comments

@leemhenson
Copy link
Contributor

I've got an index that is made up of two different models. The index already contains a _type field, populated with the name of the model as appopriate. I can't see a way to query against that field though. Am I missing something blindingly obvious? If not, do I need to build a new Node to implement this: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-type-filter.html

@leemhenson
Copy link
Contributor Author

Oh dear. How embarrassing. The field is _type not type. Move along, nothing to see here!

@pyromaniac
Copy link
Contributor

Yay! :)

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