LogoLogo
  • Getting Started
  • Concepts
    • Indices & Schemas
    • Searching
  • Storing Your Data
    • Introduction to Storing
    • Indexing via the JSON API
    • Indexing Files (PDF, Word, etc.)
Powered by GitBook
On this page

Was this helpful?

  1. Storing Your Data

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

PreviousIndexing via the JSON API

Last updated 6 years ago

Was this helpful?