Package org.elasticsearch.search.dfs
Class DfsSearchResult
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.search.SearchPhaseResult
org.elasticsearch.search.dfs.DfsSearchResult
- All Implemented Interfaces:
Writeable
public class DfsSearchResult extends SearchPhaseResult
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DfsSearchResult(StreamInput in)
DfsSearchResult(SearchContextId contextId, SearchShardTarget shardTarget)
-
Method Summary
Modifier and Type Method Description static long
addOne(long value)
com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics>
fieldStatistics()
DfsSearchResult
fieldStatistics(com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> fieldStatistics)
int
maxDoc()
DfsSearchResult
maxDoc(int maxDoc)
static long
subOne(long value)
org.apache.lucene.index.Term[]
terms()
DfsSearchResult
termsStatistics(org.apache.lucene.index.Term[] terms, org.apache.lucene.search.TermStatistics[] termStatistics)
org.apache.lucene.search.TermStatistics[]
termStatistics()
static void
writeFieldStats(StreamOutput out, com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> fieldStatistics)
static void
writeSingleTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics termStatistic)
static void
writeTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics[] termStatistics)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.SearchPhaseResult
fetchResult, getContextId, getSearchShardTarget, getShardIndex, queryResult, setSearchShardTarget, setShardIndex
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Constructor Details
-
DfsSearchResult
- Throws:
java.io.IOException
-
DfsSearchResult
-
-
Method Details
-
maxDoc
-
maxDoc
public int maxDoc() -
termsStatistics
public DfsSearchResult termsStatistics(org.apache.lucene.index.Term[] terms, org.apache.lucene.search.TermStatistics[] termStatistics) -
fieldStatistics
public DfsSearchResult fieldStatistics(com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> fieldStatistics) -
terms
public org.apache.lucene.index.Term[] terms() -
termStatistics
public org.apache.lucene.search.TermStatistics[] termStatistics() -
fieldStatistics
public com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> fieldStatistics() -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classSearchPhaseResult
- Throws:
java.io.IOException
-
writeFieldStats
public static void writeFieldStats(StreamOutput out, com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> fieldStatistics) throws java.io.IOException- Throws:
java.io.IOException
-
writeTermStats
public static void writeTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics[] termStatistics) throws java.io.IOException- Throws:
java.io.IOException
-
writeSingleTermStats
public static void writeSingleTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics termStatistic) throws java.io.IOException- Throws:
java.io.IOException
-
addOne
public static long addOne(long value) -
subOne
public static long subOne(long value)
-