You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Ivan Vasilev <iv...@sirma.bg> on 2012/10/25 15:50:34 UTC

Is there some class to iterate on document's term positions in Lucene 4.0.0?

Hy Guys,

In previous versions of Lucene there was a class TermPositions that 
could be obtained form IndexReader.
Is there something that replaces it in Lucene 4.0.0?

Also is there some documentation that describes how to use Lucene 4.0.0 
until next release of Lucene in Action book would be available?

Cheers,
Ivan Vasilev

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Is there some class to iterate on document's term positions in Lucene 4.0.0?

Posted by Ivan Vasilev <iv...@sirma.bg>.
Thanks Guys,

The resources seem to be through enough :)

On 25.10.2012 г. 16:57, Ian Lea wrote:
> >From http://lucene.apache.org/core/4_0_0/MIGRATE.html
>
> TermPositions is renamed to DocsAndPositionsEnum, and no longer
> extends the docs only enumerator (DocsEnum).
>
> And the link is probably the answer to your second question.
>
>
> --
> Ian.
>
>
> On Thu, Oct 25, 2012 at 2:50 PM, Ivan Vasilev <iv...@sirma.bg> wrote:
>> Hy Guys,
>>
>> In previous versions of Lucene there was a class TermPositions that could be
>> obtained form IndexReader.
>> Is there something that replaces it in Lucene 4.0.0?
>>
>> Also is there some documentation that describes how to use Lucene 4.0.0
>> until next release of Lucene in Action book would be available?
>>
>> Cheers,
>> Ivan Vasilev
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Is there some class to iterate on document's term positions in Lucene 4.0.0?

Posted by Ian Lea <ia...@gmail.com>.
>From http://lucene.apache.org/core/4_0_0/MIGRATE.html

TermPositions is renamed to DocsAndPositionsEnum, and no longer
extends the docs only enumerator (DocsEnum).

And the link is probably the answer to your second question.


--
Ian.


On Thu, Oct 25, 2012 at 2:50 PM, Ivan Vasilev <iv...@sirma.bg> wrote:
> Hy Guys,
>
> In previous versions of Lucene there was a class TermPositions that could be
> obtained form IndexReader.
> Is there something that replaces it in Lucene 4.0.0?
>
> Also is there some documentation that describes how to use Lucene 4.0.0
> until next release of Lucene in Action book would be available?
>
> Cheers,
> Ivan Vasilev
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Is there some class to iterate on document's term positions in Lucene 4.0.0?

Posted by Robert Muir <rc...@gmail.com>.
On Thu, Oct 25, 2012 at 9:50 AM, Ivan Vasilev <iv...@sirma.bg> wrote:
> Hy Guys,
>
> In previous versions of Lucene there was a class TermPositions that could be
> obtained form IndexReader.
> Is there something that replaces it in Lucene 4.0.0?
>
> Also is there some documentation that describes how to use Lucene 4.0.0
> until next release of Lucene in Action book would be available?

The javadocs. the package javadocs tell you how to do exactly what you
are asking.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org