Question

In the solrj api there is a way to post a file simply by building a SolrDocument with fields described by keys and values. Is there an eqivalent way in solrnet? I simply want to index an xml file without mapping it with a POCO object first.

Was it helpful?

Solution

Please refer to the Fully loose mapping section of the SolrNet Mapping documentation for an example of how to index data without first mapping it to a POCO object. As compared to SolrJ you will build a Dictionary<string,object> with your keys and values that match the fields in your schema.

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