search - Preserving some characters when using to_tsvector in PostgreSQL 9.3 -


i need process strings "hello world @mention #hashtag" , index them searching using postgresql. need treat @mention , #hashtag specially.

the following produces tsvector:

select to_tsvector('hello world @mention #hashtag') 

but output looks this:

"'a':4 'hashtag':5 'hello':1 'mention':3 'world':2" 

what see "@" preserved in front of 'mention' , # in front of 'hashtag'. there way me using postgresql ?

i'm not sure tsearch right solution use case. tsearch @ full-text search, sounds want relational data. can parse data in application , create tag/user relationships #hashtags , @mentions?


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -