public interface SuggestionIndexManager
SuggestionIndex
es, e.g. reading,
creating and deleting them.SuggestionIndex get(String name) throws RepositoryException
Note: make sure to close
the index
after usage to properly release affected resources, e.g. the underlying
JCR session. This should be done in a try/finally block.
The returned index is not thread-safe.
name
- name or path of the indexRepositoryException
- if an unexpected repository problem occurredvoid delete(String name) throws RepositoryException
name
- name or path of the indexRepositoryException
- if an unexpected repository problem occurredIterable<String> list() throws RepositoryException
If the indexes were created with path names in get(String)
,
these will always be returned as relative paths, ie. without a leading
slash. Both variants, "/index" and "index" will work with
get(String)
and delete(String)
.
RepositoryException
- if an unexpected repository problem occurred"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"