Package org.elasticsearch.search.rank
Class TestRankBuilder
java.lang.Object
org.elasticsearch.search.rank.RankBuilder
org.elasticsearch.search.rank.TestRankBuilder
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.elasticsearch.search.rank.RankBuilder
DEFAULT_RANK_WINDOW_SIZE, RANK_WINDOW_SIZE_FIELDFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildQueryPhaseCoordinatorContext(int size, int from) buildQueryPhaseShardContext(List<org.apache.lucene.search.Query> queries, int from) buildRankFeaturePhaseCoordinatorContext(int size, int from, Client client) protected booleandoEquals(RankBuilder other) protected intvoiddoWriteTo(StreamOutput out) protected voiddoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) org.apache.lucene.search.ExplanationexplainHit(org.apache.lucene.search.Explanation baseExplanation, RankDoc rankDoc, List<String> queryNames) static TestRankBuilderfromXContent(org.elasticsearch.xcontent.XContentParser parser) booleanstatic TestRankBuilderMethods inherited from class org.elasticsearch.search.rank.RankBuilder
equals, hashCode, rankWindowSize, toRetriever, toString, toXContent, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
TestRankBuilder
public TestRankBuilder(int windowSize) -
TestRankBuilder
- Throws:
IOException
-
-
Method Details
-
fromXContent
public static TestRankBuilder fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
randomRankBuilder
-
getWriteableName
-
getMinimalSupportedVersion
-
doWriteTo
- Specified by:
doWriteToin classRankBuilder- Throws:
IOException
-
doXContent
protected void doXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
doXContentin classRankBuilder- Throws:
IOException
-
isCompoundBuilder
public boolean isCompoundBuilder()- Specified by:
isCompoundBuilderin classRankBuilder
-
explainHit
public org.apache.lucene.search.Explanation explainHit(org.apache.lucene.search.Explanation baseExplanation, RankDoc rankDoc, List<String> queryNames) - Specified by:
explainHitin classRankBuilder
-
buildQueryPhaseShardContext
public QueryPhaseRankShardContext buildQueryPhaseShardContext(List<org.apache.lucene.search.Query> queries, int from) - Specified by:
buildQueryPhaseShardContextin classRankBuilder
-
buildQueryPhaseCoordinatorContext
- Specified by:
buildQueryPhaseCoordinatorContextin classRankBuilder
-
buildRankFeaturePhaseShardContext
- Specified by:
buildRankFeaturePhaseShardContextin classRankBuilder
-
buildRankFeaturePhaseCoordinatorContext
public RankFeaturePhaseRankCoordinatorContext buildRankFeaturePhaseCoordinatorContext(int size, int from, Client client) - Specified by:
buildRankFeaturePhaseCoordinatorContextin classRankBuilder
-
doEquals
- Specified by:
doEqualsin classRankBuilder
-
doHashCode
protected int doHashCode()- Specified by:
doHashCodein classRankBuilder
-