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. If no prefixed terms are found it returns similar terms.

Parameters

NameDescriptionRequiredTypeDefault value
termThe term to autocomplete, effectively a prefix for possible termsyesstring
fieldsComma separated list of index fields to look for terms innostringspstitle,pscontent
max-termsThe maximum number of terms to returnnointeger20

Permission

Undocumented permissions requirements.

Response

Example XML output:

<autocomplete term="test">
  <term text="test1" prefix="true"/>
  <term text="test2" prefix="true"/>
  <term text="testable" prefix="true"/>
  <term text="tested" prefix="true"/>
  ...
</autocomplete>

Error Handling

No specific errors expected for this service.

Created on , last edited on