index_document
Index a document into Elasticsearch with duplicate prevention and automatic ID generation.
Instructions
Index a document into Elasticsearch with smart duplicate prevention and intelligent document ID generation. 💡 RECOMMENDED: Use 'create_document_template' tool first to generate a proper document structure and avoid validation errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Name of the Elasticsearch index to store the document | |
| document | Yes | Document data to index as JSON object. 💡 RECOMMENDED: Use 'create_document_template' tool first to generate proper document format. | |
| doc_id | No | Optional document ID - if not provided, smart ID will be generated | |
| validate_schema | No | Whether to validate document structure for knowledge base format | |
| check_duplicates | No | Check for existing documents with similar title before indexing | |
| force_index | No | Force indexing even if potential duplicates are found. 💡 TIP: Set to True if content is genuinely new and not in knowledge base to avoid multiple tool calls | |
| use_ai_similarity | No | Use AI to analyze content similarity and provide intelligent recommendations |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |