I want to create a Full Text Search that accepts emojis on the query, or another type of index to search on text. For example, I have this text: Playa πππ΄ @CobolIquique h'
and PostgreSQL parse it weirdly on the emojis.
Debugging, Using SELECT * FROM ts_debug('english','Playa πππ΄ @CobolIquique h');
I have the following result:
And I don't know why the token is considered an space symbol. If I debug the parser SELECT * FROM ts_parse('default', 'Playa πππ΄ @CobolIquique h');
I just get the same tokens and with the tokens types ts_token_type('default')
there is not a emoji type (or something similar). So, How can I create a parser to split the string correctly with the spaces and doesn't consider emojis as blank spaces? or How can I create a text index that can use emojis on the queries?
CREATE TEXT SEARCH PARSER
andALTER TEXT SEARCH PARSER
? postgresql.org/docs/9.6/static/sql-createtsparser.html β Sublunary