0
假設我想搜索「瘋狂的麥克斯」,我只想要結果,其中'最大'跟隨'瘋狂'。那就是:PostgreSQL是否支持全文搜索短語
Mad Max is a good movie. ==> matched!
Max is not mad in the movie. ===> not matched.
看起來它是文件中沒有提到的東西。我錯過了什麼嗎?
假設我想搜索「瘋狂的麥克斯」,我只想要結果,其中'最大'跟隨'瘋狂'。那就是:PostgreSQL是否支持全文搜索短語
Mad Max is a good movie. ==> matched!
Max is not mad in the movie. ===> not matched.
看起來它是文件中沒有提到的東西。我錯過了什麼嗎?
供以後參考。 https://www.postgresql.org/docs/current/static/release-9-6.html又見這裏:與剛剛發佈的9.6版添加
SELECT to_tsvector('fatal error') @@ to_tsquery('fatal <-> error');
?column?
----------
t
SELECT to_tsvector('error is not fatal') @@ to_tsquery('fatal <-> error');
?column?
----------
f
https://www.postgresql.org/docs/9.6/static/textsearch-intro.html#TEXTSEARCH-MATCHING
詞組搜索支持:http://stackoverflow.com/a/25007405/330315 –
太棒了!我正在查看9.5文檔。感謝@a_horse_with_no_name – Innerpeacer