Frage

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.

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top