Skip to content

Commit caf0742

Browse files
committed
Added comment to LinearRetrieverBuilderParsingTests
1 parent 5717076 commit caf0742

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

x-pack/plugin/rank-rrf/src/test/java/org/elasticsearch/xpack/rank/linear/LinearRetrieverBuilderParsingTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
package org.elasticsearch.xpack.rank.linear;
99

10+
import org.elasticsearch.action.search.SearchRequest;
1011
import org.elasticsearch.common.settings.Settings;
1112
import org.elasticsearch.search.SearchModule;
1213
import org.elasticsearch.search.retriever.CompoundRetrieverBuilder;
@@ -40,6 +41,10 @@ public static void afterClass() throws Exception {
4041
xContentRegistryEntries = null;
4142
}
4243

44+
/**
45+
* Creates a random {@link LinearRetrieverBuilder}. The created instance is not guaranteed to pass {@link SearchRequest} validation.
46+
* This is purely for x-content testing.
47+
*/
4348
@Override
4449
protected LinearRetrieverBuilder createTestInstance() {
4550
int rankWindowSize = randomInt(100);

0 commit comments

Comments
 (0)