Package com.yahoo.search.dispatch
Class SearchPath
java.lang.Object
com.yahoo.search.dispatch.SearchPath
A subset of nodes and groups to which a query should be sent.
See https://docs.vespa.ai/en/reference/query-api-reference.html#model.searchpath
- Author:
- ollivir
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionselectNodes
(String searchPath, SearchGroups cluster) Parses a search path and select nodes from the given cluster based on it.toString()
-
Method Details
-
toString
-
selectNodes
Parses a search path and select nodes from the given cluster based on it.- Parameters:
searchPath
- unparsed search path expression (see: model.searchPath in Search API reference)cluster
- the search cluster from which nodes are selected- Returns:
- list of nodes chosen with the search path, or an empty list in which case some other node selection logic should be used
- Throws:
SearchPath.InvalidSearchPathException
- if the searchPath is malformed
-