Skip to content

Conversation

@pymonger
Copy link
Contributor

@pymonger pymonger commented Dec 23, 2025

Summary

  • Add CLOSED_INDEX_PARAMS constant with ignore_unavailable, allow_no_indices, and expand_wildcards settings
  • Add _create_search() helper method to apply closed index parameters to all ES searches
  • Update all query methods in QueryES class to use the helper method

This prevents index_closed_exception errors when ISM policies close old indices.

Changes

  • pele/lib/query.py: Add closed index handling to all ES search queries

Test plan

  • Verify API queries work correctly with closed indices
  • Test that searches work when some indices in wildcard pattern are closed

Generated with Claude Code


Note

Improves ES query robustness when some indices are closed.

  • Introduces CLOSED_INDEX_PARAMS (ignore_unavailable, allow_no_indices, expand_wildcards: open) and helper /_create_search/ to apply them
  • Updates all QueryES methods to construct searches via /_create_search/ (e.g., query_types, query_datasets, query_fields, overlaps, etc.)
  • Bumps version in setup.py to 1.4.0

Written by Cursor Bugbot for commit ab01796. This will update automatically on new commits. Configure here.

FIXME and others added 4 commits December 23, 2025 08:11
Add CLOSED_INDEX_PARAMS constant and _create_search helper method to
automatically apply ignore_unavailable, allow_no_indices, and
expand_wildcards parameters to all ES search queries.

This prevents index_closed_exception errors when ISM policies close
old indices.

Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants