{"version":"1.0","type":"rich","title":"Slow indexing, elasticsearch/django/haystack","description":"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.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-3962757333ea28f27384917c363ca70e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}