Menu

#22 Unicode/HTML entities not indexed correctly for search

open
Database (4)
4
2011-02-09
2011-02-09
No

When indexing a record for search HTML entities and non-ascii unicode characters are treated like punctuation and stripped out (partially in the case of HTML entities). When storing into the database, HTML entities should be converted to unicode (except for html(short) formtypes), and unicode characters should not be stripped treated as punctuation during indexing.

Discussion

  • James Dominy

    James Dominy - 2011-02-09

    Also, in the light of Bug #3053050 (search term synonym feature request), unicode characters should have their English names as synonyms to facilitate searching on a standard US keyboard with ease, e.g. searching for "alpha one" or "α one" should yield identical results

     
  • James Dominy

    James Dominy - 2011-04-06

    It seems the right way to do this is to html_entity_decode the incoming string before splitting using mb_split("\W"). NB: the html_entity_decode is for search indexing only, it isn't used to process data before being committed to the database

     

Log in to post a comment.

Monday.com Logo