mysociety / yournextrepresentative

A website for crowd-sourcing structured election candidate data
https://candidates.democracyclub.org.uk/
GNU Affero General Public License v3.0
56 stars 21 forks source link

Candidate search doesn't work for names with apostrophes #862

Closed janetmck closed 8 years ago

janetmck commented 8 years ago

A search from https://candidates.democracyclub.org.uk/search finds nothing for names with apostrophes in, e.g. "O'Brien" (should find e.g. https://candidates.democracyclub.org.uk/person/11568/keith-charles-obrien) and "O'Mara" (should find e.g. https://candidates.democracyclub.org.uk/person/19405/margi-omara).

This also applies to the automated search for duplicates when reviewing newly entered candidates, e.g. re-entering "Margi O'Mara" failed to pick up any possible duplicates. (Given that, when this issue is fixed it would be good to check all names with apostrophes in the DB for possible duplicates!)

duncanparkes commented 8 years ago

Has this been deployed on candidates.democracyclub yet? I just tried searching for "Mark O'Connor" and couldn't find him.

mhl commented 8 years ago

@duncanparkes It isn't in DC's master branch yet.