Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 589 Vote(s) - 3.51 Average
  • 1
  • 2
  • 3
  • 4
  • 5
solr commit returns 400 bad request , In Log :- Unknown commit parameter 'waitFlush'

#1
i am New to solr and i am trying to make 1 sample test application, when application execute
and i get error in visual studio on run time, error :--solr commit returns 400 bad request

and in solr log file i got error :-- Unknown commit parameter 'waitFlush'

Why this error ..

apache tomcat solr version :- 4.6.0

solrnet.dll version :- 0.3.0.0

Solr code in .net application:-

var files = new TextFileRepository(this.connectionString).GetTextFiles();
solrWorker.Add(files);
solrWorker.Commit(); --> here i get errro "solr commit returns 400 bad request"

How to resolve it..?

regards..
Reply

#2
You are using an older version of SolrNet. This error is a known issue with older versions of SolrNet and Solr 4.X. Please grab an updated version from one of the following:

- [NuGet - Pre-Release v0.4.0-beta2][1]
- [Solr Nightly Builds][2] - (click the Artifacts link to get access to the downloadable zip)
- [GitHub Source][3] - pull the latest source down and compile locally or use a [release][4].


[1]:

[To see links please register here]

[2]:

[To see links please register here]

[3]:

[To see links please register here]

[4]:

[To see links please register here]

Reply

#3
Please note, in addition to Paige Cook's answer, that currently (Jan 2015) NuGet doesn't hold the latest version. Using `Install-Package SolrNet -Pre` you get an assembly with version number `0.4.0.2002`, which is the current number, but there is a more recent version within this version number (tricky!). To fix the problem, use [GitHub][1] or [SolrNightlyBuilds][2] instead.


[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through