Hi,
I think I could solve it. My error was not adding “components” in the
requesthandler as an array.
original:
> {
> "add-requesthandler": {
> "name": "/suggest",
> "class": "solr.SearchHandler",
> "defaults": {
> "suggest": "true",
> "rows": "10"
> },
> "components": "suggest"
> }
> }
correct:
> {
> "add-requesthandler": {
> "name": "/suggest",
> "class": "solr.SearchHandler",
> "defaults": {
> "suggest": "true",
> "rows": "10"
> },
> "components": [“suggest"]
> }
> }
Best,
Vanya
> On 24 Aug 2022, at 11:56, Vanya Brucker <[email protected]> wrote:
>
> 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
> <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
> <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/
> <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