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

Does not commit changes #3

Open
galaxyjams opened this issue Aug 17, 2015 · 2 comments
Open

Does not commit changes #3

galaxyjams opened this issue Aug 17, 2015 · 2 comments

Comments

@galaxyjams
Copy link

I can see the documents going into SOLR but the plugin does not commit the changes.

This is on Logstash 1.5.3 and SOLR 5.2.1

@pdericson
Copy link

I have noticed this too, the workaround I'm using for now is a doing an optimise via curl via cron. Coming from elasticsearch I found the default behaviour confusing

@alaim89
Copy link

alaim89 commented Nov 16, 2017

Hi guys,

Sorry for my english, I hope you understand my lines :)

since I also have this problem and after a long time found a workaround, it would be super if it can be included in the development.

under

/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-solr_http-3.0.4/lib/logstash/outputs/solr_http.rb

I had to make the following correction

document ["@ timestamp"] = document ["@ timestamp"]. iso8601 -> comment out

#document ["@ timestamp"] = document ["@ timestamp"]. iso8601

and

@solr.add (documents) -> replace with

@solr.add (documents,: add_attributes => {: commitWithin => 1000})

Now I had no more problems indexing with Solr.

greeting

alaim89

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

3 participants