public class IndexFacts extends Object
IndexFacts.Session session = indexFacts.newSession(query); // once when starting to process a query
session.getIndex(indexName).[get index info]
Modifier and Type | Class and Description |
---|---|
class |
IndexFacts.Session
Create an instance of this to look up index facts with a given query.
|
Modifier and Type | Field and Description |
---|---|
static String |
unionName
Deprecated.
do not use
|
Constructor and Description |
---|
IndexFacts() |
IndexFacts(IndexModel indexModel) |
Modifier and Type | Method and Description |
---|---|
void |
addIndex(String sdName,
Index index)
Deprecated.
set indexes at creation time instead
|
void |
addIndex(String sdName,
String indexName)
Deprecated.
set indexes at creation time instead
|
List<String> |
clustersHavingSearchDefinition(String searchDefinitionName) |
void |
freeze()
Freeze this to prevent further changes.
|
String |
getDefaultPosition(String sdName) |
boolean |
hasNGramIndices()
Whether this contains any index which has isNGram()==true.
|
boolean |
isFrozen() |
IndexFacts.Session |
newSession(Collection<String> sources,
Collection<String> restrict) |
IndexFacts.Session |
newSession(Collection<String> sources,
Collection<String> restrict,
Set<String> candidateDocumentTypes) |
IndexFacts.Session |
newSession(Query query) |
void |
setClusters(Map<String,List<String>> clusters)
Public only for testing.
|
void |
setSearchDefinitions(Map<String,SearchDefinition> searchDefinitions,
SearchDefinition unionSearchDefinition)
Deprecated.
set indexes at creation time instead
|
@Deprecated public static final String unionName
public IndexFacts()
public IndexFacts(IndexModel indexModel)
public List<String> clustersHavingSearchDefinition(String searchDefinitionName)
@Deprecated public void setSearchDefinitions(Map<String,SearchDefinition> searchDefinitions, SearchDefinition unionSearchDefinition)
public void freeze()
public boolean hasNGramIndices()
public boolean isFrozen()
@Deprecated public void addIndex(String sdName, String indexName)
sdName
- name of search definition containing index, if null, modify default setindexName
- name of index, actual or otherwise@Deprecated public void addIndex(String sdName, Index index)
public IndexFacts.Session newSession(Query query)
public IndexFacts.Session newSession(Collection<String> sources, Collection<String> restrict)
public IndexFacts.Session newSession(Collection<String> sources, Collection<String> restrict, Set<String> candidateDocumentTypes)
Copyright © 2018. All rights reserved.