Skip to main content

Search API

The Search API is the core of Glean's search functionality, enabling you to perform powerful searches across your organization's content. Access search results, autocomplete suggestions, and personalized feeds to build custom search experiences and knowledge discovery applications.

Use Cases

Custom Search Interfaces

Build tailored search experiences for your applications using Glean's powerful search capabilities with custom filtering and ranking.

Autocomplete Integration

Enhance user experience with intelligent autocomplete suggestions that help users discover relevant content as they type.

Personalized Content Discovery

Leverage personalized feeds and search results to surface the most relevant content for each user based on their role and interests.

API Endpoints

MethodEndpointPurpose
POST/rest/api/v1/adminsearchSearch the index (admin)
Retrieves results for search query without respect for permissions. This is available only to privileged users.
POST/rest/api/v1/autocompleteAutocomplete
Retrieve query suggestions, operators and documents for the given partially typed query.
POST/rest/api/v1/feedFeed of documents and events
The personalized feed/home includes different types of contents including suggestions, recents, calendar events and many more.
POST/rest/api/v1/recommendationsRecommend documents
Retrieve recommended documents for the given URL or Glean Document ID.
POST/rest/api/v1/searchSearch
Retrieve results from the index for the given query and filters.