Problem with text search

39 views
Skip to first unread message

Miguel

unread,
Nov 20, 2018, 6:33:53 AM11/20/18
to Freesound API
Hi,
I am noticing a strange behaviour of the API.
I am getting always the same results with different queries.


From the web interface the results are different and relevant instead.

Best regards,
Miguel

Frederic Font Corbera

unread,
Nov 20, 2018, 6:40:58 AM11/20/18
to freeso...@googlegroups.com
Hi,

This is because “pattern” is no valid request parameter so you’re getting always all results. You should use “query” request parameter instead. See  

Cheers,


frederic

El dt, 20 nov 2018 a les 11:33 Miguel <miguel....@gmail.com> va escriure:
--

---
You received this message because you are subscribed to the Google Groups "Freesound API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to freesound-ap...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
Frederic Font
Music Technology Group
Universitat Pompeu Fabra

Freesound | www.freesound.org
Audio Commons | www.audiocommons.org

meghna...@gmail.com

unread,
Dec 17, 2018, 3:38:37 AM12/17/18
to Freesound API
I'm also getting the same results whenever I change the query, but this is only the case when I am on the second or later page

curl -X GET -H "Authorization: Token {{access_code}}" https://freesound.org/apiv2/search/text/?&query=whale&page=2

I seem to be getting results from /apiv2/search/text/?&query

For the first page, the results are fine

meghna...@gmail.com

unread,
Dec 17, 2018, 4:09:52 AM12/17/18
to Freesound API


How do I actually get results from page 2 for the whale keyword?

Frederic Font Corbera

unread,
Dec 19, 2018, 8:34:49 AM12/19/18
to freeso...@googlegroups.com
I guess this si the same CURL syntax issue as in https://groups.google.com/forum/#!topic/freesound-api/88Le4Vgolo8 right?

frederic

---
Frederic Font
Music Technology Group
Universitat Pompeu Fabra

Freesound | www.freesound.org
Audio Commons | www.audiocommons.org


meghna...@gmail.com

unread,
Dec 19, 2018, 8:41:16 AM12/19/18
to Freesound API
Yes it is. All resolved now.
Reply all
Reply to author
Forward
0 new messages