lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suchi Amalapurapu <su...@bloomreach.com>
Subject updateNumericDocValue in solr 4.6.1
Date Wed, 26 Nov 2014 04:24:00 GMT
All
The following code changes don't seem to really update the docValue in my
case.

IndexWriter iw = core.getSolrCoreState().getIndexWriter(core).get();

value = Long.parseLong(score);

Term term = new Term(ID, id1);

iw.updateNumericDocValue(term, 'rank', value);

iw.commit()

Schema changes:

<field name="rank" type="long" indexed="true" stored="true"
required="false" docValues="true"/>
Does any one have a working sample of updateNumericDocValue in solr 4.6.1?
Suchi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message