Skip to content

Commit

Permalink
Merge pull request #195 from marblestation/comment_pubnote_not_omit
Browse files Browse the repository at this point in the history
Updated schema: comment+pubnote will not omit positions
  • Loading branch information
marblestation committed Nov 29, 2022
2 parents 960d907 + 53995be commit f185ff0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions contrib/examples/adsabs/server/solr/collection1/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
at the beginning, then you should also review the code inside: AqpAdsabsExpandAuthorSearchProcessor.normalizeAuthorName() -->

<analyzer type="query">
<!-- <filter class="org.apache.solr.analysis.DiagnoseFilterFactory" msg="author_query"/> -->
<tokenizer class="solr.KeywordTokenizerFactory" />
<!-- deal with natural order queries (this is used only at query time) -->
<filter
Expand Down Expand Up @@ -779,7 +780,7 @@
<tokenizer class="solr.KeywordTokenizerFactory" />
<filter class="solr.LowerCaseFilterFactory" />
<filter class="solr.TrimFilterFactory" />
<!--<filter class="org.apache.solr.analysis.DiagnoseFilterFactory" msg="query"/> -->
<!-- <filter class="org.apache.solr.analysis.DiagnoseFilterFactory" msg="query"/> -->
</analyzer>
</fieldType>

Expand Down Expand Up @@ -880,6 +881,8 @@
<fieldType name="affiliation_tokens" class="solr.TextField"
positionIncrementGap="100">
<analyzer type="index">
<!-- <filter class="org.apache.solr.analysis.DiagnoseFilterFactory" msg="searcher"/> -->

<charFilter class="solr.HTMLStripCharFilterFactory" />

<!-- tokenize on | or / -->
Expand Down Expand Up @@ -1418,12 +1421,10 @@
stored="true" omitNorms="true" />

<field name="comment" type="ads_text" indexed="true"
stored="true" multiValued="true" omitNorms="true"
omitTermFreqAndPositions="true" />
stored="true" multiValued="true" omitNorms="true" />

<field name="pubnote" type="ads_text" indexed="true"
stored="true" multiValued="true" omitNorms="true"
omitTermFreqAndPositions="true" />
stored="true" multiValued="true" omitNorms="true" />

<field name="copyright" type="affiliation_text" indexed="true"
stored="true" omitNorms="true" />
Expand Down

0 comments on commit f185ff0

Please sign in to comment.