You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Varun Thacker <va...@gmail.com> on 2013/06/19 12:57:47 UTC
IndexWriter commit user data takes a map
I was just curious as to why IW.setCommitData uses a map ?
Looking back at LUCENE-1382 when committing user data was introduced it
took a string.
In LUCENE-4575 it was refactored and changed to a Map. From the comments I
couldn't really figure out why was it changed.
--
Regards,
Varun Thacker
http://www.vthacker.in/
Re: IndexWriter commit user data takes a map
Posted by Varun Thacker <va...@gmail.com>.
Hi Steve,
Thanks for pointing it out.
I was actually looking at SOLR-2701 when I thought about why have a Map
instead of a string identifier.
So I'm guessing this should be left untouched?
On Wed, Jun 19, 2013 at 7:55 PM, Steve Rowe <sa...@gmail.com> wrote:
> Hi Varun,
>
> LUCENE-4575 did not change IW's user data to a Map. That was done in
> LUCENE-1654.
>
> Steve
>
> On Jun 19, 2013, at 6:57 AM, Varun Thacker <va...@gmail.com>
> wrote:
>
> > I was just curious as to why IW.setCommitData uses a map ?
> >
> > Looking back at LUCENE-1382 when committing user data was introduced it
> took a string.
> >
> > In LUCENE-4575 it was refactored and changed to a Map. From the comments
> I couldn't really figure out why was it changed.
> >
> > --
> >
> >
> > Regards,
> > Varun Thacker
> > http://www.vthacker.in/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
--
Regards,
Varun Thacker
http://www.vthacker.in/
Re: IndexWriter commit user data takes a map
Posted by Steve Rowe <sa...@gmail.com>.
Hi Varun,
LUCENE-4575 did not change IW's user data to a Map. That was done in LUCENE-1654.
Steve
On Jun 19, 2013, at 6:57 AM, Varun Thacker <va...@gmail.com> wrote:
> I was just curious as to why IW.setCommitData uses a map ?
>
> Looking back at LUCENE-1382 when committing user data was introduced it took a string.
>
> In LUCENE-4575 it was refactored and changed to a Map. From the comments I couldn't really figure out why was it changed.
>
> --
>
>
> Regards,
> Varun Thacker
> http://www.vthacker.in/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org