For example, if I search "hello" in this forum, all it finds is users, and when I hit <Enter>, no posts come up.
I looked at the resource (api) called, and i saw this:
(I made it into multiple lines for better readability)
{
"links": {
"first": "https:\/\/discuss.flarum.org\/api\/discussions?filter%5Bq%5D=hello\u0026page%5Blimit%5D=3\u0026include=relevantPosts%2CrelevantPosts.discussion%2CrelevantPosts.user"
},
"data": [ ]
}
Ok, so no posts where found. But, when I make an HTTP request to that exact same url using HTTPie, this is what is got:
Note: I show only 1-2 posts because the JSON data returned was 2940 lines long ?
{
// A LOT OF STUFF, total 2934 lines
"links": {
"first": "https://discuss.flarum.org/api/discussions?filter%5Bq%5D=hellou0026page%5Blimit%5D%3D3u0026include%3DrelevantPosts%2CrelevantPosts.discussion%2CrelevantPosts.user",
"next": "https://discuss.flarum.org/api/discussions?filter%5Bq%5D=hellou0026page%5Blimit%5D%3D3u0026include%3DrelevantPosts%2CrelevantPosts.discussion%2CrelevantPosts.user&page%5Boffset%5D=20"
}
}
I do not know why that happens. The only reason I could think of was that Flarum was stopping the request too quickly, although I don't know how.
When I made the HTTP request, it took about 10-15s to return the content. Flarum takes less than 1 second to search.
I hope we can all agree the search is not stable at all ?