Skip to end of banner
Go to start of banner

Asset Index Rest Services

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »




Re-index with "Index in the background" option

MethodPOST
URL/rest/jip-api/1.0/index/lucene/reindex.json


 Example Response. Click here to expand...

[
  {
    "jobName": "SnapBytes.Index.Checker",
    "lastExecutionTime": null,
    "lastExecutionTimeFormatted": null,
    "interval": 604800000,
    "jobState": {
      "totalRecords": 0,
      "processedRecords": 0,
      "lastProcessMessage": "",
      "abortPending": false,
      "running": false,
      "completedPercentage": 0
    },
    "running": false,
    "scheduled": true
  },
  {
    "jobName": "SnapBytes.Index.Builder",
    "lastExecutionTime": null,
    "lastExecutionTimeFormatted": null,
    "interval": 0,
    "jobState": {
      "totalRecords": 0,
      "processedRecords": 0,
      "lastProcessMessage": "",
      "abortPending": false,
      "running": true,
      "completedPercentage": 0
    },
    "running": false,
    "scheduled": true
  }
]


Re-index with "Delete all indexes and rebuild" option

MethodPOST
URL/rest/jip-api/1.0/index/lucene/rebuild.json
 Example Response. Click here to expand...

[ {
  "jobName" : "SnapBytes.Index.Checker",
  "lastExecutionTime" : null,
  "lastExecutionTimeFormatted" : null,
  "interval" : 604800000,
  "jobState" : {
    "totalRecords" : 0,
    "processedRecords" : 0,
    "lastProcessMessage" : "",
    "abortPending" : false,
    "running" : false,
    "completedPercentage" : 0
  },
  "running" : false,
  "scheduled" : true
}, {
  "jobName" : "SnapBytes.Index.Builder",
  "lastExecutionTime" : 1618825535956,
  "lastExecutionTimeFormatted" : "19/04/2021 10:45 AM",
  "interval" : 0,
  "jobState" : {
    "totalRecords" : 0,
    "processedRecords" : 0,
    "lastProcessMessage" : "",
    "abortPending" : false,
    "running" : false,
    "completedPercentage" : 0
  },
  "running" : false,
  "scheduled" : true
} ]


Re-index with "Delete all indexes and rebuild" option

MethodPOST
URL/rest/jip-api/1.0/index/lucene/rebuild.json

Index single asset

MethodGET
URL/rest/jip-api/1.0/index/doc/asset/{ASSET_ID}.json

Success response: Asset indexed.

  • No labels