@ProviderType
public interface SuggestionIndexManager
SuggestionIndexes, e.g. reading,
creating and deleting them.| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.lang.String name)
Deprecated.
use
get(session, name).delete() |
SuggestionIndex |
get(Session session,
java.lang.String name)
Gets or creates a suggestion index.
|
SuggestionIndex |
get(java.lang.String name)
Deprecated.
use the variant with a session:
get(Session, String) |
java.lang.Iterable<java.lang.String> |
list()
Deprecated.
use the variant with a session:
list(Session) |
java.lang.Iterable<java.lang.String> |
list(Session session)
Lists the available suggestions indexes.
|
SuggestionIndex get(Session session, java.lang.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.
session - session for reading (or writing) the indexname - name or path of the indexRepositoryException - if an unexpected repository problem occurredjava.lang.Iterable<java.lang.String> list(Session session) 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).
session - session for listing the indexesRepositoryException - if an unexpected repository problem occurred@Deprecated SuggestionIndex get(java.lang.String name) throws RepositoryException
get(Session, String)RepositoryException@Deprecated
void delete(java.lang.String name)
throws RepositoryException
get(session, name).delete()RepositoryException@Deprecated
java.lang.Iterable<java.lang.String> list()
throws RepositoryException
list(Session)RepositoryExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved