Skip to content

[Fixed] All shards failed when using "!=" operator for _id field starting with "-" #13

@alirezaImani79

Description

@alirezaImani79

Hi philip

Bug description

I have a problem using "!=" for comparing _id field with a value that starting with "-" .
please give me a solution to this problem .

To Reproduce

For Example :

Audit::where('_id', '!=' , '-t9Z2o0BD6JyEaA0u_qU' )->get();

This code will cause an "query_shard_exception" with reson : "Failed to parse query" .

This _id have been automatically generated by elasticsearch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions