Re: updateNumericDocValue in solr 4.6.1

2014-11-26 Thread Michael Sokolov
Yes - here's a working example we have in production (tested in 4.8.1 
and 4.10.2, but the underlying lucene stuff hasn't changed since 4.6.1 
I'm pretty sure):


https://github.com/safarijv/ifpress-solr-plugin/blob/master/src/main/java/com/ifactory/press/db/solr/processor/UpdateDocValuesProcessor.java

On 11/26/14 3:20 AM, lboutros wrote:

Hello Suchi,

I'm using this Lucene function with Solr 4.6.1 in a specific Update
Processor and it's working well.
How do you test the update ?

I'm using a ValueSourceRangeFilter with a LongFieldSource parameter.

Ludovic.



-
Jouve
France.
--
View this message in context: 
http://lucene.472066.n3.nabble.com/updateNumericDocValue-in-solr-4-6-1-tp4171006p4171024.html
Sent from the Solr - User mailing list archive at Nabble.com.




Re: updateNumericDocValue in solr 4.6.1

2014-11-26 Thread lboutros
Hello Suchi,

I'm using this Lucene function with Solr 4.6.1 in a specific Update
Processor and it's working well.
How do you test the update ?

I'm using a ValueSourceRangeFilter with a LongFieldSource parameter.

Ludovic.



-
Jouve
France.
--
View this message in context: 
http://lucene.472066.n3.nabble.com/updateNumericDocValue-in-solr-4-6-1-tp4171006p4171024.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: updateNumericDocValue in solr 4.6.1

2014-11-25 Thread Mikhail Khludnev
Hello Suchi,

It seems like work in progress
https://issues.apache.org/jira/browse/SOLR-5944 but hasn't been done
completely.


On Wed, Nov 26, 2014 at 7:24 AM, Suchi Amalapurapu 
wrote:

> 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:
>
>  required="false" docValues="true"/>
> Does any one have a working sample of updateNumericDocValue in solr 4.6.1?
> Suchi
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>



updateNumericDocValue in solr 4.6.1

2014-11-25 Thread Suchi Amalapurapu
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:


Does any one have a working sample of updateNumericDocValue in solr 4.6.1?
Suchi