Skip to content

New Query API #1395

@ankane

Description

@ankane

The current plan is for Searchkick 5 to have a new query API similar to Active Record.

Product.search("apples").where(in_stock: true).page(10).per(50)

You can still use pass options to search for backwards compatibility, but queries will be performed lazily instead of eagerly.

Edit: This wasn't included in Searchkick 5, but there's experimental support for some methods in the latest release. If you have any feedback, please comment below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions