matterial

Zurück zur Übersicht » REST - Document - Search

REST - Document - Search

REST-Interface

Search documents by query

URL
GET <application-url>/api/document/search

Query parameter

Produces

application/json
application/xml

com.matterial.mtr.api.object.SearchResult<Document>

Permission
Login

Sample
GET http://localhost:8080/mtr-backend/api/document/search?query=markdown&languageKey=de


Reindex all documents

Clears the document-part of the index and reindexes all documents for the current instance.
URL
PUT/POST <application-url>/api/document/search/reindexall

Permission
ADMINISTRATE_ALL

Sample
PUT http://localhost:8080/mtr-backend/api/document/search/reindexall


Search autocomplete

URL
GET <application-url>/api/document/search/autocomplete

Query parameter

Produces

application/json
application/xml

List<com.matterial.mtr.api.object.SearchAutocompleteSuggest>

Permission
Login

Sample
GET http://localhost:8080/mtr-backend/api/document/search/autocomplete


Index document

Reindexes one document by id.
URL
PUT/POST <application-url>/api/document/search/index/<documentId>

Path parameter

Produces

Permission
ADMINISTRATE_ALL

Sample
PUT http://localhost:8080/mtr-backend/api/document/search/index/5


Index document-language-version

Reindexes one document by language-version-id.
URL
PUT/POST <application-url>/api/document/search/index/<documentId>/version/<documentLanguageVersionId>

Path parameter

Produces

Permission
ADMINISTRATE_ALL

Sample
PUT http://localhost:8080/mtr-backend/api/document/search/index/5/version/32