Reputation: 3
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
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
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