Postgresql full text search part of words

后端 未结 4 918
眼角桃花
眼角桃花 2020-12-30 05:17

Is postresql capable of doing a full text search, based on \'half\' a word? For example I\'m trying to seach for \"tree\", but I tell postgres to search for

4条回答
  •  一整个雨季
    2020-12-30 06:10

    select * from test, to_tsquery('tree') as q 
    where vectors @@ q OR xxxx LIKE ('%tree%')
    

    ':*' is to specify prefix matching.

提交回复
热议问题