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

Query DSL: prefix query to support _id #1648

Closed
kimchy opened this issue Jan 29, 2012 · 0 comments
Closed

Query DSL: prefix query to support _id #1648

kimchy opened this issue Jan 29, 2012 · 0 comments

Comments

@kimchy
Copy link
Member

kimchy commented Jan 29, 2012

Even though we don't index the _id field explicitly, we can support prefix style query/filter on it (in a similar manner that we support term(s) query/filter on it - though there is also an explicit ids query).

There isn't really a need to add an ids_prefix style query/filter, since we can provide the same functionality automatically with prefix (again, in a similar manner that ids query/filter is no longer really needed).

The prefix query/filter will automatically work only against the specific type(s) if searching against the type (defined in the search request), or the field is prefixed by it (my_type._id as the prefix field name).

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

No branches or pull requests

1 participant