lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Itamar Syn-Hershko <ita...@code972.com>
Subject Re: Pulsing Codec Port help
Date Mon, 15 Sep 2014 00:12:22 GMT
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 <geobmx540@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 <geobmx540@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
> > >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message