In the second case I guess that searching might be faster by the odd fraction of a millisecond, but any affect will likely be dwarfed by most of the stuff on the Wiki page mentioned before.
-- Ian. On Thu, Feb 17, 2011 at 12:56 PM, suman.holani <suman.hol...@zapak.co.in> wrote: > Hi , > > Thanks its useful. > > One thing , if I reduce the number of fields by setting them INDEX.NO will > it affect searching speed.But yes ,I will be storing those fields in index. > > Let say there are 5 fields A,B,C,D,E > > ---with first index having all fields config as STORE.YES and > INDEX.ANALYZED > > ---another index having > A STORE.YES and INDEX.NO > B STORE.YES and INDEX.NO > C STORE.YES and INDEX.NO > D STORE.YES and INDEX.ANALYZED > E STORE.YES and INDEX.ANALYZED > > > Will second index searching will be faster. > > > Regards, > suman > > > -----Original Message----- > From: Ian Lea [mailto:ian....@gmail.com] > Sent: Thursday, February 17, 2011 5:52 PM > To: java-user@lucene.apache.org > Subject: Re: fields : stored and indexed > > http://lucene.apache.org/java/3_0_3/fileformats.html will tell you all > you need to know about what is stored where and how. > > In general, the speed of searching i.e. finding matching docs will not > be affected by the number of stored fields but retrieving data from > lots of stored fields will certainly take longer than retrieving data > from fewer stored fields. > > Only index the fields you need to search on and only store the fields > you need to retrieve. If you only need to retrieve some of the stored > fields use a FieldSelector. > > > http://wiki.apache.org/lucene-java/ImproveSearchingSpeed has good info > on making searching fast. > > > -- > Ian. > > On Thu, Feb 17, 2011 at 10:39 AM, suman.holani <suman.hol...@zapak.co.in> > wrote: >> Hello, >> >> >> >> I am little confused on the stored and index part of lucene >> >> >> >> How it actually stores the indexed field and stored field >> >> Is it that for every field indexed , all the store fields added .I mean do >> we create diff indexes for every indexed field ,replicating the stored > field >> in each of them. >> >> >> >> >> >> I have read that less the number of fields in document , more will b the >> faster search would be.The number of fields is actual number of fields or >> the indexed fields? >> >> So , in that case if we use STORE.YES and INDEX.NO for major non >> searchable fields ,will searching be faster. >> >> >> >> >> >> >> >> Regards, >> >> Suman >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org