forked from simonambridge/DataStaxDay
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54c08c7
commit fafce5f
Showing
9 changed files
with
64,439 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<schema name="autoSolrSchema" version="1.5"> | ||
<types> | ||
<fieldType class="org.apache.solr.schema.TextField" name="TextField"> | ||
<analyzer> | ||
<tokenizer class="solr.StandardTokenizerFactory"/> | ||
<filter class="solr.LowerCaseFilterFactory"/> | ||
</analyzer> | ||
</fieldType> | ||
<fieldType class="org.apache.solr.schema.TrieDoubleField" name="TrieDoubleField"/> | ||
<fieldType class="org.apache.solr.schema.StrField" name="StrField"/> | ||
<fieldType class="org.apache.solr.schema.UUIDField" name="UUIDField"/> | ||
<fieldType name="loc" class="solr.LatLonType" subFieldSuffix="_coordinate"/> | ||
</types> | ||
<fields> | ||
<field indexed="true" multiValued="false" name="ip" stored="true" type="StrField"/> | ||
<field indexed="true" multiValued="false" name="postal_code" stored="true" type="StrField"/> | ||
<field indexed="true" multiValued="false" name="location" stored="true" type="loc"/> | ||
<field indexed="true" multiValued="false" name="location_0_coordinate" stored="true" type="TrieDoubleField"/> | ||
<field indexed="true" multiValued="false" name="metro_code" stored="true" type="StrField"/> | ||
<field indexed="true" multiValued="false" name="region" stored="true" type="StrField"/> | ||
<field indexed="true" multiValued="false" name="country" stored="true" type="StrField"/> | ||
<field indexed="true" multiValued="false" name="city" stored="true" type="StrField"/> | ||
<field indexed="true" multiValued="false" name="asin" stored="true" type="StrField"/> | ||
<field indexed="true" multiValued="false" name="location_1_coordinate" stored="true" type="TrieDoubleField"/> | ||
<field indexed="true" multiValued="false" name="loc_id" stored="true" type="TextField" omitNorms="true" termVectors="false"/> | ||
<field indexed="true" multiValued="false" name="area_code" stored="true" type="StrField"/> | ||
<field indexed="true" multiValued="false" name="user" stored="true" type="UUIDField"/> | ||
<field indexed="true" multiValued="false" name="seq" stored="true" type="UUIDField"/> | ||
</fields> | ||
<uniqueKey>(asin,seq,user)</uniqueKey> | ||
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<schema name="autoSolrSchema" version="1.5"> | ||
<types> | ||
<fieldType class="org.apache.solr.schema.StrField" name="StrField"/> | ||
<fieldType name="autocomplete_edge" class="solr.TextField"> | ||
<analyzer type="index"> | ||
<tokenizer class="solr.KeywordTokenizerFactory"/> | ||
<filter class="solr.LowerCaseFilterFactory"/> | ||
<filter class="solr.PatternReplaceFilterFactory" pattern="([\.,;:-_])" replacement=" " replace="all"/> | ||
<filter class="solr.EdgeNGramFilterFactory" maxGramSize="30" minGramSize="1"/> | ||
<filter class="solr.PatternReplaceFilterFactory" pattern="([^\w\d\*æøåÆØÅ ])" replacement="" replace="all"/> | ||
</analyzer> | ||
<analyzer type="query"> | ||
<tokenizer class="solr.KeywordTokenizerFactory"/> | ||
<filter class="solr.LowerCaseFilterFactory"/> | ||
<filter class="solr.PatternReplaceFilterFactory" pattern="([\.,;:-_])" replacement=" " replace="all"/> | ||
<filter class="solr.PatternReplaceFilterFactory" pattern="([^\w\d\*æøåÆØÅ ])" replacement="" replace="all"/> | ||
<filter class="solr.PatternReplaceFilterFactory" pattern="^(.{30})(.*)?" replacement="$1" replace="all"/> | ||
</analyzer> | ||
</fieldType> | ||
|
||
<fieldType class="org.apache.solr.schema.TextField" name="TextField"> | ||
<analyzer> | ||
<tokenizer class="solr.StandardTokenizerFactory"/> | ||
<filter class="solr.LowerCaseFilterFactory"/> | ||
<filter class="solr.KeywordRepeatFilterFactory"/> | ||
<filter class="solr.PorterStemFilterFactory"/> | ||
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/> | ||
</analyzer> | ||
</fieldType> | ||
<fieldType class="org.apache.solr.schema.TrieDoubleField" name="TrieDoubleField"/> | ||
</types> | ||
<fields> | ||
<field indexed="true" multiValued="false" name="asin" stored="true" type="StrField"/> | ||
<field indexed="true" multiValued="true" name="buy_after_viewing" stored="true" type="TextField"/> | ||
<field indexed="true" multiValued="false" name="imurl" stored="true" type="TextField"/> | ||
<field indexed="true" multiValued="true" name="also_bought" stored="true" type="TextField"/> | ||
<field indexed="true" multiValued="true" name="categories" stored="true" type="TextField"/> | ||
<field indexed="true" multiValued="false" name="price" stored="true" type="TrieDoubleField"/> | ||
<field indexed="true" multiValued="false" name="title" stored="true" type="TextField"/> | ||
<field indexed="true" multiValued="false" name="textsuggest" stored="false" type="autocomplete_edge"/> | ||
<copyField source="title" dest="textsuggest" /> | ||
</fields> | ||
<uniqueKey>asin</uniqueKey> | ||
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<schema name="autoSolrSchema" version="1.5"> | ||
<types> | ||
<fieldType class="org.apache.solr.schema.StrField" name="StrField"/> | ||
<fieldType class="org.apache.solr.schema.TrieIntField" name="TrieIntField"/> | ||
</types> | ||
<fields> | ||
<field indexed="true" multiValued="false" name="asin" stored="true" type="StrField"/> | ||
<field indexed="true" multiValued="false" name="rank" stored="true" type="TrieIntField"/> | ||
<field indexed="true" multiValued="false" name="category" stored="true" type="StrField"/> | ||
</fields> | ||
<uniqueKey>(asin,category)</uniqueKey> | ||
</schema> |
Oops, something went wrong.