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

Filters in search? #1024

Closed
bvv218 opened this issue Nov 10, 2017 · 4 comments
Closed

Filters in search? #1024

bvv218 opened this issue Nov 10, 2017 · 4 comments
Labels
feature new functionality that’s not yet implemented search finding things through our models

Comments

@bvv218
Copy link

bvv218 commented Nov 10, 2017

I am new to administrate and I am wondering if there is a way to set up filters in search. For example, I need to filter by two columns where one boolean is true and one is false. Is it possible to set up with administrate?

@nickcharlton
Copy link
Member

There have been a few search suggestions and/or PRs that I'm aware of, but I don't know which of those would help you do what you're trying to achieve. In general, I'd punted complex search until post 1.0 (e.g.: #947).

It sounds to me like you'd need some sort of predicate-based searching for this? e.g.:

bob admin=false expired_member=true

…where bob is a search string, admin and expired_member boolean fields.

Is that what you're thinking of?

@asecondwill
Copy link

@nickcharlton - not sure what the OP was thinking but for me, being able to add fields in the search interface so users can explicitly tick for expired members, choose a category etc. I guess a bit like active admins sidebar. or is that a no no? Search in a single text field is definitely way cooler, but would need good ux hints to enable non devs to be able to work it.

@nickcharlton
Copy link
Member

Yeah, something like that might be nice.

My thinking is that a single search bar allows us to be much less specific with regards to the data, but you're right, it's a more difficult UX problem.

@nickcharlton nickcharlton added feature new functionality that’s not yet implemented search finding things through our models labels Jan 2, 2020
@pablobm
Copy link
Collaborator

pablobm commented Apr 22, 2021

I'm going to close this as it hasn't had activity in a long time, and because the topic of Search is one that I think is particularly tricky, and one for which I provide at opinion at: #1218 (comment)

@pablobm pablobm closed this as completed Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new functionality that’s not yet implemented search finding things through our models
Projects
None yet
Development

No branches or pull requests

4 participants