-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Java API: IndicesOptions.lenientExpandOpen() required index names to contain "*" #23557
Comments
Hi @jjbursik , That said, your REST call doesn't doesn't provide any indices options after all. The right separator between the different arguments is The only valid arguments in your REST call are Your REST call though should return an error when performed against a closed index, or an alias that points to at least one closed index, something like this:
Also, when you say that you didn't expect to have to use the wildcard in your index name, that is correct. Do keep in mind though that one thing is expanding wildcard expressions, controlled via Conclusion:
|
Elasticsearch version: 5.1.1
Description of the problem including expected versus actual behavior:
Using aliases to manage indices used for search, I'm unable to ignore closed indices without specifying a wildcard search char ("*") in the index name. Here are my sample SearchRequestBuilders that works and doesn't work:
Works:
Doesn't work:
I would have expected that I don't need the "*" in the index name to ignore closed indices having specified
IndicesOptions.lenientExpandOpen()
. Using Sense, I don't see the same requirement:Steps to reproduce:
Provide logs (if relevant):
Error log:
The text was updated successfully, but these errors were encountered: