REST APIs FAQ
Frequently asked questions about using Glean’s REST APIs, including troubleshooting guides and implementation tips
Our REST APIs FAQ provides answers to common questions about implementing and using Glean’s APIs. For detailed implementation guidance, please refer to our developer documentation.
Why isn't my indexed document appearing in search results?
Why isn't my indexed document appearing in search results?
When using the /indexdocument and /bulkindexdocuments endpoints, documents are added to a processing queue and are not indexed immediately. To expedite document indexing:
- Use the /processalldocuments endpoint to schedule immediate processing
- Verify document status using the get document information endpoint
- Check permissions with the check document access endpoint if the document is indexed but not appearing in results
How can I delete documents from my custom data source?
How can I delete documents from my custom data source?
You have several options for document deletion:
- Use the /deletedocument endpoint for individual documents
- Use /bulkindexdocuments to remove documents not present in the upload
- To delete all documents, use /bulkindexdocuments with an empty documents array and set disableStaleDocumentDeletionCheck to true
Where can I find example API implementations?
Where can I find example API implementations?
We maintain a public GitHub repository with example implementations for our APIs. You can find these examples in our indexing-api-connectors repository.
Why is the 'Results Display' section blank in the UI for my custom data source?
Why is the 'Results Display' section blank in the UI for my custom data source?
The Results Display options are not shown until object definitions are created for the data source. This is because you can customize the results display based on the object type. For more information on setting up object definitions, please refer to our documentation on custom properties.