You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Artem Lukanin (JIRA)" <ji...@apache.org> on 2013/01/30 10:39:12 UTC
[jira] [Comment Edited] (SOLR-4375) Add config or schema option to
turn off compressed stored fields in the Lucene 4.1 index format
[ https://issues.apache.org/jira/browse/SOLR-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13566327#comment-13566327 ]
Artem Lukanin edited comment on SOLR-4375 at 1/30/13 9:38 AM:
--------------------------------------------------------------
I failed to make a custom codec LUCENE_41CUSTOM, so I've made a patch and rebuilt Solr. The results:
Solr 4.1 with termVectors and without compression: 5,75586854460094 ms
patch for the test:
===================================================================
--- lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41Codec.java (date 1359358135000)
+++ lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41Codec.java (revision )
@@ -32,6 +32,7 @@
import org.apache.lucene.codecs.lucene40.Lucene40LiveDocsFormat;
import org.apache.lucene.codecs.lucene40.Lucene40NormsFormat;
import org.apache.lucene.codecs.lucene40.Lucene40SegmentInfoFormat;
+import org.apache.lucene.codecs.lucene40.Lucene40StoredFieldsFormat;
import org.apache.lucene.codecs.lucene40.Lucene40TermVectorsFormat;
import org.apache.lucene.codecs.perfield.PerFieldPostingsFormat;
@@ -48,7 +49,7 @@
// if they are backwards compatible or smallish we can probably do the backwards in the postingsreader
// (it writes a minor version, etc).
public class Lucene41Codec extends Codec {
- private final StoredFieldsFormat fieldsFormat = new Lucene41StoredFieldsFormat();
+ private final StoredFieldsFormat fieldsFormat = new Lucene40StoredFieldsFormat();
private final TermVectorsFormat vectorsFormat = new Lucene40TermVectorsFormat();
private final FieldInfosFormat fieldInfosFormat = new Lucene40FieldInfosFormat();
private final DocValuesFormat docValuesFormat = new Lucene40DocValuesFormat();
was (Author: alukanin):
I failed to make a custom codec LUCENE_41CUSTOM, so I've made a patch and rebuild Solr. The results:
Solr 4.1 with termVectors and without compression: 5,75586854460094 ms
patch for the test:
===================================================================
--- lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41Codec.java (date 1359358135000)
+++ lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41Codec.java (revision )
@@ -32,6 +32,7 @@
import org.apache.lucene.codecs.lucene40.Lucene40LiveDocsFormat;
import org.apache.lucene.codecs.lucene40.Lucene40NormsFormat;
import org.apache.lucene.codecs.lucene40.Lucene40SegmentInfoFormat;
+import org.apache.lucene.codecs.lucene40.Lucene40StoredFieldsFormat;
import org.apache.lucene.codecs.lucene40.Lucene40TermVectorsFormat;
import org.apache.lucene.codecs.perfield.PerFieldPostingsFormat;
@@ -48,7 +49,7 @@
// if they are backwards compatible or smallish we can probably do the backwards in the postingsreader
// (it writes a minor version, etc).
public class Lucene41Codec extends Codec {
- private final StoredFieldsFormat fieldsFormat = new Lucene41StoredFieldsFormat();
+ private final StoredFieldsFormat fieldsFormat = new Lucene40StoredFieldsFormat();
private final TermVectorsFormat vectorsFormat = new Lucene40TermVectorsFormat();
private final FieldInfosFormat fieldInfosFormat = new Lucene40FieldInfosFormat();
private final DocValuesFormat docValuesFormat = new Lucene40DocValuesFormat();
> Add config or schema option to turn off compressed stored fields in the Lucene 4.1 index format
> -----------------------------------------------------------------------------------------------
>
> Key: SOLR-4375
> URL: https://issues.apache.org/jira/browse/SOLR-4375
> Project: Solr
> Issue Type: Improvement
> Affects Versions: 4.1
> Reporter: Shawn Heisey
> Fix For: 4.2, 5.0
>
>
> There have been performance complaints on the mailing list about the default compressed stored fields in the 4.1 index format. There should be an option to turn the compression off.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org