Hi, while testing search feature found that search method in discourse_api doesn’t work. It’s make requests to /search.json?term=x
but seems it’s wrong. The corrects ways is /search?search=x
or may be /search/query?term=x
right?
looks like the api gem is out of date, can you send through a PR change it over to /search/query
Hmmm, i’ve pushed some changes before, which allowed me to request topics by tags.
https://meta.discourse.org/t/the-official-discourse-tags-plugin-discourse-tagging/26482/29?u=oganer
By the way i can suggest this changes.
No wonder I couldn’t get it to return anything remotely useful
@techAPJ can you add to your list?
It looks like it has already been changed to /search/query
? But its still faulty, always returns {"grouped_search_result"=>nil}
Saerching via API is working fine for me. Just added this example search script and results are as expected…
Finally found the problem on my side, this is what I have to do to make it show something useful
client.search(“discourse”, q={} )