Got it all. Thanks

Sent from my iPhone

> On Dec 22, 2016, at 3:36 PM, Erick Erickson <erickerick...@gmail.com> wrote:
> 
> Well, there are two options:
> 
> 1> set up your autocommit interval in solrconfig.xml and wait for as
> long as you set it. Say 30 seconds for softcommit. Note, you must
> either use soft commit or your <autocommit> entry must have
> <openSearcher>true</openSearcher>.
> 
> 2> curl (or use the browser) http://snip/solr/TEST_CORE/update?commit=true
> 
> Best,
> Erick
> 
>> On Thu, Dec 22, 2016 at 12:31 PM, KRIS MUSSHORN <mussho...@comcast.net> 
>> wrote:
>> How would i exp;licitly commit?
>> Sorry for the silly questions but im pretty fried
>> 
>> ----- Original Message -----
>> 
>> From: "Erick Erickson" <erickerick...@gmail.com>
>> To: "solr-user" <solr-user@lucene.apache.org>
>> Sent: Thursday, December 22, 2016 2:49:05 PM
>> Subject: Re: update operation
>> 
>> Kris:
>> 
>> Maybe too simple, but did you commit afterwards?
>> 
>>> On Thu, Dec 22, 2016 at 10:45 AM, Shawn Heisey <apa...@elyograg.org> wrote:
>>>> On 12/22/2016 10:18 AM, KRIS MUSSHORN wrote:
>>>> UPDATE_RESULT=$( curl -s -X POST -H 'Content-Type: text/json' 
>>>> "https://snip/solr/TEST_CORE/update/json/docs"; --data-binary 
>>>> '{"id":"*'$DOC_ID'","metatag.date.single":{"set":"$VAL"}}')
>>>> 
>>>> was the only version that did not throw an error but did not update the 
>>>> document.
>>> 
>>> I think that will put a literal "$VAL" in the output, rather than the
>>> value of the VAL variable. It will also put an asterisk before your
>>> DOC_ID ... is that what you wanted it to do? If an asterisk is not part
>>> of your id value, that might be why it's not working.
>>> 
>>> Answering the earlier email: Your command choices are add, delete,
>>> commit, and optimize. An update is just an add that deletes the original.
>>> 
>>> Thanks,
>>> Shawn
>>> 
>> 

Reply via email to