Question

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

Was it helpful?

Solution

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:

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top