No unfortunately I had to make my own streaming function to create the
mapping, works like this:

map(<stream>,"cand_id=add-distinct") to take the value for cand_id (say v)
and make a tuple like cand_id = new Tuple(add-distinct,v) and pass through
everything else

On Wed, 6 Jul 2022 at 22:12, Joel Bernstein <[email protected]> wrote:

> That would be quite tricky to create with existing functions. Did you find
> a way to inject a tuple into a field?
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
>
> On Wed, Jul 6, 2022 at 12:10 PM Dan Rosher <[email protected]> wrote:
>
> > Answering my own question, this IS possible but you need to send to the
> > update streaming expression, a tuple list like the following in order to
> do
> > atomic/in-place updates:
> >
> > { "result-set": { "docs": [ { "cand_id": { "add-distinct": 5718 }, "id":
> > "2644126" }, { "cand_id": { "add-distinct": 7408 }, "id": "2658316" },
> > ...
> >
> > Cheers,
> > Dan
> >
> > On Wed, 29 Jun 2022 at 15:27, Dan Rosher <[email protected]> wrote:
> >
> > > Hi,
> > >
> > > Is it possible to do partial/atomic or in-place updates with  Update
> > > Streaming expression Decorator? The following simply overwrites.
> > >
> > >  update(collection1,
> > >         select(
> > >         search(collection1,
> > >                q=*:*,
> > >                qt="/export",
> > >                fl="id,a_s,a_i,a_f,s_multi,i_multi",
> > >                sort="a_f asc, a_i asc"))
> > >         ,id,a_s)
> > >
> > > Thanks,
> > > Dan
> > >
> >
>

Reply via email to