org.apache.solr.search.grouping.distributed.command
Class QueryCommand.Builder
java.lang.Object
org.apache.solr.search.grouping.distributed.command.QueryCommand.Builder
- Enclosing class:
- QueryCommand
public static class QueryCommand.Builder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryCommand.Builder
public QueryCommand.Builder()
setSort
public QueryCommand.Builder setSort(Sort sort)
setQuery
public QueryCommand.Builder setQuery(Query query)
setQuery
public QueryCommand.Builder setQuery(String groupQueryString,
SolrQueryRequest request)
throws SyntaxError
- Sets the group query from the specified groupQueryString.
The groupQueryString is parsed into a query.
- Parameters:
groupQueryString
- The group query string to parserequest
- The current request
- Returns:
- this
- Throws:
SyntaxError
setDocSet
public QueryCommand.Builder setDocSet(DocSet docSet)
setDocSet
public QueryCommand.Builder setDocSet(SolrIndexSearcher searcher)
throws IOException
- Sets the docSet based on the created
DocSet
- Parameters:
searcher
- The searcher executing the
- Returns:
- this
- Throws:
IOException
- If I/O related errors occur.
setDocsToCollect
public QueryCommand.Builder setDocsToCollect(int docsToCollect)
setNeedScores
public QueryCommand.Builder setNeedScores(boolean needScores)
build
public QueryCommand build()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.