Skip to main content

SEO API Reference

Module Information

Service Files:

  • Private: service/seo.js
  • Public: service/seo.js

Available Services: 2 Documented Services: 2


seo.create

Build a full-text search index for a granted document or image node. Checks the node filetype via source_granted() and triggers Document.buildIndex only for document or image types. Returns the node object if indexed, or an empty object if the filetype is not indexable.

PropertyValue
ScopeHub (requires hub context)
PermissionWrite (4)

Endpoint:

https://hostname/-/svc/seo.create

Parameters

No parameters

Returns

FieldTypeDescription
typeany-
descriptionany-
propertiesany-

Possible Errors

Error codes not documented


seo.find

Search indexed nodes using full-text keyword matching. Splits the search string on whitespace and common punctuation delimiters, then queries the seo_search stored procedure with the resulting word array. Returns an empty array immediately if the search string is blank. Results are paginated.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/seo.find

Parameters

ParameterTypeRequiredDefaultDescription
stringstringNo""-
pageintegerNo1-

Returns

FieldTypeDescription
typeany-
descriptionany-
itemsobject-
items.idstring-
items.filenamestring-
items.filetypestring-

Possible Errors

Error codes not documented


  • ACL System - Permission model
  • Service Routing - URL patterns
  • Error Handling - Error codes