public class ResponseBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResponseBuilder.GlobalCollectionStat |
Constructor and Description |
---|
ResponseBuilder(SolrQueryRequest req,
SolrQueryResponse rsp,
List<SearchComponent> components) |
public SolrQueryRequest req
public SolrQueryResponse rsp
public boolean doHighlights
public boolean doFacets
public boolean doExpand
public boolean doStats
public boolean doTerms
public MergeStrategy mergeFieldHandler
public List<SearchComponent> components
public static final String FIELD_SORT_VALUES
public static final String SHARDS
public static final String IDS
public static int STAGE_START
public static int STAGE_PARSE_QUERY
public static int STAGE_TOP_GROUPS
public static int STAGE_EXECUTE_QUERY
public static int STAGE_GET_FIELDS
public static int STAGE_DONE
public int stage
public String[] shards
public String[] slices
public int shards_rows
public int shards_start
public List<ShardRequest> outgoing
public List<ShardRequest> finished
public String shortCircuitedURL
public ResponseBuilder.GlobalCollectionStat globalCollectionStat
public boolean onePassDistributedQuery
public FacetComponent.FacetInfo _facetInfo
public final Map<String,Collection<SearchGroup<BytesRef>>> mergedSearchGroups
public final Map<String,Map<SearchGroup<BytesRef>,Set<String>>> searchGroupToShards
public final Map<String,QueryCommandResult> mergedQueryCommandResults
public final Map<Object,SolrDocument> retrievedDocuments
public int totalHitCount
public int firstPhaseElapsedTime
public ResponseBuilder(SolrQueryRequest req, SolrQueryResponse rsp, List<SearchComponent> components)
public int getShardNum(String shard)
public void addRequest(SearchComponent me, ShardRequest sreq)
public void addDebugInfo(String name, Object val)
public boolean isDebug()
public boolean isDebugAll()
public void setDebug(boolean dbg)
public void addMergeStrategy(MergeStrategy mergeStrategy)
public List<MergeStrategy> getMergeStrategies()
public RankQuery getRankQuery()
public void setRankQuery(RankQuery rankQuery)
public void setResponseDocs(SolrDocumentList _responseDocs)
public SolrDocumentList getResponseDocs()
public boolean isDebugTrack()
public void setDebugTrack(boolean debugTrack)
public boolean isDebugTimings()
public void setDebugTimings(boolean debugTimings)
public boolean isDebugQuery()
public void setDebugQuery(boolean debugQuery)
public boolean isDebugResults()
public void setDebugResults(boolean debugResults)
public int getFieldFlags()
public void setFieldFlags(int fieldFlags)
public Query getHighlightQuery()
public void setHighlightQuery(Query highlightQuery)
public boolean isNeedDocList()
public void setNeedDocList(boolean needDocList)
public boolean isNeedDocSet()
public void setNeedDocSet(boolean needDocSet)
public QParser getQparser()
public void setQparser(QParser qparser)
public String getQueryString()
public void setQueryString(String qstr)
public Query getQuery()
public void setQuery(Query query)
public DocListAndSet getResults()
public void setResults(DocListAndSet results)
public SortSpec getSortSpec()
public void setSortSpec(SortSpec sortSpec)
public GroupingSpecification getGroupingSpec()
public void setGroupingSpec(GroupingSpecification groupingSpec)
public boolean grouping()
public RTimer getTimer()
public void setTimer(RTimer timer)
public QueryCommand getQueryCommand()
public Query wrap(Query q)
RankQuery.wrap(Query)
if there's a rank query, otherwise just returns the query.public void setResult(QueryResult result)
public long getNumberDocumentsFound()
public CursorMark getCursorMark()
public void setCursorMark(CursorMark cursorMark)
public CursorMark getNextCursorMark()
public void setNextCursorMark(CursorMark nextCursorMark)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.