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
The method expects an object with the following mandatory properties:
16
+
The method expects a SearchRequest object with the following mandatory properties:
17
17
18
-
* the name of the index to search
18
+
* the name of the index to search | string
19
19
20
-
* the match query object
21
-
22
20
For details, see the documentation on [**SearchRequest**](SearchRequest.md)
23
21
24
22
The method returns an object with the following properties:
@@ -59,18 +57,17 @@ Here is an example search response:
59
57
}
60
58
```
61
59
62
-
For more information about the match query syntax, additional paramaters that can be set to request and response, please check: https://manual.manticoresearch.com/Searching/Full_text_matching/Basic_usage#HTTP-JSON.
60
+
For more information about the match query syntax, additional parameters that can be set to request and response, please check: https://manual.manticoresearch.com/Searching/Full_text_matching/Basic_usage#HTTP-JSON.
63
61
64
62
65
63
### Example
66
64
```java
67
65
66
+
importjava.util.*;
68
67
importcom.manticoresearch.client.ApiClient;
69
68
importcom.manticoresearch.client.ApiException;
70
69
importcom.manticoresearch.client.Configuration;
71
70
importcom.manticoresearch.client.model.*;
72
-
importcom.manticoresearch.client.api.IndexApi;
73
-
importcom.manticoresearch.client.api.UtilsApi;
74
71
importcom.manticoresearch.client.api.SearchApi;
75
72
76
73
publicclassSearchApiExample {
@@ -122,10 +119,10 @@ No authorization required
122
119
-**Accept**: application/json
123
120
124
121
### HTTP response details
125
-
| Status code | Description | Response headers |
126
-
|-------------|-------------|------------------|
127
-
|**200**|Ok | - |
128
-
|**0**|error | - |
122
+
| Status code | Description |
123
+
|-------------|-------------|
124
+
|**200**|Success, query processed|
125
+
|**500**|Server error|
129
126
130
127
131
128
## percolate
@@ -134,14 +131,14 @@ No authorization required
134
131
135
132
Perform a reverse search on a percolate index
136
133
137
-
Performs a percolate search.
138
134
This method must be used only on percolate indexes.
139
135
140
-
Expects two parameters: the index name and an object with an array of documents to be tested.
141
-
An example of the documents object:
136
+
Expects two parameters: the index name and an object with a document or an array of documents to search by.
137
+
Here is an example of the object with a single document:
142
138
143
139
```
144
-
{"query":
140
+
{
141
+
"query":
145
142
{
146
143
"percolate":
147
144
{
@@ -193,17 +190,38 @@ Responds with an object with matched stored queries:
193
190
}
194
191
```
195
192
193
+
And here is an example of the object with multiple documents:
0 commit comments