Skip to content
faguim edited this page May 23, 2020 · 7 revisions

In order to enable exact match on solr:

  • Edit the field type text_lr1, through the schema API https://lucene.apache.org/solr/guide/6_6/schema-api.html. To achieve such work, the harena-asm's postman has a client end point POST replace field type2.
  • To step 1 work, it is necessary to load extra libs to the collection core3. It is achieved by adding the following code to the file data/{SOLR_CORE}/conf/solrconfig.xml:

<lib dir="/opt/solr-8.5.0/contrib/analysis-extras/lucene-libs/" /> <lib dir="/opt/solr-8.5.0/contrib/analysis-extras/lib/" />

  • Reindex the documents

1 or create a new one

2 this endpoint only edit a such field, to create a new one is necessary to create another endpoint

Clone this wiki locally