Upcoming changes to modernize search REST APIs

I’m not sure, but I suspect that recent work on the search API may have resulted in some unexpected changes in behavior.

We are receiving reports of customers who are getting empty/zero results for simple CQL searches like
type in (page) and space = “CAM” order by title asc
For a space w/ key CAM. They know there are pages in that space that they have access to and the search returns an empty result.

I could not reproduce that on my instance but while investigating I ran into odd behavior for searching for spaces on the Space Directory page. For example, I have a space “Ture Space” and it is found if I type “Ture” or “Ture Space” into the filter input but if I type “Ture S” it is NOT found. I thought that the Space Directory search used to work but maybe it didn’t?
From the Network tab in my browser dev tools I can watch the search API work (and fail?).

Trying to find “Ture Space” by typing “Ture S” into the filter:

https:///wiki/rest/spacedirectory/1/search?query=Ture+S+OR+Ture+S*&status=current&limit=24&start=0&_=1595605…

That search finds nothing:
{“results”:[],“start”:0,“limit”:24,“size”:0,"_links":{“base”:"https://…

This search finds the “Ture Space”:
https:///wiki/rest/spacedirectory/1/search?query=Ture+Space+OR+Ture+Space*&status=current&limit=24&start=0&_=159560…

2 Likes