lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Grand <jpou...@gmail.com>
Subject Re: How to get document effectively. or FieldCache example
Date Thu, 20 Apr 2017 12:27:44 GMT
IndexSearcher.doc is the right way to retrieve documents. If this is
slowing things down for you, I'm wondering that you might be fetching too
many results?

Le jeu. 20 avr. 2017 à 14:16, neeraj shah <neerajshah84@gmail.com> a écrit :

> Hello Everyone,
>
> I am using Lucene 3.6. I have to index around 60k docuemnts. After
> performing the search when i try to reterive documents from seacher using
> searcher.doc(docid)  it slows down the search .
> Please is there any other way to get the document.
>
> Also if anyone can give me an end-to-end example for working FieldCache.
> While implementing the cache i have :
>
> int[] fieldIds = FieldCache.DEFAULT.getInts(indexMultiReader, "id");
>
> now i dont know how to further use the fieldIds for improving search.
> Please give me an end-to-end example.
>
> Thanks
> Neeraj
>

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