You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by Prescott Nasser <ge...@hotmail.com> on 2014/09/15 01:30:00 UTC
Pulsing Codec Port help
So, I've mostly ported the Pulsing Codecs and I'm running into a little trouble:
private DocsEnum GetOther(DocsEnum de)
{
if (de == null)
return null;
var atts = de.Attributes();
return atts.AddAttribute(PulsingEnumAttribute.class).Enums().get(this); //how to convert this line.
}
private DocsEnum SetOther(DocsEnum de, DocsEnum other)
{
var atts = de.Attributes();
return atts.AddAttribute(PulsingEnumAttribute.class).Enums().put(this, other); //how to convert this line.
}
Java source here: https://github.com/apache/lucene-solr/blob/lucene_solr_4_8_0/lucene/codecs/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader.java
Any thoughts?
Thanks
~Prescott
RE: Pulsing Codec Port help
Posted by Prad Nelluru <pr...@microsoft.com>.
Huh, really? I haven't heard anything from the Apache secretary.
-----Original Message-----
From: itamar.synhershko@gmail.com [mailto:itamar.synhershko@gmail.com] On Behalf Of Itamar Syn-Hershko
Sent: Monday, September 15, 2014 10:01 AM
To: dev@lucenenet.apache.org
Subject: Re: Pulsing Codec Port help
Will review and pull shortly. There's still an issue with your ICLA, can you please sort it out?
--
Itamar Syn-Hershko
http://code972.com | @synhershko <https://twitter.com/synhershko> Freelance Developer & Consultant Author of RavenDB in Action <http://manning.com/synhershko/>
On Mon, Sep 15, 2014 at 8:00 PM, Prad Nelluru <pr...@microsoft.com> wrote:
> Hey everyone,
> Good to see progress! I've fixed many of the unit tests in the util
> package. The pull request is here (
> https://github.com/apache/lucene.net/pull/18).
>
> -Prad
>
> -----Original Message-----
> From: itamar.synhershko@gmail.com [mailto:itamar.synhershko@gmail.com]
> On Behalf Of Itamar Syn-Hershko
> Sent: Sunday, September 14, 2014 5:12 PM
> To: dev@lucenenet.apache.org
> Subject: Re: Pulsing Codec Port help
>
> Great! In the meantime I'm porting the Suggest, Queries, etc packages
> while waiting for Prad to come up with new findings with the failing tests.
>
> --
>
> Itamar Syn-Hershko
> http://code972.com | @synhershko <https://twitter.com/synhershko>
> Freelance Developer & Consultant Author of RavenDB in Action <
> http://manning.com/synhershko/>
>
> On Mon, Sep 15, 2014 at 3:10 AM, Prescott Nasser
> <ge...@hotmail.com>
> wrote:
>
> > Sure didn't, that seems to have done the trick -
> >
> > Thanks Paul.
> >
> > ~P
> >
> > > Date: Sun, 14 Sep 2014 19:37:24 -0400
> > > Subject: Re: Pulsing Codec Port help
> > > From: pirwin@feature23.com
> > > To: dev@lucenenet.apache.org
> > >
> > > The .class usually translates to a generic type parameter in C#.
> > > Have you tried something like this:
> > >
> > > return atts.AddAttribute<PulsingEnumAttribute>().Enums()[this];
> > >
> > > and
> > >
> > > return atts.AddAttribute<PulsingEnumAttribute>().Enums[this] =
> > > other;
> > >
> > >
> > >
> > >
> > > Paul Irwin
> > > Lead Software Engineer
> > > feature[23]
> > >
> > > Email: pirwin@feature23.com
> > > Cell: 863-698-9294
> > >
> > > On Sun, Sep 14, 2014 at 7:30 PM, Prescott Nasser
> > > <ge...@hotmail.com>
> > > wrote:
> > >
> > > > So, I've mostly ported the Pulsing Codecs and I'm running into
> > > > a
> > little
> > > > trouble:
> > > >
> > > > private DocsEnum GetOther(DocsEnum de)
> > > > {
> > > > if (de == null)
> > > > return null;
> > > >
> > > > var atts = de.Attributes();
> > > > return
> > > > atts.AddAttribute(PulsingEnumAttribute.class).Enums().get(this);
> > > > //how
> > to
> > > > convert this line.
> > > > }
> > > >
> > > > private DocsEnum SetOther(DocsEnum de, DocsEnum other)
> > > > {
> > > > var atts = de.Attributes();
> > > > return
> > > > atts.AddAttribute(PulsingEnumAttribute.class).Enums().put(this,
> > > > other); //how to convert this line.
> > > > }
> > > >
> > > > Java source here:
> > > >
> > https://github.com/apache/lucene-solr/blob/lucene_solr_4_8_0/lucene/
> > co
> > decs/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader
> > .j
> > ava
> > > >
> > > > Any thoughts?
> > > >
> > > > Thanks
> > > > ~Prescott
> > > >
> >
> >
>
Re: Pulsing Codec Port help
Posted by Itamar Syn-Hershko <it...@code972.com>.
Will review and pull shortly. There's still an issue with your ICLA, can
you please sort it out?
--
Itamar Syn-Hershko
http://code972.com | @synhershko <https://twitter.com/synhershko>
Freelance Developer & Consultant
Author of RavenDB in Action <http://manning.com/synhershko/>
On Mon, Sep 15, 2014 at 8:00 PM, Prad Nelluru <pr...@microsoft.com> wrote:
> Hey everyone,
> Good to see progress! I've fixed many of the unit tests in the util
> package. The pull request is here (
> https://github.com/apache/lucene.net/pull/18).
>
> -Prad
>
> -----Original Message-----
> From: itamar.synhershko@gmail.com [mailto:itamar.synhershko@gmail.com] On
> Behalf Of Itamar Syn-Hershko
> Sent: Sunday, September 14, 2014 5:12 PM
> To: dev@lucenenet.apache.org
> Subject: Re: Pulsing Codec Port help
>
> Great! In the meantime I'm porting the Suggest, Queries, etc packages
> while waiting for Prad to come up with new findings with the failing tests.
>
> --
>
> Itamar Syn-Hershko
> http://code972.com | @synhershko <https://twitter.com/synhershko>
> Freelance Developer & Consultant Author of RavenDB in Action <
> http://manning.com/synhershko/>
>
> On Mon, Sep 15, 2014 at 3:10 AM, Prescott Nasser <ge...@hotmail.com>
> wrote:
>
> > Sure didn't, that seems to have done the trick -
> >
> > Thanks Paul.
> >
> > ~P
> >
> > > Date: Sun, 14 Sep 2014 19:37:24 -0400
> > > Subject: Re: Pulsing Codec Port help
> > > From: pirwin@feature23.com
> > > To: dev@lucenenet.apache.org
> > >
> > > The .class usually translates to a generic type parameter in C#.
> > > Have you tried something like this:
> > >
> > > return atts.AddAttribute<PulsingEnumAttribute>().Enums()[this];
> > >
> > > and
> > >
> > > return atts.AddAttribute<PulsingEnumAttribute>().Enums[this] =
> > > other;
> > >
> > >
> > >
> > >
> > > Paul Irwin
> > > Lead Software Engineer
> > > feature[23]
> > >
> > > Email: pirwin@feature23.com
> > > Cell: 863-698-9294
> > >
> > > On Sun, Sep 14, 2014 at 7:30 PM, Prescott Nasser
> > > <ge...@hotmail.com>
> > > wrote:
> > >
> > > > So, I've mostly ported the Pulsing Codecs and I'm running into a
> > little
> > > > trouble:
> > > >
> > > > private DocsEnum GetOther(DocsEnum de)
> > > > {
> > > > if (de == null)
> > > > return null;
> > > >
> > > > var atts = de.Attributes();
> > > > return
> > > > atts.AddAttribute(PulsingEnumAttribute.class).Enums().get(this);
> > > > //how
> > to
> > > > convert this line.
> > > > }
> > > >
> > > > private DocsEnum SetOther(DocsEnum de, DocsEnum other)
> > > > {
> > > > var atts = de.Attributes();
> > > > return
> > > > atts.AddAttribute(PulsingEnumAttribute.class).Enums().put(this,
> > > > other); //how to convert this line.
> > > > }
> > > >
> > > > Java source here:
> > > >
> > https://github.com/apache/lucene-solr/blob/lucene_solr_4_8_0/lucene/co
> > decs/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader.j
> > ava
> > > >
> > > > Any thoughts?
> > > >
> > > > Thanks
> > > > ~Prescott
> > > >
> >
> >
>
Re: Pulsing Codec Port help
Posted by Itamar Syn-Hershko <it...@code972.com>.
Current status:
* Merged Prad's changes
* Ported Lucene.Net.Suggest, still doesn't compile as dependencies are
missing (and also some porting work missing)
* Ported skeletons for Lucene.Net.Memory, Lucene.Net.Misc,
Lucene.Net.Queries - going to work on those more this week
Waiting to hear more good news from Prad, will port tests for the
additional projects / packages once they compile properly
--
Itamar Syn-Hershko
http://code972.com | @synhershko <https://twitter.com/synhershko>
Freelance Developer & Consultant
Author of RavenDB in Action <http://manning.com/synhershko/>
On Mon, Sep 15, 2014 at 8:00 PM, Prad Nelluru <pr...@microsoft.com> wrote:
> Hey everyone,
> Good to see progress! I've fixed many of the unit tests in the util
> package. The pull request is here (
> https://github.com/apache/lucene.net/pull/18).
>
> -Prad
>
> -----Original Message-----
> From: itamar.synhershko@gmail.com [mailto:itamar.synhershko@gmail.com] On
> Behalf Of Itamar Syn-Hershko
> Sent: Sunday, September 14, 2014 5:12 PM
> To: dev@lucenenet.apache.org
> Subject: Re: Pulsing Codec Port help
>
> Great! In the meantime I'm porting the Suggest, Queries, etc packages
> while waiting for Prad to come up with new findings with the failing tests.
>
> --
>
> Itamar Syn-Hershko
> http://code972.com | @synhershko <https://twitter.com/synhershko>
> Freelance Developer & Consultant Author of RavenDB in Action <
> http://manning.com/synhershko/>
>
> On Mon, Sep 15, 2014 at 3:10 AM, Prescott Nasser <ge...@hotmail.com>
> wrote:
>
> > Sure didn't, that seems to have done the trick -
> >
> > Thanks Paul.
> >
> > ~P
> >
> > > Date: Sun, 14 Sep 2014 19:37:24 -0400
> > > Subject: Re: Pulsing Codec Port help
> > > From: pirwin@feature23.com
> > > To: dev@lucenenet.apache.org
> > >
> > > The .class usually translates to a generic type parameter in C#.
> > > Have you tried something like this:
> > >
> > > return atts.AddAttribute<PulsingEnumAttribute>().Enums()[this];
> > >
> > > and
> > >
> > > return atts.AddAttribute<PulsingEnumAttribute>().Enums[this] =
> > > other;
> > >
> > >
> > >
> > >
> > > Paul Irwin
> > > Lead Software Engineer
> > > feature[23]
> > >
> > > Email: pirwin@feature23.com
> > > Cell: 863-698-9294
> > >
> > > On Sun, Sep 14, 2014 at 7:30 PM, Prescott Nasser
> > > <ge...@hotmail.com>
> > > wrote:
> > >
> > > > So, I've mostly ported the Pulsing Codecs and I'm running into a
> > little
> > > > trouble:
> > > >
> > > > private DocsEnum GetOther(DocsEnum de)
> > > > {
> > > > if (de == null)
> > > > return null;
> > > >
> > > > var atts = de.Attributes();
> > > > return
> > > > atts.AddAttribute(PulsingEnumAttribute.class).Enums().get(this);
> > > > //how
> > to
> > > > convert this line.
> > > > }
> > > >
> > > > private DocsEnum SetOther(DocsEnum de, DocsEnum other)
> > > > {
> > > > var atts = de.Attributes();
> > > > return
> > > > atts.AddAttribute(PulsingEnumAttribute.class).Enums().put(this,
> > > > other); //how to convert this line.
> > > > }
> > > >
> > > > Java source here:
> > > >
> > https://github.com/apache/lucene-solr/blob/lucene_solr_4_8_0/lucene/co
> > decs/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader.j
> > ava
> > > >
> > > > Any thoughts?
> > > >
> > > > Thanks
> > > > ~Prescott
> > > >
> >
> >
>
RE: Pulsing Codec Port help
Posted by Prad Nelluru <pr...@microsoft.com>.
Hey everyone,
Good to see progress! I've fixed many of the unit tests in the util package. The pull request is here (https://github.com/apache/lucene.net/pull/18).
-Prad
-----Original Message-----
From: itamar.synhershko@gmail.com [mailto:itamar.synhershko@gmail.com] On Behalf Of Itamar Syn-Hershko
Sent: Sunday, September 14, 2014 5:12 PM
To: dev@lucenenet.apache.org
Subject: Re: Pulsing Codec Port help
Great! In the meantime I'm porting the Suggest, Queries, etc packages while waiting for Prad to come up with new findings with the failing tests.
--
Itamar Syn-Hershko
http://code972.com | @synhershko <https://twitter.com/synhershko> Freelance Developer & Consultant Author of RavenDB in Action <http://manning.com/synhershko/>
On Mon, Sep 15, 2014 at 3:10 AM, Prescott Nasser <ge...@hotmail.com>
wrote:
> Sure didn't, that seems to have done the trick -
>
> Thanks Paul.
>
> ~P
>
> > Date: Sun, 14 Sep 2014 19:37:24 -0400
> > Subject: Re: Pulsing Codec Port help
> > From: pirwin@feature23.com
> > To: dev@lucenenet.apache.org
> >
> > The .class usually translates to a generic type parameter in C#.
> > Have you tried something like this:
> >
> > return atts.AddAttribute<PulsingEnumAttribute>().Enums()[this];
> >
> > and
> >
> > return atts.AddAttribute<PulsingEnumAttribute>().Enums[this] =
> > other;
> >
> >
> >
> >
> > Paul Irwin
> > Lead Software Engineer
> > feature[23]
> >
> > Email: pirwin@feature23.com
> > Cell: 863-698-9294
> >
> > On Sun, Sep 14, 2014 at 7:30 PM, Prescott Nasser
> > <ge...@hotmail.com>
> > wrote:
> >
> > > So, I've mostly ported the Pulsing Codecs and I'm running into a
> little
> > > trouble:
> > >
> > > private DocsEnum GetOther(DocsEnum de)
> > > {
> > > if (de == null)
> > > return null;
> > >
> > > var atts = de.Attributes();
> > > return
> > > atts.AddAttribute(PulsingEnumAttribute.class).Enums().get(this);
> > > //how
> to
> > > convert this line.
> > > }
> > >
> > > private DocsEnum SetOther(DocsEnum de, DocsEnum other)
> > > {
> > > var atts = de.Attributes();
> > > return
> > > atts.AddAttribute(PulsingEnumAttribute.class).Enums().put(this,
> > > other); //how to convert this line.
> > > }
> > >
> > > Java source here:
> > >
> https://github.com/apache/lucene-solr/blob/lucene_solr_4_8_0/lucene/co
> decs/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader.j
> ava
> > >
> > > Any thoughts?
> > >
> > > Thanks
> > > ~Prescott
> > >
>
>
Re: Pulsing Codec Port help
Posted by Itamar Syn-Hershko <it...@code972.com>.
Great! In the meantime I'm porting the Suggest, Queries, etc packages while
waiting for Prad to come up with new findings with the failing tests.
--
Itamar Syn-Hershko
http://code972.com | @synhershko <https://twitter.com/synhershko>
Freelance Developer & Consultant
Author of RavenDB in Action <http://manning.com/synhershko/>
On Mon, Sep 15, 2014 at 3:10 AM, Prescott Nasser <ge...@hotmail.com>
wrote:
> Sure didn't, that seems to have done the trick -
>
> Thanks Paul.
>
> ~P
>
> > Date: Sun, 14 Sep 2014 19:37:24 -0400
> > Subject: Re: Pulsing Codec Port help
> > From: pirwin@feature23.com
> > To: dev@lucenenet.apache.org
> >
> > The .class usually translates to a generic type parameter in C#. Have you
> > tried something like this:
> >
> > return atts.AddAttribute<PulsingEnumAttribute>().Enums()[this];
> >
> > and
> >
> > return atts.AddAttribute<PulsingEnumAttribute>().Enums[this] = other;
> >
> >
> >
> >
> > Paul Irwin
> > Lead Software Engineer
> > feature[23]
> >
> > Email: pirwin@feature23.com
> > Cell: 863-698-9294
> >
> > On Sun, Sep 14, 2014 at 7:30 PM, Prescott Nasser <ge...@hotmail.com>
> > wrote:
> >
> > > So, I've mostly ported the Pulsing Codecs and I'm running into a
> little
> > > trouble:
> > >
> > > private DocsEnum GetOther(DocsEnum de)
> > > {
> > > if (de == null)
> > > return null;
> > >
> > > var atts = de.Attributes();
> > > return
> > > atts.AddAttribute(PulsingEnumAttribute.class).Enums().get(this); //how
> to
> > > convert this line.
> > > }
> > >
> > > private DocsEnum SetOther(DocsEnum de, DocsEnum other)
> > > {
> > > var atts = de.Attributes();
> > > return
> > > atts.AddAttribute(PulsingEnumAttribute.class).Enums().put(this, other);
> > > //how to convert this line.
> > > }
> > >
> > > Java source here:
> > >
> https://github.com/apache/lucene-solr/blob/lucene_solr_4_8_0/lucene/codecs/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader.java
> > >
> > > Any thoughts?
> > >
> > > Thanks
> > > ~Prescott
> > >
>
>
RE: Pulsing Codec Port help
Posted by Prescott Nasser <ge...@hotmail.com>.
Sure didn't, that seems to have done the trick -
Thanks Paul.
~P
> Date: Sun, 14 Sep 2014 19:37:24 -0400
> Subject: Re: Pulsing Codec Port help
> From: pirwin@feature23.com
> To: dev@lucenenet.apache.org
>
> The .class usually translates to a generic type parameter in C#. Have you
> tried something like this:
>
> return atts.AddAttribute<PulsingEnumAttribute>().Enums()[this];
>
> and
>
> return atts.AddAttribute<PulsingEnumAttribute>().Enums[this] = other;
>
>
>
>
> Paul Irwin
> Lead Software Engineer
> feature[23]
>
> Email: pirwin@feature23.com
> Cell: 863-698-9294
>
> On Sun, Sep 14, 2014 at 7:30 PM, Prescott Nasser <ge...@hotmail.com>
> wrote:
>
> > So, I've mostly ported the Pulsing Codecs and I'm running into a little
> > trouble:
> >
> > private DocsEnum GetOther(DocsEnum de)
> > {
> > if (de == null)
> > return null;
> >
> > var atts = de.Attributes();
> > return
> > atts.AddAttribute(PulsingEnumAttribute.class).Enums().get(this); //how to
> > convert this line.
> > }
> >
> > private DocsEnum SetOther(DocsEnum de, DocsEnum other)
> > {
> > var atts = de.Attributes();
> > return
> > atts.AddAttribute(PulsingEnumAttribute.class).Enums().put(this, other);
> > //how to convert this line.
> > }
> >
> > Java source here:
> > https://github.com/apache/lucene-solr/blob/lucene_solr_4_8_0/lucene/codecs/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader.java
> >
> > Any thoughts?
> >
> > Thanks
> > ~Prescott
> >
Re: Pulsing Codec Port help
Posted by Paul Irwin <pi...@feature23.com>.
The .class usually translates to a generic type parameter in C#. Have you
tried something like this:
return atts.AddAttribute<PulsingEnumAttribute>().Enums()[this];
and
return atts.AddAttribute<PulsingEnumAttribute>().Enums[this] = other;
Paul Irwin
Lead Software Engineer
feature[23]
Email: pirwin@feature23.com
Cell: 863-698-9294
On Sun, Sep 14, 2014 at 7:30 PM, Prescott Nasser <ge...@hotmail.com>
wrote:
> So, I've mostly ported the Pulsing Codecs and I'm running into a little
> trouble:
>
> private DocsEnum GetOther(DocsEnum de)
> {
> if (de == null)
> return null;
>
> var atts = de.Attributes();
> return
> atts.AddAttribute(PulsingEnumAttribute.class).Enums().get(this); //how to
> convert this line.
> }
>
> private DocsEnum SetOther(DocsEnum de, DocsEnum other)
> {
> var atts = de.Attributes();
> return
> atts.AddAttribute(PulsingEnumAttribute.class).Enums().put(this, other);
> //how to convert this line.
> }
>
> Java source here:
> https://github.com/apache/lucene-solr/blob/lucene_solr_4_8_0/lucene/codecs/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader.java
>
> Any thoughts?
>
> Thanks
> ~Prescott
>