[
https://issues.apache.org/jira/browse/SOLR-6394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14136805#comment-14136805
]
Ramana commented on SOLR-6394:
------------------------------
HI Mathias,
I am looking into this issue.
Regarding deleting all synonyms,
curl -XDELETE
http://localhost:8983/solr/collection1/schema/analysis/synonyms/english/
actually tries to delete the managed resource.
May be we can do something like below
curl -X DELETE
"http://localhost:8983/solr/collection1/schema/analysis/synonyms/english/ALL"
curl -X DELETE
"http://localhost:8983/solr/collection1/schema/analysis/synonyms/english/DeleteALL"
Based on key "ALL" or "DeleteAll" we can clear the map contents.
Even for overwrite, we need to somehow know that user is trying to overwrite
the contents instead of append.
Please let me know your thoughts.
Thanks,
Ramana.
> Managed Synonyms should support deleting all synonyms or replacing a single
> one
> -------------------------------------------------------------------------------
>
> Key: SOLR-6394
> URL: https://issues.apache.org/jira/browse/SOLR-6394
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 4.9
> Reporter: Mathias H.
> Priority: Minor
> Labels: difficulty-medium, impact-medium, managed, rest, synonyms
>
> Currently it is only possible to add synonyms and deleting single synonyms.
> If you need to delete all synonyms you have to get the list and then sending
> an delete request to every single synonym. Also you can't overwrite a synonym
> but only append it.
> It would be more convenient to have additional possibilities:
> Deleting all synonyms
> curl -XDELETE
> http://localhost:8983/solr/collection1/schema/analysis/synonyms/english/
> Overwriting a single synonym
> curl -XPUT
> http://localhost:8983/solr/collection1/schema/analysis/synonyms/english/apple
> Add a synonym / append to an existing synonym
> curl -XPOST
> http://localhost:8983/solr/collection1/schema/analysis/synonyms/english/apple
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]