What is Indexed Search?
The indexed search endpoints provide powerful vector-based search over previously collected X/Twitter data. Unlike live search, indexed search queries our secure vector database for lightning-fast results with no polling required.
Key Features
• Instant results from vector database• Semantic similarity matching• Hybrid search combining keywords and vectors• Secure TEE-protected data storage
Search Types
• Similarity Search: Semantically related content• Hybrid Search: Combine semantic and keyword matching
Use Cases
Perfect for applications needing:
- Fast historical data access
- Semantic content discovery
- Pattern and trend analysis
Indexed Search (Similarity & Hybrid)
The indexed search endpoints allow you to query stored data via a powerful vector-based search engine. These endpoints are ideal for applications that require high-speed access to previously fetched data, enabling use cases like:- Semantic similarity detection
- Hybrid relevance ranking
- Near-instant responses (no polling or job queues)
All searches operate over tweets already collected and stored in the Gopher vector store (Milvus).
Similarity Search (X/Twitter)
Use this endpoint to perform semantic searches on previously indexed X/Twitter data. Results are ranked based on vector similarity.Endpoint
Authentication
- Type: Bearer Token
- Header:
Authorization: Bearer <API_KEY>
Request Parameters
The request parameters allow you to customize your semantic search query. Thequery field is used to find semantically similar content, while sources specifies which data sources to search. Optional keywords can filter results, and you can use keyword_operator to control how multiple keywords are combined. Use max_results to limit the number of returned items.
Example Request
The following example demonstrates how to perform a semantic search for content related to “open source LLM models”, filtered to include tweets containing either “AI” or “NLP” keywords. The request limits results to 10 tweets and uses the “or” operator to match tweets containing any of the specified keywords.Example Response
Metadata will be included in future versions.
Hybrid Search (X/Twitter)
Hybrid search combines vector similarity and keyword-based full-text search for more powerful and flexible querying. By assigning weights to both semantic similarity and keyword matching, you can precisely tune how results are ranked. This allows you to balance finding content that is conceptually related (via vector similarity) with content containing specific keywords (via full-text search) to get the most relevant results for your use case.Endpoint
Authentication
- Type: Bearer Token
- Header:
Authorization: Bearer <API_KEY>
Example request
Choosing Between Search Types
Tips for Better Results• Use short, descriptive phrases in query
fields.• Use max_results: 1 for “I’m feeling lucky”
style lookups.• Try Hybrid Search if you want balance
between context and keyword targeting.