File tree 1 file changed +46
-2
lines changed
1 file changed +46
-2
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,21 @@ Running server:
24
24
25
25
## HTTP API
26
26
27
- ### Get index
27
+ ### Check if index exists
28
+
29
+ Returns HTTP status 200 if the index exists.
30
+
31
+ ```
32
+ HEAD /:indexname
33
+ ```
34
+
35
+ ### Get index info
28
36
29
37
Returns information about an index.
30
38
31
39
```
32
40
GET /:indexname
33
41
```
34
-
35
42
### Create index
36
43
37
44
Creates a new index.
@@ -76,3 +83,40 @@ POST /:indexname/_search
76
83
``` json
77
84
{"query" : [100 , 200 , 300 ], "timeout" : 10 }
78
85
```
86
+
87
+ ### Check if fingerprint exists
88
+
89
+ Returns HTTP status 200 if the fingerprint exists.
90
+
91
+ ```
92
+ HEAD /:indexname/:fpid
93
+ ```
94
+
95
+ ### Get fingerprint info
96
+
97
+ ```
98
+ GET /:indexname/:fpid
99
+ ```
100
+
101
+ ### Update fingerprint
102
+
103
+ ```
104
+ PUT /:indexname/:fpid
105
+ ```
106
+
107
+ ``` json
108
+ {"hashes" : [100 , 200 , 300 ]}
109
+ ```
110
+
111
+ Prefer using ` /_update ` for bulk operations.
112
+
113
+ ### Delete fingerprint
114
+
115
+ Deletes a single fingerprint.
116
+
117
+ ```
118
+ DELETE /:indexname/:fpid
119
+ ```
120
+
121
+ Prefer using ` /_update ` for bulk operations.
122
+
You can’t perform that action at this time.
0 commit comments