public class CommandHandler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CommandHandler.Builder |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Command> |
commands |
private DocSet |
docSet |
private boolean |
includeHitCount |
private static org.slf4j.Logger |
logger |
private boolean |
needDocset |
private boolean |
partialResults |
private SolrIndexSearcher.QueryCommand |
queryCommand |
private SolrIndexSearcher |
searcher |
private int |
totalHitCount |
private boolean |
truncateGroups |
Modifier | Constructor and Description |
---|---|
private |
CommandHandler(SolrIndexSearcher.QueryCommand queryCommand,
java.util.List<Command> commands,
SolrIndexSearcher searcher,
boolean needDocset,
boolean truncateGroups,
boolean includeHitCount) |
Modifier and Type | Method and Description |
---|---|
private DocSet |
computeDocSet(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter luceneFilter,
java.util.List<org.apache.lucene.search.Collector> collectors) |
private DocSet |
computeGroupedDocSet(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter luceneFilter,
java.util.List<org.apache.lucene.search.Collector> collectors) |
void |
execute() |
int |
getTotalHitCount() |
NamedList |
processResult(SolrIndexSearcher.QueryResult queryResult,
ShardResultTransformer transformer) |
private void |
searchWithTimeLimiter(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter luceneFilter,
org.apache.lucene.search.Collector collector)
Invokes search with the specified filter and collector.
|
private static final org.slf4j.Logger logger
private final SolrIndexSearcher.QueryCommand queryCommand
private final java.util.List<Command> commands
private final SolrIndexSearcher searcher
private final boolean needDocset
private final boolean truncateGroups
private final boolean includeHitCount
private boolean partialResults
private int totalHitCount
private DocSet docSet
private CommandHandler(SolrIndexSearcher.QueryCommand queryCommand, java.util.List<Command> commands, SolrIndexSearcher searcher, boolean needDocset, boolean truncateGroups, boolean includeHitCount)
public void execute() throws java.io.IOException
java.io.IOException
private DocSet computeGroupedDocSet(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter luceneFilter, java.util.List<org.apache.lucene.search.Collector> collectors) throws java.io.IOException
java.io.IOException
private DocSet computeDocSet(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter luceneFilter, java.util.List<org.apache.lucene.search.Collector> collectors) throws java.io.IOException
java.io.IOException
public NamedList processResult(SolrIndexSearcher.QueryResult queryResult, ShardResultTransformer transformer) throws java.io.IOException
java.io.IOException
private void searchWithTimeLimiter(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter luceneFilter, org.apache.lucene.search.Collector collector) throws java.io.IOException
java.io.IOException
public int getTotalHitCount()