code: func (ir indexResult) HasAlias(aliasName string) bool {
  	for _, alias := range ir.Aliases {
  		if alias.AliasName == aliasName {
  			return true
  		}
  	}
  	return false
  }
docs: // HasAlias returns true if the index has a specific alias.