Skip to content

Commit

Permalink
Nosugg (#17)
Browse files Browse the repository at this point in the history
* Remove suggested fields from Solr config
  • Loading branch information
mlooney authored Dec 10, 2020
1 parent fc064a5 commit 866826b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
11 changes: 1 addition & 10 deletions solr/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,8 @@
<dynamicField name="*_bbox" type="bbox" stored="true" indexed="true" />


<!-- suggest and spelling -->
<!-- spelling -->
<dynamicField name="*spell" type="textSpell" indexed="true" stored="false" multiValued="true" />
<dynamicField name="*suggest" type="textSuggest" indexed="true" stored="false" multiValued="true" />

<!-- you must define copyField source and dest fields explicity or schemaBrowser doesn't work -->
<field name="all_text_timv" type="text" stored="false" indexed="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true"/>
Expand All @@ -210,14 +209,6 @@
<copyField source="*_ssim" dest="all_text_timv" maxChars="3000"/>
<copyField source="*_si" dest="all_text_timv" maxChars="3000"/>

<!-- The below are the Blacklight defaults for the suggest field. Trying to limit fileds added
to get more relevant results -->
<!-- <copyField source="*_tsim" dest="suggest"/>
<copyField source="*_tesim" dest="suggest"/>
<copyField source="*_ssim" dest="suggest"/>
<copyField source="*_si" dest="suggest"/> -->
<copyField source="title_tesim" dest="suggest" maxChars="1000"/>
<copyField source="creator_tesim" dest="suggest" maxChars="1000"/>

<!-- TODO: Look into if these are actually being used. -->
<copyField source="*_tsim" dest="spell"/>
Expand Down
20 changes: 0 additions & 20 deletions solr/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,26 +164,6 @@
</lst>
</searchComponent>

<searchComponent name="suggest" class="solr.SuggestComponent">
<lst name="suggester">
<str name="name">mySuggester</str>
<str name="lookupImpl">FuzzyLookupFactory</str>
<str name="suggestAnalyzerFieldType">textSuggest</str>
<str name="buildOnCommit">true</str>
<str name="field">suggest</str>
</lst>
</searchComponent>

<requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
<lst name="defaults">
<str name="suggest">true</str>
<str name="suggest.count">5</str>
<str name="suggest.dictionary">mySuggester</str>
</lst>
<arr name="components">
<str>suggest</str>
</arr>
</requestHandler>

<requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" />

Expand Down

0 comments on commit 866826b

Please sign in to comment.