Using FieldSelector when searching with Lucene

Posted by Christian on Stack Overflow See other posts from Stack Overflow or by Christian
Published on 2010-04-21T14:24:22Z Indexed on 2010/04/21 19:03 UTC
Read the original article Hit count: 203

Filed under:

I'm searching articles in PubMed via Lucene. Each of the 20,000,000 articles has an abstract with ~250 words and an ID.

At the moment I store my searches, with each take multiple seconds, in a TopDocs object. Searchs can find thousands of articles. I'm just interested in the ID of the article. Does Lucene load the abstracts internally into the TopDocs?

If so can I prevent that behavior through FieldSelectors or do FieldSelectors only work with IndexReader and don't work with IndexSearcher?

© Stack Overflow or respective owner

Related posts about lucene