On 3/28/13 10:37 PM, Mark Bennett wrote:
For the record, this was what I wound up with:

solr/example/solr/collection1/conf/solrconfig.xml
Line 133:
BEFOR:
    <codecFactory class="solr.SchemaCodecFactory"/>
AFTER:
    <codecFactory class="solr.SimpleTextSchemaCodecFactory"/>

solr/core/src/java/org/apache/solr/core/SimpleTextSchemaCodecFactory.java
package org.apache.solr.core;
import org.apache.lucene.codecs.Codec;
import org.apache.lucene.codecs.DocValuesFormat;
import org.apache.lucene.codecs.PostingsFormat;
import org.apache.lucene.codecs.simpletext.SimpleTextCodec;
import org.apache.solr.schema.IndexSchema;
import org.apache.solr.schema.SchemaAware;
import org.apache.solr.schema.SchemaField;
public class SimpleTextSchemaCodecFactory extends SchemaCodecFactory {
   private Codec codec;
   @Override
   public void inform(final IndexSchema schema) {
     codec = new SimpleTextCodec();
   }
   @Override
   public Codec getCodec() {
     assert codec != null : "inform must be called first";
     return codec;
   }
}

Text files: _0.fld, _0.inf, _0.len, _0.pst, _0.si

Still binary (OK for me): segments.gen, segments_2

These two files are not handled by codecs, so they will always remain binary.


--
Best regards,
Andrzej Bialecki
http://www.sigram.com, blog http://www.sigram.com/blog
 ___.,___,___,___,_._. __________________<><____________________
[___||.__|__/|__||\/|: Information Retrieval, System Integration
___|||__||..\|..||..|: Contact: info at sigram dot com


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to