lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Burton <>
Subject Possible to fetch a document without all fields (for performance)?
Date Sun, 16 May 2004 02:19:46 GMT
Say I have a query result for the term Linux... now I just want the 
TITLE of these documents not the BODY.

To further this scenario imagine the TITLE is 500 bytes but the  BODY is 

The current impl of fetching a document will pull in ALL 50,000,500 
bytes not just the 500 that I need.

Obviously if I could just get the TITLE field this would be a HUGE speedup.

Is there a somewhat simple and efficient way to get a document with a 
restricted set of fields?  Digging through the API it didnt' seem 
obvious and using the SegmentReader directly didn't seem fun.



Please reply using PGP.    
    NewsMonster -
Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965
       AIM/YIM - sfburtonator,  Web -
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
  IRC - #infoanarchy | #p2p-hackers | #newsmonster

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message