aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/IndexFacts.java')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/IndexFacts.java16
1 files changed, 2 insertions, 14 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java b/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java
index bdf395c1f0b..b899f690ee1 100644
--- a/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java
+++ b/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java
@@ -166,8 +166,8 @@ public class IndexFacts {
}
private Index getIndexFromDocumentTypes(String indexName, List<String> documentTypes) {
- if (indexName == null || indexName.isEmpty())
- indexName = "default";
+ if (indexName==null || indexName.isEmpty())
+ indexName="default";
return getIndexByCanonicNameFromDocumentTypes(indexName, documentTypes);
}
@@ -191,13 +191,6 @@ public class IndexFacts {
return Index.nullIndex;
}
- private Collection<Index> getIndexes(String documentType) {
- if ( ! isInitialized()) return Collections.emptyList();
- SearchDefinition sd = searchDefinitions.get(documentType);
- if (sd == null) return Collections.emptyList();
- return sd.indices().values();
- }
-
/** Calls resolveDocumentTypes(query.getModel().getSources(), query.getModel().getRestrict()) */
private Set<String> resolveDocumentTypes(Query query) {
// Assumption: Search definition name equals document name.
@@ -428,11 +421,6 @@ public class IndexFacts {
return IndexFacts.this.getIndexFromDocumentTypes(indexName, Collections.singletonList(documentType));
}
- /** Returns all the indexes of a given search definition */
- public Collection<Index> getIndexes(String documentType) {
- return IndexFacts.this.getIndexes(documentType);
- }
-
/**
* Returns the canonical form of the index name (Which may be the same as
* the input).