Wildcards in type names


(Patrick Kaeding) #1

I am trying to search multiple types that share a common prefix. From reading the docs, I hoped to be able to query /users/user_*/_search. However, that returns no results. When I make the exact same query to /users/user_57f83dacaceb075a805252a6/_search, I get many results.

I noticed that the docs only give an example of the wildcard being used in the index name, not the type.

I am using ES 2.1 in production, if that matters. I did try it in 2.4 (locally, using docker), and got the same results.

If it isn't possible to filter the type with a wildcard in the URL, is it possible to filter based on type using the body?


(system) #2