<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [TOC] > [手冊](http://www.postgres.cn/docs/9.3.4/functions-textsearch.html) ## 概述 基于 pg9.x ## 文本搜索函數和操作符 |操作符|描述|例子|結果| |---|---|---|---| |@@|tsvector匹配tsquery嗎?|to_tsvector('fat cats ate rats') @@ to_tsquery('cat & rat')|t| |@@@|@@的已廢棄同義詞|to_tsvector('fat cats ate rats') @@@ to_tsquery('cat & rat')|t| |`||`|連接tsvector|'a:1 b:2'::tsvector `||` 'c:1 d:2 b:3'::tsvector|'a':1 'b':2,5 'c':3 'd':4| |&&|將tsquery用 AND 連接起來|'fat `|` rat'::tsquery && 'cat'::tsquery |`( 'fat' | 'rat' ) & 'cat'`| |`||`|將tsquery用 OR 連接起來|'fat `|` rat'::tsquery `||` 'cat'::tsquery|`( 'fat' | 'rat' )| 'cat'`| |!!|對一個tsquery取反|`!! 'cat'::tsquery`|`!'cat'`| |@>|tsquery包含另一個?|'cat'::tsquery @> 'cat & rat'::tsquery|f| |<@|tsquery被包含?|'cat'::tsquery <@ 'cat & rat'::tsquery|t| ## 文本搜索函數 |函數|返回類型|描述|例子|結果| |---|---|---|---|---| |get_current_ts_config()|regconfig|獲得默認文本搜索配置|get_current_ts_config()|english| |length(tsvector)|integer|tsvector中的詞位數|length('fat:2,4 cat:3 rat:5A'::tsvector)|3| |numnode(tsquery)|integer|tsquery中詞位外加操作符的數目|numnode('(fat & rat) `|` cat'::tsquery)|5| |plainto_tsquery([ config regconfig , ] query text)|tsquery|產生tsquery但忽略標點符號|plainto_tsquery('english', 'The Fat Rats')|'fat' & 'rat'| |querytree(query tsquery)|text|獲得一個tsquery的可索引部分|querytree('foo & ! bar'::tsquery)|'foo'| |setweight(tsvector, "char")|tsvector|為tsvector的每一個元素分配權重|setweight('fat:2,4 cat:3 rat:5B'::tsvector, 'A')|'cat':3A 'fat':2A,4A 'rat':5A| |strip(tsvector)|tsvector|從tsvector中移除位置和權重|strip('fat:2,4 cat:3 rat:5A'::tsvector)|'cat' 'fat' 'rat'| |to_tsquery([ config regconfig , ] query text)|tsquery|規范化詞并轉換成tsquery|to_tsquery('english', 'The & Fat & Rats')|'fat' & 'rat'| |to_tsvector([ config regconfig , ] document text)|tsvector|縮減文檔文本成tsvector|to_tsvector('english', 'The Fat Rats')|'fat':2 'rat':3| |ts_headline([ config regconfig, ] document text, query tsquery [, options text ])|text|顯示一個查詢匹配|ts_headline('x y z', 'z'::tsquery)|x y <b>z</b>| |ts_rank([ weights float4[], ] vector tsvector, query tsquery [, normalization integer ])|float4|為查詢排名文檔|ts_rank(textsearch, query)|0.818| |ts_rank_cd([ weights float4[], ] vector tsvector, query tsquery [, normalization integer ])|float4|使用覆蓋密度為查詢排名文檔|ts_rank_cd('{0.1, 0.2, 0.4, 1.0}', textsearch, query)|2.01317| |ts_rewrite(query tsquery, target tsquery, substitute tsquery)|tsquery|在查詢內用 substitute 替換 target|ts_rewrite('a & b'::tsquery, 'a'::tsquery, 'foo`|`bar'::tsquery)|'b' & ( 'foo' `|` 'bar' )| |ts_rewrite(query tsquery, select text)|tsquery|使用來自一個SELECT的目標和替換者進行替換|SELECT ts_rewrite('a & b'::tsquery, 'SELECT t,s FROM aliases')|'b' & ( 'foo' `|` 'bar' )| |tsvector_update_trigger()|trigger|用于自動tsvector列更新的觸發器函數|CREATE TRIGGER ... tsvector_update_trigger(tsvcol, 'pg_catalog.swedish', title, body)|| |tsvector_update_trigger_column()|trigger|用于自動tsvector列更新的觸發器函數|CREATE TRIGGER ... tsvector_update_trigger_column(tsvcol, configcol, title, body)||
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看