Skip to content

Ask HN: HN Algolia API returns 400 for queries with points in numericFilters

1 pointeddyg2 comments
On HN

The HN search help page⁽¹⁾ still documents points>NUMBER as a supported filter, so hopefully this is an unintentional regression.

⁽¹⁾ https://hn.algolia.com/api

Comments

i hit the same 400 querying the algolia, a raw > in the query string is what does it, encode it as %3E and points>100 comes back fine for me right now. curl -G with --data-urlencode handles the escaping if youd rather not do it by hand

Thanks for the reply!

I went to make the change, and all the sudden it started working with “>” again (not URL encoded) so this appears to have been a transient issue.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.