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

Reindexing objects is not automatically running on ruby on rails #12

Open
mzane42 opened this issue Apr 14, 2016 · 0 comments
Open

Reindexing objects is not automatically running on ruby on rails #12

mzane42 opened this issue Apr 14, 2016 · 0 comments

Comments

@mzane42
Copy link

mzane42 commented Apr 14, 2016

Hi,
i'm using Sunspot Solr for indexing and searching in our Ruby on Rails application with MangoDB
database (Mongo mapper)

The searching works well, but objects aren't automatically indexed to Solr when i make changes on my database.

I tried manually index on a class itself:

Top.reindex
Sunspot.commit

Or, I added on sunspot.yml :

auto_commit_after_request: true

I also autocommit with some interval on solrconfig.xml :

<autoCommit>
<maxDocs>10000</maxDocs>
<maxTime>15000</maxTime>
</autoCommit>

All this solutions failed to reindex automatically my objects, unless i reindex all objects with rake task :

bundle exec rake sunspot:reindex

Any other solutions ?

Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants