Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Is the wait_for option among the refresh options of Delete by query supported? #12687

Open
bcc829 opened this issue Mar 15, 2024 · 1 comment
Labels
bug Something isn't working Indexing Indexing, Bulk Indexing and anything related to indexing Search Search query, autocomplete ...etc

Comments

@bcc829
Copy link

bcc829 commented Mar 15, 2024

Describe the bug

An error occurs if refesh=wait_for is set when requesting Delete by query.

Related component

Search

To Reproduce

  1. When requesting Delete by query, set refesh=wait_for. (ex: test_index/_delete_by_query?refresh=wait_for)
  2. Check if an error occurs.
{
    "error": {
        "root_cause": [
            {
                "type": "illegal_argument_exception",
                "reason": "Failed to parse value [wait_for] as only [true] or [false] are allowed."
            }
        ],
        "type": "illegal_argument_exception",
        "reason": "Failed to parse value [wait_for] as only [true] or [false] are allowed."
    },
    "status": 400
}

Expected behavior

The document for the refresh option of Delete by query(https://opensearch.org/docs/2.12/api-reference/document-apis/delete-by-query/) must be modified or wait_for must be supported.

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@andrross
Copy link
Member

[Triage - attendees 1 2 3 4 5 6]
@bcc829 Thanks for filing. It does indeed look like a problem here.

@andrross andrross added Indexing Indexing, Bulk Indexing and anything related to indexing and removed untriaged labels Mar 20, 2024
@getsaurabh02 getsaurabh02 moved this from 🆕 New to Later (6 months plus) in Search Project Board Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Indexing Indexing, Bulk Indexing and anything related to indexing Search Search query, autocomplete ...etc
Projects
Status: Later (6 months plus)
Development

No branches or pull requests

2 participants