-
Notifications
You must be signed in to change notification settings - Fork 0
Indexing Documents
Sidhant Aggarwal edited this page Aug 3, 2020
·
1 revision
After the configuration for the index has been done, you can start adding documents to your index. To Index the document you need to give some unique identifier to the document. For example, for users index it can be the user_id
Use the following API to do so:
curl --location --request PUT 'http://localhost:9998/v1/index/users/document/{uniqueDocumentId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"document": {
"name": "Sid",
"age": 54,
"numbers": [12,14],
"tags": ["first", "second"],
"address": {
"house_number": "232",
"pincode": 160019
}
}
}'