You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Artyom <ic...@mail.ru> on 2013/01/29 11:56:58 UTC

How to disable compression on stored fields in Solr 4.1?

I tried Solr 4.1, reindexed data using DIH (full-import) and compared
response time with version 4.0. Response time increased 1.5-2 times. How to
disable compression on stored fields in Solr 4.1? I tried to change codec
version in solrconfig:

  <luceneMatchVersion>LUCENE_40</luceneMatchVersion>

and reindexed data using DIH (full-import) but it doesn't help, the index is
still compressed and response time is still high...



--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-disable-compression-on-stored-fields-in-Solr-4-1-tp4037001.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to disable compression on stored fields in Solr 4.1?

Posted by Shawn Heisey <el...@elyograg.org>.
On 1/29/2013 7:40 AM, Shawn Heisey wrote:
> I don't think there's a way to turn off the stored field compression in
> the 4.1 index format, but I think there is something else you can do
> right now - switch to the 4.0 index format.  To do this, you need a
> postingsFormat value of "Lucene40" on some or all of your stored fields
> in schema.xml and an option in solrconfig.xml.

It seems that I was wrong about this.  Apparently postingsFormat does 
not affect the stored fields format.  Apologies for offering incorrect 
information!  See the comments on SOLR-4375 for more details.

Thanks,
Shawn



Re: How to disable compression on stored fields in Solr 4.1?

Posted by Shawn Heisey <so...@elyograg.org>.
On 1/29/2013 4:57 AM, Artyom wrote:
> I guess, I have to "write a new codec that uses a stored fields format which
> does not compress stored fields such as Lucene40StoredFieldsFormat"
> http://blog.jpountz.net/post/35667727458/stored-fields-compression-in-lucene-4-1
>
> What is the purpose of <luceneMatchVersion> tag then, does it affect
> anything at all or LUCENE_40 and LUCENE_41 are just the same in Solr 4.1?

The luceneMatchVersion causes some analysis components to behave like 
they did in older versions.  Usually you'd want to use this when you 
rely on older behavior that was not working correctly and got fixed in 
the newer version that you are now running.  The index format is unaffected.

I don't think there's a way to turn off the stored field compression in 
the 4.1 index format, but I think there is something else you can do 
right now - switch to the 4.0 index format.  To do this, you need a 
postingsFormat value of "Lucene40" on some or all of your stored fields 
in schema.xml and an option in solrconfig.xml.

  <codecFactory name="CodecFactory" class="solr.SchemaCodecFactory" />

http://wiki.apache.org/solr/SchemaXml#Data_Types

Because I could not find an existing issue in Jira to add a compression 
config knob, I made one:

https://issues.apache.org/jira/browse/SOLR-4375

Thanks,
Shawn


Re: How to disable compression on stored fields in Solr 4.1?

Posted by Artyom <ic...@mail.ru>.
I guess, I have to "write a new codec that uses a stored fields format which
does not compress stored fields such as Lucene40StoredFieldsFormat"
http://blog.jpountz.net/post/35667727458/stored-fields-compression-in-lucene-4-1

What is the purpose of <luceneMatchVersion> tag then, does it affect
anything at all or LUCENE_40 and LUCENE_41 are just the same in Solr 4.1?



--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-disable-compression-on-stored-fields-in-Solr-4-1-tp4037001p4037005.html
Sent from the Solr - User mailing list archive at Nabble.com.