Skip to content

What is the difference between filterable, queryable and searchable? #3566

Answered by airled
best-cloud asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there.

Filterable

Filterable defines fields that can be filtered with the menu in the top right corner.

By default all fields are filterable. But you can disable it by such:

config.model 'Feed' do
  list do
    configure :name do
      filterable false
    end
  end
end

And now my field is gone:

Queryable

Queryable defines fields, values of which can be searched via this search box:

By default rails_admin searches in id and name fields. So if I type there 345 on my feed model page,

rails_admin hits this sql query:

Feed Load (3.3ms)  SELECT "feeds".* FROM "feeds" WHERE ((feeds.id = 345) OR (feeds.name ILIKE '%345%')) ORDER BY feeds.id desc LIMIT $1 OFFSET $2  [["LIMIT", 20], ["OFFSE…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by codealchemy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants