Skip to content

Commit 83bccd2

Browse files
committed
Added uat; the reviews() operator is kept the same for now
1 parent d7fa516 commit 83bccd2

File tree

1 file changed

+43
-2
lines changed
  • contrib/examples/adsabs/server/solr/collection1/conf

1 file changed

+43
-2
lines changed

contrib/examples/adsabs/server/solr/collection1/conf/schema.xml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,47 @@
872872
</analyzer>
873873
</fieldType>
874874

875+
876+
<!-- test: this is a copy of affiliation_token
877+
the test is in TestAdsabsTypeAffiliationTokens -->
878+
<fieldType name="uat_tokens" class="solr.TextField"
879+
positionIncrementGap="100">
880+
<analyzer type="index">
881+
<charFilter class="solr.HTMLStripCharFilterFactory"/>
882+
883+
<!-- tokenize on | or / -->
884+
<tokenizer class="solr.PatternTokenizerFactory" pattern="[\:]"
885+
group="-1" />
886+
<filter class="solr.WordDelimiterFilterFactory"
887+
generateWordParts="1"
888+
generateNumberParts="0"
889+
splitOnCaseChange="0"
890+
splitOnNumerics="0"
891+
catenateWords="0"
892+
catenateNumbers="0"
893+
catenateAll="0"
894+
preserveOriginal="1"
895+
stemEnglishPossessive="0"
896+
types="wdafftypes.txt"
897+
/>
898+
<filter class="solr.LowerCaseFilterFactory" />
899+
<filter class="solr.TrimFilterFactory" />
900+
</analyzer>
901+
<analyzer type="query">
902+
<charFilter class="solr.HTMLStripCharFilterFactory"/>
903+
<tokenizer class="solr.PatternTokenizerFactory" pattern="[\/\:]"
904+
group="-1" />
905+
<filter class="org.apache.lucene.analysis.synonym.NewSynonymFilterFactory"
906+
synonyms="aff_id.synonyms"
907+
ignoreCase="true"
908+
expand="true"
909+
format="semicolon"
910+
tokenizerFactory="solr.KeywordTokenizerFactory"
911+
inclOrig="true" />
912+
<filter class="solr.LowerCaseFilterFactory" />
913+
<filter class="solr.TrimFilterFactory" />
914+
</analyzer>
915+
</fieldType>
875916

876917

877918

@@ -1262,8 +1303,8 @@
12621303
<field name="aff_raw" type="affiliation_text" indexed="true" stored="true"
12631304
omitNorms="true" multiValued="true" />
12641305

1265-
<! -- for Unified Astronomy Thesaurus -->
1266-
<field name="uat" type="affiliation_tokens" indexed="true" stored="true"
1306+
<!-- for Unified Astronomy Thesaurus -->
1307+
<field name="uat" type="uat_tokens" indexed="true" stored="true"
12671308
multiValued="true" omitNorms="true"/>
12681309

12691310

0 commit comments

Comments
 (0)