سؤال

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