|
@@ -39,7 +39,6 @@ import java.util.SortedMap;
|
|
|
* Parameters for <code>search</code> interface.
|
|
|
*/
|
|
|
@Getter
|
|
|
-@ToString
|
|
|
public class SearchParam {
|
|
|
private final String databaseName;
|
|
|
private final String collectionName;
|
|
@@ -453,4 +452,29 @@ public class SearchParam {
|
|
|
throw new ParamException(msg);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * Warning: don't use lombok@ToString to annotate this class
|
|
|
+ * because large number of vectors will waste time in toString() method.
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ return "SearchParam{" +
|
|
|
+ "collectionName='" + collectionName + '\'' +
|
|
|
+ ", databaseName='" + databaseName + '\'' +
|
|
|
+ ", partitionNamesCount='" + partitionNames.size() + '\'' +
|
|
|
+ ", metricType=" + metricType +
|
|
|
+ ", vectorFieldName='" + vectorFieldName + '\'' +
|
|
|
+ ", expr='" + expr + '\'' +
|
|
|
+ ", topK=" + topK +
|
|
|
+ ", nq=" + NQ +
|
|
|
+ ", expr='" + expr + '\'' +
|
|
|
+ ", params='" + params + '\'' +
|
|
|
+ ", outputFields=" + outFields +
|
|
|
+ ", consistencyLevel='" + consistencyLevel + '\'' +
|
|
|
+ ", ignoreGrowing='" + ignoreGrowing + '\'' +
|
|
|
+ '}';
|
|
|
+ }
|
|
|
}
|