bioinformatics-ua / dicoogle

Dicoogle - Open Source PACS
http://www.dicoogle.com/
GNU General Public License v3.0
447 stars 132 forks source link

Expose unindex a file as a web service. #38

Closed bastiao closed 9 years ago

bastiao commented 9 years ago

Expose the un-index feature through the web service. It was available in version 0.5 and now it is not available anymore. It needs to be re-implemented.

Requested by Smirnov Denis.

Enet4 commented 9 years ago

I took a quick shot at the issue, and there you have it in #39. I figured there would be no need to make something too crafty, since the API plugin interfaces could be improved as well (and unindexing is no exception).

On the other hand, this feature will only work if the plugins' unindex operation are implemented. Both the Lucene and CBIR plugins do not implement this method and will throw on invocation. The web service was guarded from runtime exceptions, but I would support making stricter contracts on our plugin interfaces (that we will hopefully achieve with #11).