Vadim, Is it possible that your solrconfig.xml is using maxFieldLength in both the <indexDefaults> and <mainIndex>?
If so the mainIndex config overwrites the other. See this issue: http://lucene.472066.n3.nabble.com/Solr-ignoring-maxFieldLength-td473263.html Sean On Thu, Jan 26, 2012 at 10:15 AM, Vadim Kisselmann < v.kisselm...@googlemail.com> wrote: > P.S.: > i use Solr 4.0 from trunk. > Is maxFieldLength deprecated in Solr 4.0 ? > If so, do i have an alternative to decrease the number of terms during > indexing? > Regards > Vadim > > > > 2012/1/26 Vadim Kisselmann <v.kisselm...@googlemail.com>: > > Hello Folks, > > i want to decrease the max. number of terms for my fields to 500. > > I thought what the maxFieldLength parameter in solrconfig.xml is > > intended for this. > > In my case it doesn't work. > > > > The half of my text fields includes longer text(about 10000 words). > > With 100 docs in my index i had an segment size of 1140KB for indexed > > data and 270KB for stored data (.fdx, .fdt). > > After a change from default <maxFieldLength>10000</maxFieldLength> to > > <maxFieldLength>500</maxFieldLength>, > > delete(index folder), restarting Tomcat and reindex, i see the same > > segment sizes (1140KB for indexed and 270KB for stored data). > > > > Please tell me if I made an error in reasoning. > > > > Regards > > Vadim > -- Sean Adams-Hiett Owner, Web Geeks For Hire phone: (361) 433.5748 email: s...@webgeeksforhire.com web: www.webgeeksforhire.com twitter: @geekbusiness <http://twitter.com/geekbusiness>