/apps
endpoint.Import Data with the REST API
?echo=false
to the URL.Be sure to set the content type header properly for the content being sent. Some frequently used content types are:application/json
, application/xml
application/pdf
application/vnd.openxmlformats-officedocument.wordprocessingml.document
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
application/vnd.vnd.openxmlformats-officedocument.presentationml.presentation
$FUSION_HOME/apps/solr-dist/example/exampledocs
you can find a few sample documents. This example uses one of these, books.json
.To push JSON data to an index profile under an app:books.json
, enter the following, substituting your values for username, password, and index profile name:
\*:*
.author
and name
.books.json
. To delete “The Lightning Thief” and “The Sea of Monsters” from the index, use their id values in the JSON file.The del-json-data.json
file to delete the two books:?echo=false
can be used to turn off the response to the terminal.https://FUSION_HOST:FUSION_PORT/api/index-pipelines/INDEX_PIPELINE/collections/COLLECTION_NAME/index?parserId=PARSER
.If you do not specify a parser, and you are indexing outside of an app (https://FUSION_HOST:FUSION_PORT/api/index-pipelines/...
), then the _system
parser is used.If you do not specify a parser, and you are indexing in an app context (https://FUSION_HOST:FUSION_PORT/api/apps/APP_NAME/index-pipelines/...
), then the parser with the same name as the app is used.