Ah, I see. Thank you Robert !

On Tue, May 1, 2012 at 2:46 AM, Robert Muir <rcm...@gmail.com> wrote:

> Since your test uses PerFieldPostingsFormat, its going to write the
> name of your format "PForDelta" into the index and expects to be able
> to load it via the SPI mechanism.
>
> So I think you should register your PForDeltaPostingsFormat in
>
> lucene/core/src/resources/META-INF/services/org.apache.lucene.codecs.PostingsFormat
> so that the SPI mechanism is able to look it up by name.
>
> On Mon, Apr 30, 2012 at 2:39 PM, Han Jiang <jiangha...@gmail.com> wrote:
> > Hi,
> >
> > I just immitated the MockFixedIntBlock and wrote a simple postings
> format,
> > but when I tried to use "ant test", it told me that:
> >  "A SPI class of type org.apache.lucene.codecs.PostingsFormat with name
> > 'PForDelta' does not exist."
> > Details are here: http://pastebin.com/EQDLwrn2
> >
> > To reproduce the error, you can use the patch and run "mytest-min" under
> > trunk/lucene.
> >
> > It is strange that the error happens when calling "writer.close()", and
> no
> > error will occur if I change to an existing postings format. What did I
> > missed?
> >
> > Billy
> >
> > --
> > Han Jiang
> >
> > EECS, Peking University, China
> > Every Effort Creates Smile
> >
> > Senior Student
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
> > For additional commands, e-mail: dev-h...@lucene.apache.org
>
>
>
> --
> lucidimagination.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: dev-h...@lucene.apache.org
>
>


-- 
Han Jiang

EECS, Peking University, China
Every Effort Creates Smile

Senior Student

Reply via email to