Indexing Files (PDF, Word, etc.)

Use our API to index files such as PDF, Word, and Excel in your search engine.

Indexing a file

Our index has been created with the built-in document schema, and we're ready to index a PDF file.

Let's save a PDF file (such as this one) locally. The file path is going to be ~/Downloads/MyPDFFile.pdf but you can change that to wherever your file is. The cURL command to index the file would be:

curl --request POST \
  --url http://localhost:8201/upload/your_index_id \
  --form file=@~/Downloads/MyPDFFile.pdf

Last updated