schemaFull.xml
2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8" ?>
<schema name="demo" version="1.6">
<field name="_version_" type="long" indexed="true" multiValued="false" stored="false" docValues="true" />
<field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />
<field name="type" type="text" required="true" multiValued="false" indexed="true" stored="true" />
<field name="title" type="text" required="false" multiValued="false" indexed="true" stored="true" />
<field name="author" type="text" required="false" multiValued="false" indexed="true" stored="true" />
<field name="genre" type="string" required="false" multiValued="true" indexed="true" stored="true" />
<field name="text" type="mtas" required="false" multiValued="false" indexed="true" stored="true" />
<field name="error" type="string" indexed="true" stored="true" />
<field name="numberOfTokens" type="int" indexed="true" stored="true" />
<field name="numberOfPositions" type="int" indexed="true" stored="true" />
<field name="size" type="int" indexed="true" stored="true" />
<uniqueKey>id</uniqueKey>
<fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" />
<fieldType name="int" class="solr.TrieIntField" precisionStep="8" positionIncrementGap="0" />
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0" />
<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_config" class="solr.TextField" postingsFormat="MtasCodec">
<analyzer type="index">
<charFilter class="mtas.analysis.util.MtasCharFilterFactory" config="mtas.xml" />
<tokenizer class="mtas.analysis.util.MtasTokenizerFactory" config="mtas.xml" />
</analyzer>
</fieldType>
<fieldType name="mtas" class="mtas.solr.schema.MtasPreAnalyzedField"
followIndexAnalyzer="mtas_config" defaultConfiguration="default"
configurationFromField="type" setNumberOfTokens="numberOfTokens"
setNumberOfPositions="numberOfPositions" setSize="size"
setError="error" postingsFormat="MtasCodec">
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory" />
<filter class="mtas.analysis.util.MtasPrefixTokenFilterFactory" prefix="t" />
</analyzer>
</fieldType>
</schema>