mirror of https://github.com/apache/lucene.git
solar->solr changes
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@382438 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b1d2aae8a7
commit
acd34ce844
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" ?>
|
<?xml version="1.0" ?>
|
||||||
<!-- The Solar schema file. This file should be named "schema.xml" and
|
<!-- The Solr schema file. This file should be named "schema.xml" and
|
||||||
should be located where the classloader for the Solar webapp can find it.
|
should be located where the classloader for the Solr webapp can find it.
|
||||||
|
|
||||||
$Id: schema.xml,v 1.1 2005/06/09 03:01:13 yonik Exp $
|
$Id: schema.xml,v 1.1 2005/06/09 03:01:13 yonik Exp $
|
||||||
$Source: /cvs/main/searching/solar-configs/test/WEB-INF/classes/schema.xml,v $
|
$Source: /cvs/main/searching/solr-configs/test/WEB-INF/classes/schema.xml,v $
|
||||||
$Name: $
|
$Name: $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
@ -21,10 +21,10 @@
|
||||||
These are provided more for backward compatability, allowing one
|
These are provided more for backward compatability, allowing one
|
||||||
to create a schema that matches an existing lucene index.
|
to create a schema that matches an existing lucene index.
|
||||||
-->
|
-->
|
||||||
<fieldtype name="integer" class="solar.IntField"/>
|
<fieldtype name="integer" class="solr.IntField"/>
|
||||||
<fieldtype name="long" class="solar.LongField"/>
|
<fieldtype name="long" class="solr.LongField"/>
|
||||||
<fieldtype name="float" class="solar.FloatField"/>
|
<fieldtype name="float" class="solr.FloatField"/>
|
||||||
<fieldtype name="double" class="solar.DoubleField"/>
|
<fieldtype name="double" class="solr.DoubleField"/>
|
||||||
|
|
||||||
<!-- numeric field types that manipulate the value into
|
<!-- numeric field types that manipulate the value into
|
||||||
a string value that isn't human readable in it's internal form,
|
a string value that isn't human readable in it's internal form,
|
||||||
|
@ -40,197 +40,197 @@
|
||||||
then default lucene sorting will be used which places docs without the field
|
then default lucene sorting will be used which places docs without the field
|
||||||
first in an ascending sort and last in a descending sort.
|
first in an ascending sort and last in a descending sort.
|
||||||
-->
|
-->
|
||||||
<fieldtype name="sint" class="solar.SortableIntField" sortMissingLast="true"/>
|
<fieldtype name="sint" class="solr.SortableIntField" sortMissingLast="true"/>
|
||||||
<fieldtype name="slong" class="solar.SortableLongField" sortMissingLast="true"/>
|
<fieldtype name="slong" class="solr.SortableLongField" sortMissingLast="true"/>
|
||||||
<fieldtype name="sfloat" class="solar.SortableFloatField" sortMissingLast="true"/>
|
<fieldtype name="sfloat" class="solr.SortableFloatField" sortMissingLast="true"/>
|
||||||
<fieldtype name="sdouble" class="solar.SortableDoubleField" sortMissingLast="true"/>
|
<fieldtype name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true"/>
|
||||||
|
|
||||||
<!-- bcd versions of sortable numeric type may provide smaller
|
<!-- bcd versions of sortable numeric type may provide smaller
|
||||||
storage space and support very large numbers.
|
storage space and support very large numbers.
|
||||||
-->
|
-->
|
||||||
<fieldtype name="bcdint" class="solar.BCDIntField" sortMissingLast="true"/>
|
<fieldtype name="bcdint" class="solr.BCDIntField" sortMissingLast="true"/>
|
||||||
<fieldtype name="bcdlong" class="solar.BCDLongField" sortMissingLast="true"/>
|
<fieldtype name="bcdlong" class="solr.BCDLongField" sortMissingLast="true"/>
|
||||||
<fieldtype name="bcdstr" class="solar.BCDStrField" sortMissingLast="true"/>
|
<fieldtype name="bcdstr" class="solr.BCDStrField" sortMissingLast="true"/>
|
||||||
|
|
||||||
|
|
||||||
<fieldtype name="boolean" class="solar.BoolField" sortMissingLast="true"/>
|
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/>
|
||||||
<fieldtype name="string" class="solar.StrField" sortMissingLast="true"/>
|
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/>
|
||||||
|
|
||||||
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
|
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
|
||||||
seconds part (.999) is optional.
|
seconds part (.999) is optional.
|
||||||
-->
|
-->
|
||||||
<fieldtype name="date" class="solar.DateField" sortMissingLast="true"/>
|
<fieldtype name="date" class="solr.DateField" sortMissingLast="true"/>
|
||||||
|
|
||||||
<!-- solar.TextField allows the specification of custom
|
<!-- solr.TextField allows the specification of custom
|
||||||
text analyzers specified as a tokenizer and a list
|
text analyzers specified as a tokenizer and a list
|
||||||
of token filters.
|
of token filters.
|
||||||
-->
|
-->
|
||||||
<fieldtype name="text" class="solar.TextField">
|
<fieldtype name="text" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.StandardTokenizerFactory"/>
|
<tokenizer class="solr.StandardTokenizerFactory"/>
|
||||||
<filter class="solar.StandardFilterFactory"/>
|
<filter class="solr.StandardFilterFactory"/>
|
||||||
<filter class="solar.LowerCaseFilterFactory"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
<filter class="solar.StopFilterFactory"/>
|
<filter class="solr.StopFilterFactory"/>
|
||||||
<!-- lucene PorterStemFilterFactory deprecated
|
<!-- lucene PorterStemFilterFactory deprecated
|
||||||
<filter class="solar.PorterStemFilterFactory"/>
|
<filter class="solr.PorterStemFilterFactory"/>
|
||||||
-->
|
-->
|
||||||
<filter class="solar.EnglishPorterFilterFactory"/>
|
<filter class="solr.EnglishPorterFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
|
|
||||||
|
|
||||||
<fieldtype name="nametext" class="solar.TextField">
|
<fieldtype name="nametext" class="solr.TextField">
|
||||||
<analyzer class="org.apache.lucene.analysis.WhitespaceAnalyzer"/>
|
<analyzer class="org.apache.lucene.analysis.WhitespaceAnalyzer"/>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
|
|
||||||
<fieldtype name="teststop" class="solar.TextField">
|
<fieldtype name="teststop" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.LowerCaseTokenizerFactory"/>
|
<tokenizer class="solr.LowerCaseTokenizerFactory"/>
|
||||||
<filter class="solar.StandardFilterFactory"/>
|
<filter class="solr.StandardFilterFactory"/>
|
||||||
<filter class="solar.StopFilterFactory" words="stopwords.txt"/>
|
<filter class="solr.StopFilterFactory" words="stopwords.txt"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
|
|
||||||
<!-- fieldtypes in this section isolate tokenizers and tokenfilters for testing -->
|
<!-- fieldtypes in this section isolate tokenizers and tokenfilters for testing -->
|
||||||
<fieldtype name="lowertok" class="solar.TextField">
|
<fieldtype name="lowertok" class="solr.TextField">
|
||||||
<analyzer><tokenizer class="solar.LowerCaseTokenizerFactory"/></analyzer>
|
<analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="standardtok" class="solar.TextField">
|
<fieldtype name="standardtok" class="solr.TextField">
|
||||||
<analyzer><tokenizer class="solar.StandardTokenizerFactory"/></analyzer>
|
<analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="lettertok" class="solar.TextField">
|
<fieldtype name="lettertok" class="solr.TextField">
|
||||||
<analyzer><tokenizer class="solar.LetterTokenizerFactory"/></analyzer>
|
<analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="whitetok" class="solar.TextField">
|
<fieldtype name="whitetok" class="solr.TextField">
|
||||||
<analyzer><tokenizer class="solar.WhitespaceTokenizerFactory"/></analyzer>
|
<analyzer><tokenizer class="solr.WhitespaceTokenizerFactory"/></analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="HTMLstandardtok" class="solar.TextField">
|
<fieldtype name="HTMLstandardtok" class="solr.TextField">
|
||||||
<analyzer><tokenizer class="solar.HTMLStripStandardTokenizerFactory"/></analyzer>
|
<analyzer><tokenizer class="solr.HTMLStripStandardTokenizerFactory"/></analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="HTMLwhitetok" class="solar.TextField">
|
<fieldtype name="HTMLwhitetok" class="solr.TextField">
|
||||||
<analyzer><tokenizer class="solar.HTMLStripWhitespaceTokenizerFactory"/></analyzer>
|
<analyzer><tokenizer class="solr.HTMLStripWhitespaceTokenizerFactory"/></analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="standardtokfilt" class="solar.TextField">
|
<fieldtype name="standardtokfilt" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.StandardTokenizerFactory"/>
|
<tokenizer class="solr.StandardTokenizerFactory"/>
|
||||||
<filter class="solar.StandardFilterFactory"/>
|
<filter class="solr.StandardFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="standardfilt" class="solar.TextField">
|
<fieldtype name="standardfilt" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.StandardFilterFactory"/>
|
<filter class="solr.StandardFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="lowerfilt" class="solar.TextField">
|
<fieldtype name="lowerfilt" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.LowerCaseFilterFactory"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="porterfilt" class="solar.TextField">
|
<fieldtype name="porterfilt" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.PorterStemFilterFactory"/>
|
<filter class="solr.PorterStemFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<!-- fieldtype name="snowballfilt" class="solar.TextField">
|
<!-- fieldtype name="snowballfilt" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.SnowballPorterFilterFactory"/>
|
<filter class="solr.SnowballPorterFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype -->
|
</fieldtype -->
|
||||||
<fieldtype name="engporterfilt" class="solar.TextField">
|
<fieldtype name="engporterfilt" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.EnglishPorterFilterFactory"/>
|
<filter class="solr.EnglishPorterFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="custengporterfilt" class="solar.TextField">
|
<fieldtype name="custengporterfilt" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.EnglishPorterFilterFactory" protected="protwords.txt"/>
|
<filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="stopfilt" class="solar.TextField">
|
<fieldtype name="stopfilt" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.StopFilterFactory" ignoreCase="true"/>
|
<filter class="solr.StopFilterFactory" ignoreCase="true"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="custstopfilt" class="solar.TextField">
|
<fieldtype name="custstopfilt" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.StopFilterFactory" words="stopwords.txt"/>
|
<filter class="solr.StopFilterFactory" words="stopwords.txt"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
<fieldtype name="lengthfilt" class="solar.TextField">
|
<fieldtype name="lengthfilt" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.LengthFilterFactory" min="2" max="5"/>
|
<filter class="solr.LengthFilterFactory" min="2" max="5"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
|
|
||||||
<fieldtype name="subword" class="solar.TextField">
|
<fieldtype name="subword" class="solr.TextField">
|
||||||
<analyzer type="index">
|
<analyzer type="index">
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
||||||
<filter class="solar.LowerCaseFilterFactory"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
<filter class="solar.StopFilterFactory"/>
|
<filter class="solr.StopFilterFactory"/>
|
||||||
<filter class="solar.EnglishPorterFilterFactory"/>
|
<filter class="solr.EnglishPorterFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
<analyzer type="query">
|
<analyzer type="query">
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
|
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
|
||||||
<filter class="solar.LowerCaseFilterFactory"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
<filter class="solar.StopFilterFactory"/>
|
<filter class="solr.StopFilterFactory"/>
|
||||||
<filter class="solar.EnglishPorterFilterFactory"/>
|
<filter class="solr.EnglishPorterFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
|
|
||||||
<!-- more flexible in matching skus, but more chance of a false match -->
|
<!-- more flexible in matching skus, but more chance of a false match -->
|
||||||
<fieldtype name="skutype1" class="solar.TextField">
|
<fieldtype name="skutype1" class="solr.TextField">
|
||||||
<analyzer type="index">
|
<analyzer type="index">
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
||||||
<filter class="solar.LowerCaseFilterFactory"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
<analyzer type="query">
|
<analyzer type="query">
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
||||||
<filter class="solar.LowerCaseFilterFactory"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
|
|
||||||
<!-- less flexible in matching skus, but less chance of a false match -->
|
<!-- less flexible in matching skus, but less chance of a false match -->
|
||||||
<fieldtype name="skutype2" class="solar.TextField">
|
<fieldtype name="skutype2" class="solr.TextField">
|
||||||
<analyzer type="index">
|
<analyzer type="index">
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
||||||
<filter class="solar.LowerCaseFilterFactory"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
<analyzer type="query">
|
<analyzer type="query">
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
||||||
<filter class="solar.LowerCaseFilterFactory"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
|
|
||||||
<!-- less flexible in matching skus, but less chance of a false match -->
|
<!-- less flexible in matching skus, but less chance of a false match -->
|
||||||
<fieldtype name="syn" class="solar.TextField">
|
<fieldtype name="syn" class="solr.TextField">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter name="syn" class="solar.SynonymFilterFactory" synonyms="synonyms.txt"/>
|
<filter name="syn" class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
|
|
||||||
<fieldtype name="unstored" class="solar.StrField" indexed="true" stored="false"/>
|
<fieldtype name="unstored" class="solr.StrField" indexed="true" stored="false"/>
|
||||||
|
|
||||||
|
|
||||||
<fieldtype name="textgap" class="solar.TextField" multiValued="true" positionIncrementGap="100">
|
<fieldtype name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
<tokenizer class="solar.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||||
<filter class="solar.LowerCaseFilterFactory"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue