3

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..

D_K
  • 1,410
  • 12
  • 35
Vinit Patel
  • 2,408
  • 5
  • 28
  • 53

2 Answers2

3

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:

Paige Cook
  • 22,415
  • 3
  • 57
  • 68
2

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 or SolrNightlyBuilds instead.

FrKunze
  • 190
  • 3
  • 8
  • Please see https://github.com/mausch/SolrNet/blob/master/Documentation/README.md#downloads , that'll always be the authoritative source. – Mauricio Scheffer Feb 13 '15 at 13:19