REST API /search examples

Hello, please help with examples of how to get the correct result with some keywords in the search request, which separator to use to specify some keywords for search.

/wikis/{wikiName}/search?q={keywords}[[&scope={name,content,title,objects}...]&start=n][&number=n][&orderField=field&order={asc,desc}][distinct={true,false}][&prettyNames={true,false}]

when i specifying keywords separated by a space - returns an empty result

Hello, we face the same problem here.
Did you manage to search for multiple keywords?

The REST endpoint mentioned used the “keywords” as part of a single LIKE clause. I’ve improved the doc at https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI?viewer=changes&rev1=103.1&rev2=104.1&

Thus you cannot search for multiple keywords.

You can however use the /wikis/{wikiName}/query?q={query} REST end point to perform any query you wish.

Hope it helps

1 Like

Thanks!