FAQ
I have a environment where we have indexed a DB with about 6mil entries
with Lucene, and each row has 25 columns. 20 cols have integer codes
used as filters (indexed/unstored), and the other 5 have (very) large
texts (also indexed/unstored). Currently the search I'm doing is like this:

Hits hits = searcher.search(query);
for (int i = 0; i < this.hits.length(); i++) {
Document doc = this.hits.doc(i);
String s = doc.get("fieldWanted");
// does everything with the result, etc
}

We are trying to reduce memory usage, however. Is it possible to return
a Document object with just the Fields I really need? In the example,
each Document have 25 fields, and I just need one... would this
theoretically make any difference?




--

Marcelo Frantz Schneider
SIC - TCO - Tecnologia em Engenharia do Conhecimento
DÍGITRO TECNOLOGIA
E-mail: marcelo.schneider@digitro.com.br
Site: www.digitro.com


--
Esta mensagem foi verificada pelo sistema de antivírus da Dígitro e
acredita-se estar livre de perigo.


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

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 7 | next ›
Discussion Overview
groupjava-user @
categorieslucene
postedJun 11, '08 at 11:30a
activeJun 11, '08 at 2:42p
posts7
users4
websitelucene.apache.org

People

Translate

site design / logo © 2022 Grokbase