Looks like a mistake in wiki. At least when compared with yonik's post:

http://yonik.com/solr/optimistic-concurrency/

i.e. [{}] syntax is used for optimistic concurrency update.

Regards,

Dmitry

On Tue, Feb 19, 2013 at 3:09 PM, Alexandre Rafalovitch
<arafa...@gmail.com>wrote:

> Right you are. I meant to say that it fails with {} but passes with [{}].
> Basically, I am not sure Wiki is correct.
>
> Regards,
>    Alex.
>
> Personal blog: http://blog.outerthoughts.com/
> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> - Time is the quality of nature that keeps events from happening all at
> once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD book)
>
>
> On Tue, Feb 19, 2013 at 3:11 AM, Dmitry Kan <solrexp...@gmail.com> wrote:
>
> > To clarify a bit:
> >
> > > I did a quick test with my example and it seemed to fail with []
> > > but passing with [].
> >
> > did you mean to use {} in one of these?
> >
> > Dmitry
> >
> > On Sun, Feb 17, 2013 at 4:22 AM, Alexandre Rafalovitch
> > <arafa...@gmail.com>wrote:
> >
> > > I am looking at the Solr WIKI and some of the examples seem to
> contradict
> > > earlier explanations (
> > > https://wiki.apache.org/solr/UpdateJSON#Update_Commands ):
> > >
> > > curl http://localhost:8983/solr/update -H
> > 'Content-type:application/json'
> > > -d '
> > >  {
> > >   "id"        : "TestDoc1",
> > >   "title"     : {"set":"test1"},
> > >   "revision"  : {"inc":3},
> > >   "publisher" : {"add":"TestPublisher"}
> > >  }'
> > >
> > > I thought there were only two forms: [{...},{...}] and {add:{...}, ..}.
> > > This one seems to be neither one or another but just a single object
> > > directly. I did a quick test with my example and it seemed to fail with
> > []
> > > but passing with [].
> > >
> > > Can somebody else confirm whether the WIKI just missed brackets (I can
> > fix
> > > that) or whether I am missing a syntax option.
> > >
> > > Regards,
> > >     Alex.
> > > Personal blog: http://blog.outerthoughts.com/
> > > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> > > - Time is the quality of nature that keeps events from happening all at
> > > once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
> book)
> > >
> >
>

Reply via email to