Slow indexing, elasticsearch/django/haystack
✓ Published0🌍 Public
Aamccartney
Last edited May 10, 2016
Created on May 10, 2016
This example demonstrates how to build a search index for contract records using Elasticsearch, Django, and Haystack. It shows the configuration of a Haystack connection to an AWS Elasticsearch instance with request signing via `requests_aws4auth.AWS4Auth`, and defines a `ContractIndex` class that indexes fields like fiscal year, dollars obligated, and transaction status. The code uses Haystack’s `indexes.CharField` and `indexes.DecimalField` to map model attributes, with a template-based `text` field for full-text search. It also includes Django REST Framework and `drf-haystack` for API integration, though the visualization behavior itself is not depicted.
AI-generated description