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

Specify particular column to be searched. #788

Open
1 task done
JakNowy opened this issue Jul 8, 2024 · 1 comment
Open
1 task done

Specify particular column to be searched. #788

JakNowy opened this issue Jul 8, 2024 · 1 comment

Comments

@JakNowy
Copy link

JakNowy commented Jul 8, 2024

Checklist

  • There are no similar issues or pull requests for this yet.

Is your feature related to a problem? Please describe.

I can specify columns to search against, using column_sortable_list. But afaik, it always searches in all columns, which is often unnecessary costly.

Describe the solution you would like.

I would like to be able to pass search terms as keywords eg. "field1 = 'abc'", so that it's the only filter executed on the database level, rather than "field1 = 'abc', field2 = 'abc'".

Describe alternatives you considered

Even better, the filters could be able to differentiate column type and pick more optimal operator than ilike for columns like int or primary key and leverage their indicies. Maybe even between operators for numbers and timestamps?

Additional context

No response

@onejgordon
Copy link

Looks related to #459. We'd find this extremely useful as well.

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

No branches or pull requests

2 participants