@Mauricio,
I have created a sample code that worked by taking latest zip code, built it and refer that dlls worked for me. If I take latest pre released solrnet dll from nuget, it is not working and throwing "400" error.
Sample Code:
public interface IndexDocument
{
}
class Program
{
static void Main(string[] args)
{
try
{
Startup.Init<IndexDocument>("http://localhost:8090/solr/Core3");
var solr = ServiceLocator.Current.GetInstance<ISolrOperations<IndexDocument>>();
using (FileStream fileStream = File.OpenRead(@"D:\Ravi\Solr\SolrClient\SolrClient\solr-word.pdf"))
{
var response =
solr.Extract(
new ExtractParameters(fileStream, "doc3")
{
ExtractFormat = ExtractFormat.Text,
ExtractOnly = false
});
}
solr.Commit();
Console.ReadLine();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}
I am very new to solr and solrnet. Can you please help me providing some details that what different things I can add in interface "IndexDocument" and "ExtractParameters" i.e. different variations.
Regards,
Ravi
---------------------------------------------------------------