Web service API

How to use PageSeeder's Web service API

group autocomplete

/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 terms.yesstring
fieldsComma-separated list of index fields to look for terms in.nostringspstitle,pscontent
max-termsThe maximum number of terms to return.nointeger20

Permission

Permissions requirements to be updated.

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