Hello, Rajib.
API were evolved since 2.4, but it should be clear
https://lucene.apache.org/core/8_11_2/core/org/apache/lucene/index/package-summary.html#fields


On Wed, Jan 18, 2023 at 1:11 PM Saha, Rajib <rajib.s...@sap.com.invalid>
wrote:

> Hi All,
>
> We are in a process for conversion of Lucene from  2.4.0 to 8.11.2 for our
> platform code.
> We have used extensively Lucene in our code.
>
> We have replaced several of our code to Lucene 8.11.2 APIs.
>
> But, few places, we are stuck of which New Lucene APIs to use, as not
> getting any suitable match.
>
> Can somebody help me, how we can convert below code using Lucene 2.4.0 to
> 8.11.2?
>
>
> ProcessDocs(IndexReader reader, Term t) {
>
>               final TermDocs termDocs = reader.termDocs();
>               termDocs.seek(t);
>               while (termDocs.next()) {
>             //Some internal function to process the doc.
>             forEach.process(termDocs.doc());
>       }
>
> }
>
> Regards
> Rajib
>


-- 
Sincerely yours
Mikhail Khludnev
https://t.me/MUST_SEARCH
A caveat: Cyrillic!

Reply via email to