Skip to content

Commit b200237

Browse files
add is_brute_search in search request
1 parent a51accc commit b200237

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ Searching by an image stored in images folders or image URI on Internet, using t
142142
```shell
143143
curl -H "content-type: application/json" -XPOST -d '{ "query": { "sum": [{"feature":"../images/COCO_val2014_000000123599.jpg", "field":"feature1"}]}}' http://127.0.0.1:4101/test/test/_search
144144
145+
```
146+
**Note**:If no index is created, you need add a parameter in request to enforce brute force search rather than index search, eg:
147+
```shell
148+
curl -H "content-type: application/json" -XPOST -d '{ "query": { "sum": [{"feature":"../images/COCO_val2014_000000123599.jpg", "field":"feature1"}]},"is_brute_search":1}' http://127.0.0.1:4101/test/test/_search
149+
145150
```
146151
147152
A successful response looks like this:

0 commit comments

Comments
 (0)