Hi Marc, as far as I know the best way to do it is working from the original source, because it is possible, that not all fields are stores, and the original content of the not stored fields is not inside the Solr document.
Péter 2011/3/21 Marc SCHNEIDER <marc.schneide...@gmail.com>: > Hello, > > I'd like to know the fastest way (code lines) to update a field of a > document. > So my idea was: > 1) Get a SolrDocument > 2) Add all fields of the SolrDocument to a new SolrInputDocument > 3) Update the field in SolrInputDocument > 4) Add SolrInputDocument to the server and commit it > > Is there a fastest way to do that? I mean transforming a SolrDocument into a > SolrInputDocument? > > Thanks in advance, > Regards, > Marc. >