Search for Concepts in a PoolParty Project
01/04/2026
The Extractor offers a functionality to search for concepts in a project.
The method 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.
Request
{{url}}/extractor/api/suggest?language=en&projectId={{project}}&searchString=raspThe score depends on the following conditions:
which label is matched (prefLabel > altLabel > hiddenLabel),
where in the label it happens (beginning of label > beginning a word in the label that is not the first word > substring match in a label) and
how many times the search string matches any label of a concept (more matches > less matches).
The result contains information about which of the labels was matched ('matchingLabel') and in which part of the label the match did happen ('highlights').
This functionality is often used to implement autocomplete functionalities in applications and web pages, where users type in a text field and should select a concept from the thesaurus. Because it is based on an index and does not query the database of the project directly, it is rather fast and works well for such applications.