I get different search behavior between back-end and API.
Following request is replayed with curl (logged from Android app):
$ curl -d '{“excerpt_length”:“256”,“op”:“getHeadlines”,“search_mode”:"",“offset”:“0”,“view_mode”:“all_articles”,“skip”:“0”,“match_on”:“both”,“sid”:“xxxxxxxxx”,“feed_id”:"-4",“include_nested”:“true”,“search”:“Crusader Kings”,“show_content”:“true”,“show_excerpt”:“true”,“limit”:“15”,“order_by”:“default”,“has_sandbox”:“true”,“include_attachments”:“true”,“include_header”:“true”} ’ mywebsite
Returns 0 results :
{“seq”:0,“status”:0,“content”:[{“id”:-4,“first_id”:0,“is_cat”:false},[]]}
However, I get many results using webui. Following request is sent to backend.php :
{
“op”: “feeds”,
“method”: “view”,
“feed”: “-4”,
“view_mode”: “all_articles”,
“order_by”: “default”,
“query”: “Crusader+Kings”,
“search_language”: “Simple”,
“m”: “ForceUpdate”,
“cat”: “false”,
“csrf_token”: “xxxx”
}
I can’t see what explains this behavior, all searches are done on “All articles” (feed id -4).
Search is not fully broken on API, as it returns results on some other keywords.
tt-rss version (including git commit id):
20.09-486f1d84e
Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:
Arch Linux 5.4.59-1-lts, PHP Version 7.4.9, PostgreSQL 12.3