Dear all,

I am new to Solr and am trying to add the Suggest Search Component 
<https://solr.apache.org/guide/solr/latest/query-guide/suggester.html#adding-the-suggest-search-component>.

My Solr 9.0.0 setup is as follows:

bin/solr start -e cloud  with _default config
Add the search component with a POST request to 
http://localhost:8983/api/collections/collection_name/config:

{
  "add-searchcomponent": {
    "name": "suggest",
    "class": "solr.SuggestComponent",
    "lookupImpl": "FuzzyLookupFactory",
    "dictionaryImpl": "DocumentDictionaryFactory",
    "field": "name",
    "suggestAnalyzerFieldType": "string",
    "buildOnStartup": "false"
  }
}

Until here everything is fine and I receive a responseHeader with status 0.

Add the request handler with a POST request to 
http://localhost:8983/api/collections/collection_name/config:

{
  "add-requesthandler": {
    "name": "/suggest",
    "class": "solr.SearchHandler",
    "defaults": {
      "suggest": "true",
      "rows": "10"
    },
    "components": "suggest"
  }
}

In step 3 I receive a responseHeader with status 500 and the following error 
message:
1 out of 2 the property overlay to be of version 4 within 30 seconds! Failed 
cores: [http://localhost:8983/solr/collection_name1_replica_n1/]
What am I doing wrong?

I have also posted my question to Stack Overflow, 
<https://stackoverflow.com/questions/73464458/cores-fail-when-trying-to-add-requesthandler-in-solr>
 but there have been close to no views up until now and so I thought I’d try it 
here.

I’m thankful for every help!

Best,

Vanya

Reply via email to