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

Elasticsearch with smart_listing #155

Open
Kani999 opened this issue Feb 1, 2019 · 0 comments
Open

Elasticsearch with smart_listing #155

Kani999 opened this issue Feb 1, 2019 · 0 comments

Comments

@Kani999
Copy link

Kani999 commented Feb 1, 2019

How can I pass records from elasticsearch to smart-listing.

I'am getting an error at smart_listing_create

  • undefined method split' for :jobdatetime:Symbol`

Code:

...
    accounting_pbs_job = Kaminari.paginate_array(accounting_pbs_job,
                                                 total_count: total_count)
                                                 .page(page)
                                                 .per(per_page).to_ary

    @accounting_pbs_jobs = smart_listing_create(:accounting_pbs_jobs,
                                                accounting_pbs_job,
                                                partial: "accounting_pbs_jobs/search",
                                                array: true)
...
  • I'm using Kaminari.paginate_array because of the elasticsearch collection.
@Kani999 Kani999 changed the title Elasticsearch Elasticsearch with smart_listing Feb 1, 2019
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

1 participant