ozwillo / ozwillo-portal

Ozwillo's user portal
https://www.ozwillo.com
GNU Affero General Public License v3.0
1 stars 2 forks source link

Search geo jurisdiction on more fields : zipcode, parent geo area name... #253

Open mdutoo opened 9 years ago

mdutoo commented 9 years ago

Search is now only done on (cached, tokenized) geo:name.

Later, we could also allow search on:

Don't do that before agreeing on the future of the current cache archi #236

Note that before, search was done on odisp:name, which allowed search on zipcode. But this has been changed because when users entered a country (ex. "france") as search input, it came with a heavy performance cost since ALL french geo areas (which all contain "France" in their display name) had to be scanned and sorted (in order to put the actual France geo area on top, otherwise it could never be found).

mdutoo commented 9 years ago

Be careful, the workflow of selection of zipcode then city or conversely isn't simple either from a functional point of view or from a technical one (jsx select2).