forked from DataStaxCodeSamples/datastax-banking-iot
-
Notifications
You must be signed in to change notification settings - Fork 2
/
schema.xml
29 lines (28 loc) · 2.09 KB
/
schema.xml
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<schema name="autoSolrSchema" version="1.5">
<types>
<fieldType class="org.apache.solr.schema.TrieDateField" name="TrieDateField" omitNorms="true" termVectors="false" termPositions="false" termOffsets="false"/>
<fieldType class="org.apache.solr.schema.TextField" name="TextField" omitNorms="true" termVectors="false" termPositions="false" termOffsets="false">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
<fieldType class="org.apache.solr.schema.TrieDoubleField" name="TrieDoubleField" omitNorms="true" termVectors="false" termPositions="false" termOffsets="false"/>
<fieldType class="org.apache.solr.schema.StrField" name="StrField" omitNorms="true" termVectors="false" termPositions="false" termOffsets="false"/>
</types>
<fields>
<field indexed="true" multiValued="false" name="transaction_time" stored="true" type="TrieDateField" docValues="true"/>
<field indexed="true" multiValued="false" name="transaction_id" stored="true" type="StrField" docValues="true"/>
<field indexed="true" multiValued="false" name="merchant" stored="true" type="StrField" docValues="true"/>
<field indexed="true" multiValued="false" name="user_id" stored="true" type="StrField" docValues="true"/>
<dynamicField indexed="true" multiValued="false" name="items_*" stored="true" type="TrieDoubleField" docValues="true"/>
<field indexed="true" multiValued="false" name="amount" stored="true" type="TrieDoubleField" docValues="true"/>
<field indexed="true" multiValued="false" name="status" stored="true" type="StrField" docValues="true"/>
<field indexed="true" multiValued="false" name="notes" stored="true" type="StrField" docValues="true"/>
<field indexed="true" multiValued="false" name="location" stored="true" type="StrField" docValues="true"/>
<field indexed="true" multiValued="false" name="cc_no" stored="true" type="StrField" docValues="true"/>
<field indexed="true" multiValued="true" name="tags" stored="true" type="StrField" docValues="true"/>
</fields>
<uniqueKey>(cc_no,transaction_time)</uniqueKey>
</schema>