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 Yonghui Zhao <zh...@gmail.com> on 2018/05/30 10:57:23 UTC
TermsEnum.posting doesn't support acceptDocs
I find TermsEnum.posting(docsAndPostiions API before) in new lucene has
no acceptDocs parameter
So any replacement? or implement the filter by myself?
Re: TermsEnum.posting doesn't support acceptDocs
Posted by Yonghui Zhao <zh...@gmail.com>.
Got it, thanks.
I see “
scorer.score(leafCollector, ctx.reader().getLiveDocs());
”
in indexsearcher
2018-05-30 19:02 GMT+08:00 Adrien Grand <jp...@gmail.com>:
> Hi,
>
> You need to filter by yourself indeed. For the record in case you are
> implementing a query, Scorer objects do not need to exclude deleted docs
> either (actually they shouldn't do it) as live docs are now checked on top
> of scorers.
>
> Le mer. 30 mai 2018 à 12:57, Yonghui Zhao <zh...@gmail.com> a écrit
> :
>
> > I find TermsEnum.posting(docsAndPostiions API before) in new lucene
> has
> > no acceptDocs parameter
> >
> > So any replacement? or implement the filter by myself?
> >
>
Re: TermsEnum.posting doesn't support acceptDocs
Posted by Adrien Grand <jp...@gmail.com>.
Hi,
You need to filter by yourself indeed. For the record in case you are
implementing a query, Scorer objects do not need to exclude deleted docs
either (actually they shouldn't do it) as live docs are now checked on top
of scorers.
Le mer. 30 mai 2018 à 12:57, Yonghui Zhao <zh...@gmail.com> a écrit :
> I find TermsEnum.posting(docsAndPostiions API before) in new lucene has
> no acceptDocs parameter
>
> So any replacement? or implement the filter by myself?
>