Skip to content

Commit

Permalink
add an exact text field to the solr index
Browse files Browse the repository at this point in the history
also update the text_ws field type to index things as lower case
  • Loading branch information
struan committed Dec 2, 2021
1 parent fab5b3e commit 3a85106
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@

<field name="text" type="text_en" indexed="true" stored="true" multiValued="false" />
<field name="council_name" type="text_en" indexed="true" stored="true" multiValued="false" />
<field name="text_exact" type="text_ws" stored="true" multiValued="false" />
<copyField source="text" dest="text_exact"/>

<uniqueKey>id</uniqueKey>

Expand Down Expand Up @@ -381,6 +383,7 @@
<fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>

Expand Down

0 comments on commit 3a85106

Please sign in to comment.