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 Zahra Aminolroaya <z....@gmail.com> on 2018/06/17 04:39:07 UTC

code v.s. schema for BEST_COMPRESSION mode

I want to reduce the size of indexed and stored documents in Solr. I found
two way in the first solution  
http://https://lucene.apache.org/solr/guide/6_6/codec-factory.html#solr-schemacodecfactory
<http://https://lucene.apache.org/solr/guide/6_6/codec-factory.html#solr-schemacodecfactory>  
it is only needed to change the compressionMode in the codecFactory section
of schema. In the other way, 
http://https://github.com/apache/lucene-solr/blob/releases/lucene-solr/6.4.0/lucene/core/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsFormat.java
<http://https://github.com/apache/lucene-solr/blob/releases/lucene-solr/6.4.0/lucene/core/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsFormat.java>  
it is needed to use the java code to compress stored field.

What is the difference between these solutions? Is it enough to use the 
schema editting way?



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: code v.s. schema for BEST_COMPRESSION mode

Posted by Zahra Aminolroaya <z....@gmail.com>.
Thanks



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: code v.s. schema for BEST_COMPRESSION mode

Posted by Tomás Fernández Löbbe <to...@gmail.com>.
The schema configuration in your first link is the way to tell Solr to use
a particular compression mode in the Lucene index (the second link).
So yes, the schema change should be enough.

On Sun, Jun 17, 2018 at 6:39 AM Zahra Aminolroaya <z....@gmail.com>
wrote:

> I want to reduce the size of indexed and stored documents in Solr. I found
> two way in the first solution
> http://
> https://lucene.apache.org/solr/guide/6_6/codec-factory.html#solr-schemacodecfactory
> <http://
> https://lucene.apache.org/solr/guide/6_6/codec-factory.html#solr-schemacodecfactory>
>
> it is only needed to change the compressionMode in the codecFactory section
> of schema. In the other way,
> http://
> https://github.com/apache/lucene-solr/blob/releases/lucene-solr/6.4.0/lucene/core/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsFormat.java
> <http://
> https://github.com/apache/lucene-solr/blob/releases/lucene-solr/6.4.0/lucene/core/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsFormat.java>
>
> it is needed to use the java code to compress stored field.
>
> What is the difference between these solutions? Is it enough to use the
> schema editting way?
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>