Skip to content

issue with regex #297

@randomgambit

Description

@randomgambit

Hello and thanks for this great package. I am having some issues with using regex and elastic.

Consider the following query string

   myquery = ' {"query": { "regexp": { "data.headline.keyword": { "value": ".*hello world.*",
                                               "case_insensitive": True}}}
    }'

This query string works perfectly fine in Python when using opensearch-py. However, when using elastic in R I get an error:

elastic::count(con, q = myquery, index = 'myindex_*')

Error: 400 - all shards failed
ES stack trace:

  type: parse_exception
  reason: parse_exception: Encountered " <RANGE_GOOP> 

Do you know what the issue is?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions