schema.xml 1.89 KB
<?xml version="1.0" encoding="UTF-8" ?>

<schema name="nederlab" version="1.6">

	<uniqueKey>id</uniqueKey>

	<fieldType name="binary" class="solr.BinaryField" />
	<fieldType name="boolean" class="solr.BoolField"
		sortMissingLast="true" />
	<fieldType name="date" class="solr.TrieDateField"
		positionIncrementGap="0" precisionStep="0" />
	<fieldType name="double" class="solr.TrieDoubleField"
		positionIncrementGap="0" precisionStep="0" />
	<fieldType name="float" class="solr.TrieFloatField"
		positionIncrementGap="0" precisionStep="0" />
	<fieldType name="int" class="solr.TrieIntField"
		positionIncrementGap="0" precisionStep="0" />
	<fieldType name="long" class="solr.TrieLongField"
		positionIncrementGap="0" precisionStep="0" />
	<fieldType name="string" class="solr.StrField"
		sortMissingLast="true" />

	<fieldType name="text" class="solr.TextField"
		positionIncrementGap="100">
		<analyzer type="index">
			<tokenizer class="solr.StandardTokenizerFactory" />
			<filter class="solr.LowerCaseFilterFactory" />
		</analyzer>
		<analyzer type="query">
			<tokenizer class="solr.StandardTokenizerFactory" />
			<filter class="solr.LowerCaseFilterFactory" />
		</analyzer>
	</fieldType>

	<fieldType name="mtas" class="solr.TextField" postingsFormat="MtasCodec">
		<analyzer type="index">
			<charFilter class="mtas.analysis.util.MtasCharFilterFactory"
				type="file" />
			<tokenizer class="mtas.analysis.util.MtasTokenizerFactory"
				configFile="folia.xml" />
		</analyzer>
	</fieldType>

	<field name="id" type="string" multiValued="false" indexed="true"
		required="true" stored="true" />
	<field name="_version_" type="long" indexed="true" stored="true" />
	<field name="title" type="string" indexed="true" stored="true" />
	<field name="text" type="string" indexed="true" stored="true" />
	<field name="mtas" type="mtas" indexed="true" stored="true" />

</schema>