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.

Était-ce utile?

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top