Re: basic question about updating a docValue

2019-05-07 Thread Jerry Lin
Hello, Thank you for your responses. In the end, my program now works, but I had trouble even when I had 0 documents because I did not restart Solr until I read Shawn's comment. Thanks! Jerry On Tue, May 7, 2019 at 6:41 AM Shawn Heisey wrote: > On 5/7/2019 7:35 AM, Shawn Heisey wrote: > > The

Re: basic question about updating a docValue

2019-05-07 Thread Shawn Heisey
On 5/7/2019 7:35 AM, Shawn Heisey wrote: The field must be 'indexed="false"' as well for in-place updates to work.  If you have indexed set to true, I don't think that's going to work.  Here's the relevant documentation section: My answer was not meant to contradict the one you got earlier fro

Re: basic question about updating a docValue

2019-05-07 Thread Shawn Heisey
On 5/6/2019 11:03 PM, Jerry Lin wrote: I'm new to Solr and am using Solr 8, and the Java API client. I have a score that I would like to rank my documents by, and I do not need to retrieve the values. My understanding is that I should set indexed="true", stored="false", and DocValues="true". When

Re: basic question about updating a docValue

2019-05-07 Thread Alexandre Rafalovitch
Sounds like you had some documents in the index already from before you made ths change. You may need to delete, commit, reindex. Rather than trying to overwrite. Regards, Alex On Tue, May 7, 2019, 1:03 AM Jerry Lin, wrote: > Hi, > > I'm new to Solr and am using Solr 8, and the Java API cl

basic question about updating a docValue

2019-05-06 Thread Jerry Lin
Hi, I'm new to Solr and am using Solr 8, and the Java API client. I have a score that I would like to rank my documents by, and I do not need to retrieve the values. My understanding is that I should set indexed="true", stored="false", and DocValues="true". When I manually set up the schema in tha