@@ -226,22 +226,51 @@ paths:
226226 x-is_insert : true
227227 /pq/{index}/search :
228228 post :
229- description : " Performs a percolate search. \n This method must be used only on\
230- \ percolate indexes.\n\n Expects two parameters: the index name and an object\
231- \ with array of documents to be tested.\n An example of the documents object:\n \
232- \n ```\n {\n \" query\" :\n {\n \" percolate\" :\n {\n \
233- \ \" document\" :\n {\n \" content\" :\" sample content\"\n \
234- \ }\n }\n }\n }\n ```\n\n Responds with an object with matched\
235- \ stored queries: \n\n ```\n {\n 'timed_out':false,\n 'hits':\n \
236- \ {\n 'total':2,\n 'max_score':1,\n 'hits':\n [\n \
237- \ {\n '_index':'idx_pq_1',\n '_type':'doc',\n \
238- \ '_id':'2',\n '_score':'1',\n '_source':\n \
239- \ {\n 'query':\n {\n 'match':{'title':'some'}\n \
240- \ }\n }\n },\n {\n '_index':'idx_pq_1',\n \
241- \ '_type':'doc',\n '_id':'5',\n '_score':'1',\n \
242- \ '_source':\n {\n 'query':\n {\n \
243- \ 'ql':'some | none'\n }\n }\n }\n \
244- \ ]\n }\n }\n ```\n "
229+ description : |
230+ Performs a percolate search. <br><br>
231+ This method must be used only on percolate indexes. <br>
232+ Expects two parameters: the index name and an object with array of documents to be tested. <br> <br> An example of the documents object: <br>
233+ { <br>
234+ "query" {<br>
235+ "percolate": {<br>
236+ "document": { <br>
237+ "content":"sample content" <br>
238+ } <br>
239+ } <br>
240+ } <br>
241+ } <br>
242+ <br> Responds with an object with matched stored queries: <br>
243+ { <br>
244+ 'timed_out':false, <br>
245+ 'hits': { <br>
246+ 'total':2, <br>
247+ 'max_score':1, <br>
248+ 'hits': [ <br>
249+ { <br>
250+ '_index':'idx_pq_1', <br>
251+ '_type':'doc', <br>
252+ '_id':'2', <br>
253+ '_score':'1', <br>
254+ '_source': { <br>
255+ 'query': { <br>
256+ 'match':{'title':'some'} <br>
257+ } <br>
258+ } <br>
259+ }, <br>
260+ { <br>
261+ '_index':'idx_pq_1', <br>
262+ '_type':'doc', <br>
263+ '_id':'5', <br>
264+ '_score':'1', <br>
265+ '_source': { <br>
266+ 'query': { <br>
267+ 'ql':'some | none' <br>
268+ } <br>
269+ } <br>
270+ } <br>
271+ ] <br>
272+ } <br>
273+ } <br>
245274 externalDocs :
246275 url : https://manual.manticoresearch.com/Updating_documents/UPDATE
247276 operationId : percolate
@@ -1166,13 +1195,13 @@ components:
11661195 sqlObjResponse :
11671196 type : object
11681197 sqlResponse :
1169- anyOf :
1170- - $ref : ' #/components/schemas/sqlRawResponse'
1171- - $ref : ' #/components/schemas/sqlObjResponse'
11721198 description : List of responses from executed SQL queries
11731199 example :
11741200 - total : 0
11751201 error : null
1202+ oneOf :
1203+ - $ref : ' #/components/schemas/sqlRawResponse'
1204+ - $ref : ' #/components/schemas/sqlObjResponse'
11761205 updateDocumentRequest :
11771206 description : Payload for updating a document or multiple documents in an index
11781207 properties :
0 commit comments