user2129060
user2129060

Reputation: 3

add files to solr with C#

i have XML files that I want to index to solr. is there a C# code to do it without building the whole document all over again as a .net class?

thanks

Upvotes: 0

Views: 1072

Answers (2)

Paige Cook
Paige Cook

Reputation: 22555

You could use SolrNet and follow the fully loose mapping steps outlined in the Mapping details. This would allow you to create a document by just using a Dictionary<string, object> in place of a class mapped to your index document.

Upvotes: 1

Jayendra
Jayendra

Reputation: 52769

If you are flexible enough you can check Solr DataImportHandler(DIH) which will allow you to index xml file directly without any Interaction with C# code.

Upvotes: 1

Related Questions