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
Post a Comment