You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Kayak28 <ka...@gmail.com> on 2020/05/01 03:28:24 UTC

ManagedSynonymFilter

Hello, Community:

I have a simple question about a managed resources and managed synonyms.

I use ManagedSynonymGraphFilter and its managed resource is named as
english.
I do put several synonyms from URL below.

Now I want to delete all of the registered synonyms at one command.
I thought that the following URL could be the command to delete all.

curl -X DELETE "http://localhost:8983/solr/mycore/schema/analysis/stopwords/english"


However, Solr gives me an error.

{

  "responseHeader":{

    "status":403,

    "QTime":0},

  "error":{

    "metadata":[

      "error-class","org.apache.solr.common.SolrException",

      "root-error-class","org.apache.solr.common.SolrException"],

    "msg":"Cannot delete managed resource /schema/analysis/synonyms/english
as it is being used by 1 Solr components",

    "code":403}}

And here is my questions:
- Is there any way to delete all registered synonyms at one API call?
- does  "components" refer to? Is that one field that contains a managed
synonym filter?

Sincerely,
Kaya Ota

-- 

Sincerely,
Kaya
github: https://github.com/28kayak