In JAVA, if the alias of the index my-index is my-alias, how do I query my-index based on my-alias
That is, how do you query an index by alias
Is it the following?
I assume by "query my-index based on my-alias", you simply want to perform a search on "my-alias", in which case you just do exactly what you would do for an index, but use the alias name.
Largely speaking, you use aliases by passing them in anywhere where an index name is expected. (This is not true in every case, but is true for search and get).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.