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

[FEATURE] Allow regex search #5728

Open
cceyda opened this issue Dec 4, 2024 · 0 comments
Open

[FEATURE] Allow regex search #5728

cceyda opened this issue Dec 4, 2024 · 0 comments
Labels
type: enhancement Indicates new feature requests

Comments

@cceyda
Copy link
Contributor

cceyda commented Dec 4, 2024

Is your feature request related to a problem? Please describe.

I'm searching through records in the UI and can't match using regex:

Example:

  • My record is : "blah blah 3apples on the tree"
  • If I search for "apples" it doesn't show up on the results because there is no space between "3" and "apples"
  • It only shows on search results if my record is like: "3 apples on the tree"

This used to be possible to search with "*apples*" regex because on the backend it was using a type of search that supported regex but now it is using 'simple_query_string' which doesn't support this (More discussion on discord)

This is especially critical for languages where spacing isn't strictly adhered to ie: Chinese,Japanese,Korean
Where the lack of this functionality basicall makes whole search functionality meaningless 😢

Describe the solution you'd like

Have tick box or an option to enable the old type of searching through records(like back in v1) using regex.
This

{
  "query": {
    "query_string": {
      "query": "fields.title:*mysubstring*"
    }
  }
}

or this

{
  "query": {
    "wildcard": {
      "fields.title": {
        "value": "*mysubstring*"
      }
    }
  }
}

This type of search works better than the current limited simple_query_string type of search. I understand this was due to some optimization due to performance but I would rather have the option to do slower queries than not have the functionality at all

Describe alternatives you've considered

Not possible at all through UI

Additional context

I would say this is critical as it was the thing I liked most about argilla before. The data visibility and ease of discovery.
visibility is currently limited due to permissions where admin is not able to see submitted records and discovery is hindered largely by this issue 😭 Also a pain point that was pointed out very very quickly back to us by our annotators, like if they make a mistake and want to change it there is no way for them to find the thing they are looking for easily right now

@damianpumar damianpumar added the type: enhancement Indicates new feature requests label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

2 participants