whosonfirst/whosonfirst-www-spelunker

Facet by language code(s)

Closed this issue · 5 comments

Specifically we want the ability filter for things with language x but also the ability to filter for things without language x.

So: We should keep a hard-coded list of languages that we want to "negate" by and then just add them, where appropriate, as UI elements (rather than ES results data).

This is blocked on:

I don't think we need to do any new or special indexing hoohah in: https://github.com/whosonfirst/py-mapzen-whosonfirst-search/blob/master/mapzen/whosonfirst/search/__init__.py

Super cool, the == is working for me on prod :)

But =! (errr, !=) doesn't seem to work, I get a 500 error? I tried English, German, and a few others.

https://whosonfirst.mapzen.com/spelunker/id/102191575/descendants/?exclude=nullisland&translations=deu&translations=!eng

screen shot 2017-07-07 at 14 15 44

It's not supporting multiple translations correctly – I will file a separate ticket:

https://whosonfirst.dev.mapzen.com/spelunker/id/102191575/descendants/?exclude=nullisland&translations=!eng <-- works

Rad! (Didn't realize it was 2 levels of language deep!)