I am trying to achieve in-place update for documents.
Solr Version - 5.5.2
Schema.xml -
<dynamicField name="store_*" type="int" indexed="false" stored="false" docValues="true"/>
<field name="_version_" type="long" indexed="false" stored="false" docValues="true" multiValued="false"/>
solrconfig.xml -
<updateHandler class="solr.DirectUpdateHandler2">
<updateLog>
<str name="dir">${solr.ulog.dir:}</str>
<int name="numVersionBuckets">${solr.ulog.numVersionBuckets:65536}</int>
</updateLog>
</updateHandler>`
UpdateHandler being used - DirectUpdateHandler2
According to this article, the target field is non-indexed (indexed="false"), non-stored (stored="false"), single valued (multiValued="false") numeric docValues (docValues="true") field.
I am only adding the document using updateHandler.addDoc(addUpdateCommand);
and NOT performing commit after the addition of document using -
solrClient.commit();
Issue is without commit, the document is not reflecting.
If I used autoSoftCommit and only adds the document, the changes are reflected in index but filterCache is being cleared.
My aim to achieve in-place update without clearing the filterCache.
Can this be achieved?