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.aminolro...@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 >