1PMSEARCHTEXTSUGGEST(3)     Library Functions Manual     PMSEARCHTEXTSUGGEST(3)
2
3
4

NAME

6       pmSearchTextSuggest  -  search  for  suggestions  of metric or instance
7       names using PCP search services
8

C SYNOPSIS

10       #include <pcp/pmwebapi.h>
11
12       int pmSearchTextSuggest(pmSearchSettings *settings, pmSearchTextRequest
13       *request, void *arg)
14
15       cc ... -lpcp_web
16

DESCRIPTION

18       Executes fulltext search for names of metrics or instances suitable for
19       autocompletition, specified by request:
20
21       query
22            Query string that will be used to search.
23
24       count
25            Limits number of results. Defaults to 10.
26
27       Words with length less than 2 are omitted.
28
29       This search matches terms inside entity name  that  either  have  query
30       prefix  or  are  within  Levenshtein  distance of 1, with former having
31       slightly higher priority than the latter.
32
33       Each entity matched by the request above will be passed to  on_text_re‐
34       sult callback provided by settings.
35

DIAGNOSTICS

37       This  function  always  returns zero on success.  On failure a negative
38       PMAPI error code is returned.
39

SEE ALSO

41       pmproxy(1),  pmlogger(1),   pmsearch(1),   redis-server(1),   pmSearch‐
42       Setup(3), PMAPI(3) and PMWEBAPI(3).
43
44
45
46Performance Co-Pilot                  PCP               PMSEARCHTEXTSUGGEST(3)
Impressum