Skip to main content

The 'Suggest' Call

01/04/2026

The PoolParty Extractor offers a functionality to search for concepts within a project. The method used here is called 'suggest' and requires the parameters 'language', 'projectId' and 'searchString' for the actual search text.

The search text is matched to all (SKOS) labels in the thesaurus and all the matching concepts are returned with the most relevant matches first.

Now enter the following request in the address bar of your browser.

Request

{{url}}/extractor/api/suggest?language=en&projectId={{project}}&searchString=rasp

The score depends on the following conditions:

  • which label is matched (prefLabel > altLabel > hiddenLabel),

  • where in the label it happens (beginning of label > beginning of a word within the label that is not the first word > substring match within a label) and

  • how many times the search string matches any label of a concept (more matches > less matches).

The result contains information on which of the labels was matched ('matchingLabel') and the part of the label where the match occurred ('highlights').

This call returns the following:

This function is often used to implement auto-complete functionalities in applications and web pages, where users type in a text field and are supposed to select a concept from the thesaurus. Since this functionality is index-based and does not directly query the database of the project, it is quite fast and works well for such applications.