schema.xml 1.66 KB
<schema name="account" version="1.5"><!-- Confirmer choix version-->
    <fieldType name="int" class="solr.TrieIntField"/>
    <fieldType name="long" class="solr.TrieLongField"/>
    <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" />
    <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true"/>
    <fieldType name="tdates" class="solr.TrieDateField" docValues="true" precisionStep="6" positionIncrementGap="0"/>
    <fieldType name="tlongs" class="solr.TrieLongField" docValues="true" precisionStep="8" positionIncrementGap="0"/>
    <fieldType name="tdoubles" class="solr.TrieDoubleField" docValues="true" precisionStep="8" positionIncrementGap="0"/>
    <fieldType name="ICUtext" class="solr.TextField">
	<analyzer type="index">
            <charFilter class="solr.HTMLStripCharFilterFactory"/>
            <tokenizer class="solr.ICUTokenizerFactory"/>
            <filter class="solr.ICUFoldingFilterFactory"/>
	</analyzer>
	<analyzer type="query">
            <tokenizer class="solr.ICUTokenizerFactory"/>
            <filter class="solr.ICUFoldingFilterFactory"/>
	</analyzer>
    </fieldType>
    <fieldType name="namestr" class="solr.StrField"/>

    <field name="presentation" type="ICUtext" indexed="true" stored="true" multiValued="false" required="false"/>
    <field name="userId" type="int" indexed="true" multiValued="false" required="true"/>
    <field name="_version_" type="long" indexed="true" multiValued="false" required="true"/>
    <field name="_text_" type="ICUtext" indexed="true" multiValued="true" required="true"/>

    <uniqueKey>userId</uniqueKey>

    <copyField source="presentation" dest="_text_" />
</schema>