Hi,
That’s how you build regular document. Incremental/atomic updates need to use
update commands.
Did not check latest Solrj, so maybe there is built in way of doing that, but
quick googling showed how it can be achieved:
SolrInputDocument doc2 = new SolrInputDocument();
Map fpValue2 = ne
Hi Emir,
It's normal setfield and addDocument
for ex.
in a for loop
solrInputDocument.setField(sFieldId, fieldValue);
and after this, we add the created document.
solrClient.add(collectionName, solrInputDocuments);
I just want to know whether, we need to do something specific for in-place
Hi,
Can you share part of code where you prepare update.
Thanks,
Emir
--
Monitoring - Log Management - Alerting - Anomaly Detection
Solr & Elasticsearch Consulting Support Training - http://sematext.com/
> On 14 Mar 2018, at 15:27, mganeshs wrote:
>
> Hi Emir,
>
> I am using solrj to update
On 3/14/2018 8:27 AM, mganeshs wrote:
As I mentioned before, since I am updating only docvalues i expect it should
update in faster than updating normal field. Isn't it ?
Maybe. But not always.
To do an in-place update, Solr must rewrite the docValues data for that
field in that segment. It
Hi Emir,
I am using solrj to update the document. Is there any spl API to be used for
in place Updates ?
Yes are we are updating in Batch of 1000 documents.
As I mentioned before, since I am updating only docvalues i expect it should
update in faster than updating normal field. Isn't it ?
Reg
Hi,
Did you confirm that it actually does in place update? In case of in place
update, after update (maybe try single) only doc values file should change (if
my understanding is right).
Do you update a full document or some test doc with a single field?
Do you batch updates or send one by one?
E
All,
I have (say 1M, in real time it would be more even) solr documents which has
lot of fields and it's bit huge. We have a functionality, where we need to
go and update a specific field or add new field in to that document. Since
we have to do this for all 1M documents, it's taking up more time