Web service API

How to use PageSeeder's Web service API

autocomplete group

/groups/{group}/autocomplete [GET]

com.pageseeder.search.AutoComplete

Description

Autocomplete the specified term in the group.

This service returns the list of terms that complete the specified prefix.

Auto-complete configuration

The auto-complete function has been pre-configured to match terms in the following index fields:

  • pstitle
  • psfilename
  • pscontent
  • psdocid

To use the auto-complete on a specific field, use Service: /groups/{group}/autocomplete/{field} [GET] instead.

Parameters

NameDescriptionRequiredTypeDefault value
termThe term to autocomplete, effectively a prefix for possible termsyesstring
max-termsThe maximum number of terms to returnnointeger > 020

Permission

Undocumented permissions requirements.

Response

This service returns the following XML:

<similar-terms term="[term]">
  <term field="[index field name]"
        text="[matching similar term]" />
  <term field="[index field name]"
        text="[matching similar term]" />
  ...
</similar-terms>

Error handling

No specific errors expected for this service.

Created on , last edited on