public static class QueryCommand.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
QueryCommand |
build() |
QueryCommand.Builder |
setDocSet(DocSet docSet) |
QueryCommand.Builder |
setDocSet(SolrIndexSearcher searcher)
Sets the docSet based on the created
DocSet |
QueryCommand.Builder |
setDocsToCollect(int docsToCollect) |
QueryCommand.Builder |
setNeedScores(boolean needScores) |
QueryCommand.Builder |
setQuery(Query query) |
QueryCommand.Builder |
setQuery(String groupQueryString,
SolrQueryRequest request)
Sets the group query from the specified groupQueryString.
|
QueryCommand.Builder |
setSort(Sort sort) |
public QueryCommand.Builder setSort(Sort sort)
public QueryCommand.Builder setQuery(Query query)
public QueryCommand.Builder setQuery(String groupQueryString, SolrQueryRequest request) throws SyntaxError
groupQueryString
- The group query string to parserequest
- The current requestSyntaxError
public QueryCommand.Builder setDocSet(DocSet docSet)
public QueryCommand.Builder setDocSet(SolrIndexSearcher searcher) throws IOException
DocSet
searcher
- The searcher executing theIOException
- If I/O related errors occur.public QueryCommand.Builder setDocsToCollect(int docsToCollect)
public QueryCommand.Builder setNeedScores(boolean needScores)
public QueryCommand build()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.