Skip to content

How use searchable with json field? #3545

Open
@alexander-storozhenko

Description

@alexander-storozhenko

I have some table:

...
 t.jsonb "connection_info", default: {}
...

I want to filter my records by json field "offline_time"

I have a code:

field :online_time do
   searchable [SomeModel => { connection_info:  "offline_time" }] # this not works(
    
   formatted_value do
   ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions