You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/typesense/model/MultiSearchParameters.java
+29-4Lines changed: 29 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ public class MultiSearchParameters {
96
96
/**
97
97
* The number of typographical errors (1 or 2) that would be tolerated. Default: 2
98
98
**/
99
-
privateIntegernumTypos = null;
99
+
privateStringnumTypos = null;
100
100
101
101
@Schema(description = "Results from this specific page number would be fetched.")
102
102
/**
@@ -247,6 +247,12 @@ public class MultiSearchParameters {
247
247
* Minimum word length for 2-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos.
248
248
**/
249
249
privateIntegerminLen2typo = null;
250
+
251
+
@Schema(description = "Vector query expression for fetching documents \"closest\" to a given query/document vector. ")
252
+
/**
253
+
* Vector query expression for fetching documents \"closest\" to a given query/document vector.
254
+
**/
255
+
privateStringvectorQuery = null;
250
256
/**
251
257
* The query text to search for in the collection. Use * as the search string to return all documents. This is typically useful when used in conjunction with filter_by.
252
258
* @return q
@@ -468,15 +474,15 @@ public MultiSearchParameters facetQuery(String facetQuery) {
Copy file name to clipboardExpand all lines: src/main/java/org/typesense/model/SearchHighlight.java
+55Lines changed: 55 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,18 @@ public class SearchHighlight {
32
32
**/
33
33
privateList<String> snippets = null;
34
34
35
+
@Schema(example = "<mark>Stark</mark> Industries is a major supplier of space equipment.", description = "Full field value with highlighting, present only for (non-array) string fields")
36
+
/**
37
+
* Full field value with highlighting, present only for (non-array) string fields
38
+
**/
39
+
privateStringvalue = null;
40
+
41
+
@Schema(example = "[\"<mark>Stark</mark> Industries\",\"<mark>Stark</mark> Corp\"]", description = "Full field value with highlighting, present only for (array) string[] fields")
42
+
/**
43
+
* Full field value with highlighting, present only for (array) string[] fields
44
+
**/
45
+
privateList<String> values = null;
46
+
35
47
@Schema(example = "1", description = "The indices property will be present only for string[] fields and will contain the corresponding indices of the snippets in the search field")
36
48
/**
37
49
* The indices property will be present only for string[] fields and will contain the corresponding indices of the snippets in the search field
@@ -99,6 +111,47 @@ public SearchHighlight addSnippetsItem(String snippetsItem) {
99
111
returnthis;
100
112
}
101
113
114
+
/**
115
+
* Full field value with highlighting, present only for (non-array) string fields
116
+
* @return value
117
+
**/
118
+
@JsonProperty("value")
119
+
publicStringgetValue() {
120
+
returnvalue;
121
+
}
122
+
123
+
publicvoidsetValue(Stringvalue) {
124
+
this.value = value;
125
+
}
126
+
127
+
publicSearchHighlightvalue(Stringvalue) {
128
+
this.value = value;
129
+
returnthis;
130
+
}
131
+
132
+
/**
133
+
* Full field value with highlighting, present only for (array) string[] fields
Copy file name to clipboardExpand all lines: src/main/java/org/typesense/model/SearchParameters.java
+50Lines changed: 50 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,12 @@ public class SearchParameters {
153
153
**/
154
154
privateStringhighlightEndTag = null;
155
155
156
+
@Schema(description = "Flag for enabling/disabling the deprecated, old highlight structure in the response. Default: true ")
157
+
/**
158
+
* Flag for enabling/disabling the deprecated, old highlight structure in the response. Default: true
159
+
**/
160
+
privateBooleanenableHighlightV1 = true;
161
+
156
162
@Schema(description = "Field values under this length will be fully highlighted, instead of showing a snippet of relevant portion. Default: 30 ")
157
163
/**
158
164
* Field values under this length will be fully highlighted, instead of showing a snippet of relevant portion. Default: 30
@@ -260,6 +266,12 @@ public class SearchParameters {
260
266
* Minimum word length for 2-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos.
261
267
**/
262
268
privateIntegerminLen2typo = null;
269
+
270
+
@Schema(description = "Vector query expression for fetching documents \"closest\" to a given query/document vector. ")
271
+
/**
272
+
* Vector query expression for fetching documents \"closest\" to a given query/document vector.
273
+
**/
274
+
privateStringvectorQuery = null;
263
275
/**
264
276
* The query text to search for in the collection. Use * as the search string to return all documents. This is typically useful when used in conjunction with filter_by.
265
277
* @return q
@@ -674,6 +686,24 @@ public SearchParameters highlightEndTag(String highlightEndTag) {
674
686
returnthis;
675
687
}
676
688
689
+
/**
690
+
* Flag for enabling/disabling the deprecated, old highlight structure in the response. Default: true
0 commit comments