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 Kevin Burton <bu...@newsmonster.org> on 2004/05/16 04:19:46 UTC

Possible to fetch a document without all fields (for performance)?

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 
50M.

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.

Kevin

-- 

Please reply using PGP.

    http://peerfear.org/pubkey.asc    
    
    NewsMonster - http://www.newsmonster.org/
    
Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965
       AIM/YIM - sfburtonator,  Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
  IRC - freenode.net #infoanarchy | #p2p-hackers | #newsmonster


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org