This is difficult because we now support multiple locations. Previously we just had a text field in the entity (i.e. entity.location = 'New York, NY'), but now we have arrays of objects:(entity.locations = [{'locality': 'New York', country:'US'}, {'locality': 'Los Angeles', country:'US'}]), and the bootstrap-ui typeahead does not support filtering by nested arrays. We could pluck all localities from all entities into a unique set array, then search that too, then filter/hide entities by the selected location. That requires retooling of showing/hiding nodes.
This is difficult because we now support multiple locations. Previously we just had a text field in the entity (i.e.
entity.location = 'New York, NY'
), but now we have arrays of objects:(entity.locations = [{'locality': 'New York', country:'US'}, {'locality': 'Los Angeles', country:'US'}]
), and the bootstrap-ui typeahead does not support filtering by nested arrays. We could pluck all localities from all entities into a unique set array, then search that too, then filter/hide entities by the selected location. That requires retooling of showing/hiding nodes.