Rebuild Text Index Procedure

From Blazegraph
Revision as of 10:55, 2 March 2016 by Maria Krokhaleva (Talk | contribs) (Created page with "==REST API Method== Request to rebuild text index or create a new one if it does not exist for a data set identified by '''NAMESPACE'''. <pre> POST /bigdata/namespace/NAMESPAC...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

REST API Method

Request to rebuild text index or create a new one if it does not exist for a data set identified by NAMESPACE.

POST /bigdata/namespace/NAMESPACE/textIndex
parameter definition
force-index-create when true full text index will be created if not exists. Default value is false.

Examples:

  • Rebuild an existing text index for a namespace identified by 'someNamespace':
curl -X POST http://localhost:9999/bigdata/namespace/someNamespace/textIndex 

If the text index not exists in the namespace then 'Error 500 Could not rebuild full text index, because it is not enabled' will be received from the server in a response.

  • Create text index in an existing namespace:
curl -X POST http://localhost:9999/bigdata/namespace/someNamespace/textIndex?force-index-create=true 

Using Workbench