Fusion Server

Version 4.1
How To
Documentation
    Learn More

      Stopwords API

      Table of Contents
      These endpoints are deprecated.

      Examples

      Update the stop words list with a new list of stop words:

      REQUEST

      curl -u user:pass -X PUT -H 'Content-type: application/json' -d '["a", "and", "of", "the"]' http://fusion-host:8764/api/stopwords/docs

      RESPONSE

      None.

      List the current stop words list:

      REQUEST

      curl -u user:pass http://fusion-host:8764/api/stopwords/docs

      RESPONSE

      [ "a", "and", "of", "the" ]

      Upload a stop words file:

      REQUEST

      curl -u user:pass -X PUT --form file=@stopwords.txt http://fusion-host:8764/api/stopwords/docs

      RESPONSE

      None.

      Download a stop words list & save it as a file named "stopwords.txt":

      REQUEST

      curl -H "Accept: application/octet-stream" http://fusion-host:8764/api/stopwords/docs > stopwords.txt

      RESPONSE

      None.