@@ -44,6 +44,7 @@ public class HybridSearchParam {
4444 private final BaseRanker ranker ;
4545 private final int topK ;
4646 private final List <String > outFields ;
47+ private final long offset ;
4748 private final int roundDecimal ;
4849 private final ConsistencyLevelEnum consistencyLevel ;
4950
@@ -59,6 +60,7 @@ private HybridSearchParam(@NonNull Builder builder) {
5960 this .ranker = builder .ranker ;
6061 this .topK = builder .topK ;
6162 this .outFields = builder .outFields ;
63+ this .offset = builder .offset ;
6264 this .roundDecimal = builder .roundDecimal ;
6365 this .consistencyLevel = builder .consistencyLevel ;
6466 this .groupByFieldName = builder .groupByFieldName ;
@@ -81,6 +83,7 @@ public static class Builder {
8183 private BaseRanker ranker = null ;
8284 private Integer topK ;
8385 private final List <String > outFields = Lists .newArrayList ();
86+ private Long offset = 0L ;
8487 private Integer roundDecimal = -1 ;
8588 private ConsistencyLevelEnum consistencyLevel = null ;
8689 private String groupByFieldName = null ;
@@ -204,6 +207,17 @@ public Builder addOutField(@NonNull String fieldName) {
204207 return this ;
205208 }
206209
210+ /**
211+ * Specifies the offset place of the returned results.
212+ *
213+ * @param offset the offset position
214+ * @return <code>Builder</code>
215+ */
216+ public Builder withOffset (@ NonNull Long offset ) {
217+ this .offset = offset ;
218+ return this ;
219+ }
220+
207221 /**
208222 * Specifies the decimal place of the returned results.
209223 *
@@ -218,7 +232,7 @@ public Builder withRoundDecimal(@NonNull Integer decimal) {
218232 /**
219233 * Groups the results by a scalar field name.
220234 *
221- * @param fieldName a scalar field name
235+ * @param groupByFieldName a scalar field name
222236 * @return <code>Builder</code>
223237 */
224238 public Builder withGroupByFieldName (@ NonNull String groupByFieldName ) {
0 commit comments