Вопрос

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.

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top