public class IndexFacts.Session extends Object
Modifier and Type | Method and Description |
---|---|
List<String> |
documentTypes()
Returns an immutable list of the document types this has resolved to
|
String |
getCanonicName(String indexName)
Returns the canonical form of the index name (Which may be the same as
the input).
|
Index |
getIndex(String indexName)
Returns the index for this name.
|
Index |
getIndex(String indexName,
String documentType)
Returns an index given from a given search definition
|
Collection<Index> |
getIndexes(String documentType)
Returns all the indexes of a given search definition
|
boolean |
isIndex(String indexName)
Returns whether the given name is an index.
|
String |
toString() |
public Index getIndex(String indexName)
indexName
- the name of the index. If this is null or empty the index
named "default" is returnedpublic Index getIndex(String indexName, String documentType)
public Collection<Index> getIndexes(String documentType)
public String getCanonicName(String indexName)
indexName
- index name or aliaspublic boolean isIndex(String indexName)
indexName
- index name candidatepublic List<String> documentTypes()
Copyright © 2018. All rights reserved.