Class SearchAlias


  • public final class SearchAlias
    extends Object
    Represents an index alias, which describes a mapping from the alias name to an index. The alias name can be used in place of the index name for supported operations.
    • Constructor Detail

      • SearchAlias

        public SearchAlias​(String name,
                           List<String> indexes)
        Creates an instance of SearchAlias class.
        Parameters:
        name - the name value to set.
        indexes - the indexes value to set.
    • Method Detail

      • getName

        public String getName()
        Get the name property: The name of the alias.
        Returns:
        the name value.
      • getIndexes

        public List<String> getIndexes()
        Get the indexes property: The name of the index this alias maps to. Only one index name may be specified.
        Returns:
        the indexes value.
      • getETag

        public String getETag()
        Get the eTag property: The ETag of the alias.
        Returns:
        the eTag value.
      • setETag

        public SearchAlias setETag​(String eTag)
        Set the eTag property: The ETag of the alias.
        Parameters:
        eTag - the eTag value to set.
        Returns:
        the SearchAlias object itself.