<html><body><div style="color:; background-color:; font-family:MS PGothic, sans-serif;font-size:12pt"><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;"><span>お返事、ありがとうございます。</span></div><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;"><span><br></span></div><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;"><span>こちらもツール(</span><span style="font-size: 12pt;">phpPgAdmin)のバージョンは同じ(</span><span style="font-size: 12pt;">phpPgAdmin-5.1-1.rhel6.noarch</span><span style="font-size: 12pt;">)です。</span></div><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;"><span style="font-size: 12pt;"><span style="font-size:
 12pt;">データベースにログインして、コマンドラインでsql文実行しても同じエラー出ているのでツールの</span>問題ではないと思いますね。</span></div><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;"><span><br></span></div><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;"><span>ちなみに、rpm -qaでgroonga関係出力は以下:</span></div><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;"><span><br></span></div><div><span><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;">groonga-libs-7.0.5-1.el6.x86_64</div><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;">groonga-release-1.3.0-1.noarch</div><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;"><br></div><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size:
 12pt;">もしかして、私が使っているリリースは<span style="font-size: 12pt;">「&amp;@~」オペレーターが入っているリリースではない、、、、このことでしょうか。</span></div><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;"><span style="font-size: 12pt;"><br></span></div><div style=""><span>https://pgroonga.github.io/ja/reference/operators/query.htmlにて、</span></div><div><span>「この演算子(@@のこと)は1.2.0から非推奨です。代わりに&amp;@~演算子を使ってください。」<br></span></div><div><span>↑の1.2.0というのは、xxx-release-1.2.0-xxxxのことでしょうか。</span></div><div><span><br></span></div><div><span>なら、</span><span style="font-size: 16px;">「&amp;@~」オペレーターが入っているはずでしょうね。</span></div><div><span style="font-size: 16px;">(現在</span><span style="font-size:
 16px;">groonga-release-</span><span style="font-size: 16px;">1.3.0-1使用中ですので)</span></div><div><span style="font-size: 16px;"><br></span></div><div>ちょっと分からなくなった。</div><div>週末入っているのでクリーンな環境作って、最初から<span style="font-size: 16px;">pgroonga_test/memoなど小規模でテストしてみたいと思います。</span></div><div><span style="font-size: 16px;"><br></span></div><div><span style="font-size: 16px;">で、次は</span><span style="font-size: 16px;">CREATE EXTENSION pgroongaのことですね。</span></div><div><span style="font-size: 16px;"><br></span></div><div><span style="font-size: 16px;">「select * from pg_extension」を実行すると以下の結果になります。</span></div></span></div><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;"><span><div style="font-size: 12pt;">testdb=&gt; select * from pg_extension;</div><div
 style="font-size: 12pt;">&nbsp;extname &nbsp;| extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition&nbsp;</div><div style="font-size: 12pt;">----------+----------+--------------+----------------+------------+-----------+--------------</div><div style="font-size: 12pt;">&nbsp;plpgsql &nbsp;| &nbsp; &nbsp; &nbsp; 10 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 11 | f &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| 1.0 &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |&nbsp;</div><div style="font-size: 12pt;">&nbsp;pgroonga | &nbsp; &nbsp; &nbsp; 10 | &nbsp; &nbsp; &nbsp; &nbsp; 2200 | f &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| 1.2.1 &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |&nbsp;</div><div style="font-size: 12pt;">(2 rows)</div><div style="font-size: 12pt;"><br></div><div style="font-size: 12pt;">↑を見るとextversion 1.2.1(※<span style="font-size: 12pt;">)で、やはり</span><span
 style="font-size: 12pt;">「&amp;@~」オペレーターは使えるはずですよね。</span></div><div style="font-size: 12pt;"><span style="font-size: 12pt;"><br></span></div><div style="font-size: 12pt;"><br></div><div style="font-size: 12pt;">他にお気づきなところありましたら、ぜひお願いします。</div><div style="font-size: 12pt;"><br></div><div style="font-size: 12pt;">以上です。</div><div style="font-size: 12pt;"><br></div><div style="font-size: 12pt;">(※):<span style="font-size: 12pt;">groonga-release-nnn-のバージョンとpgroonga(=pg_extension)のバージョンは別もんですね!</span></div><div style="font-size: 12pt;">少し見えて来ました。。。</div><div style="font-size: 12pt;"><span style="font-size: 12pt;"><br></span></div></span></div><div style="font-family: &quot;MS PGothic&quot;, sans-serif; font-size: 12pt;"><span><br></span></div><div style="font-family: &quot;MS PGothic&quot;,
 sans-serif; font-size: 12pt;"><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">    <div style="font-family: MS PGothic, sans-serif; font-size: 12pt;">        <div style="font-family: MS PGothic, sans-serif; font-size: 12pt;">            <div dir="ltr">            <font size="2" face="Arial">                ----- Original Message -----<br>                <b><span style="font-weight:bold;">From:</span></b> Kentaro Hayashi &lt;hayas****@clear*****&gt;<br>                <b><span style="font-weight: bold;">To:</span></b> groon****@lists*****                <br>                <b><span style="font-weight: bold;">Date:</span></b> 2017/8/3, Thu 13:27<br>                <b><span style="font-weight: bold;">Subject:</span></b> [groonga-dev,04426] Re: &amp;@~オペレーターのUndefined function: 7 ERROR: operator does not exist:エラー<br>            </font>            </div>        
    <br>林です。<br><br>On Wed, 2 Aug 2017 20:17:50 +0900 (JST)<br><a ymailto="mailto:s400t****@yahoo*****" href="mailto:s400t****@yahoo*****" target="_self">s400t****@yahoo*****</a> wrote:<br><br>&gt; お返事、ありがとうございます。<br>&gt; <br>&gt; &gt;(前のバージョンでできていたというのはちょっとよくわからないのですが。。。)<br>&gt; @@オペレーター使って、以前は検索出来ていたということです。<br>&gt; <br>&gt; か、<br>&gt; 今日また@@オペレーター使ってみたら、正常に検索出来ています。<br>&gt; <br>&gt; で、なんで&amp;@~オペレーターを使ったのか:<br>&gt; どこかで、「この演算子=@@のこと=は1.2.0から非推奨です。代わりに&amp;@~演算子を使ってください。」と書いていたので。<br>&gt; <br>&gt; 今日、@@オペレーターで正常に検索出来たのはbackward
 compatibilityのおかげでしょうか。<br>&gt; <br>&gt; 項目1 or 項目2検索で、いつかは「&amp;@~」オペレーターしか使えないのなら、今からでもそのオペレーターを使った方が良いでしょうと思って、試したのです。<br>&gt; <br><br>そうですね、そのほうがよいと思います。<br><br>&gt; 今日は、phpPgAdminコンソールのsql実行するところで、直接sql実行したました。<br>&gt; 林さんが書いてくださったサンプルのsql文ですが、bindValueなしで、<br>&gt; <br>&gt; SELECT * FROM memos WHERE target_col &amp;@~&nbsp;'東京 OR 大阪';<br>&gt; <br>&gt; <br>&gt; ↑を実行しました。<br>&gt; <br>&gt; 結果は前回と同じエラーです。<br>&gt; <br>&gt; エラー:<br>&gt; <br>&gt; ERROR:&nbsp; operator does not exist: text &amp;@~ unknown<br>&gt; LINE 1: SELECT * FROM memos&nbsp; WHERE target_col &amp;@~ '東京 OR 大阪'...
 ^<br>&gt; HINT:&nbsp; No operator matches the given name and argument type(s). You might need to add explicit type casts.<br><br>うーん不思議ですねぇ。手元では↑エラーにならないんですが。。。<br>(;が全角になっているのは直しましたけど。)<br><br>NG: SELECT * FROM memos WHERE target_col &amp;@~&nbsp;'東京 OR 大阪';<br>OK: SELECT * FROM memos WHERE target_col &amp;@~ '東京 OR 大阪';<br><br><br>ちなみに手元では以下のバージョンでためしました。<br>$ rpm -q phpPgAdmin<br>phpPgAdmin-5.1-1.rhel6.noarch<br><br><a href="http://pgroonga.github.io/ja/install/centos.html" target="_blank">http://pgroonga.github.io/ja/install/centos.html</a> で案内されている手順はエラーなく実行できているんですよね?<br><br>「作成したデータベースに接続し、CREATE EXTENSION pgroongaを実行します。<br>% sudo -u postgres -H psql -d pgroonga_test --command
 'CREATE EXTENSION pgroonga'」の部分です。<br><br>select * from pg_extension などとしてpgroongaがいれば正しくインストールできています。<br><br>-- <br>Kentaro Hayashi &lt;<a ymailto="mailto:hayas****@clear*****" href="mailto:hayas****@clear*****" target="_self">hayas****@clear*****</a>&gt;<br><br>_______________________________________________<br>groonga-dev mailing list<br><a ymailto="mailto:groon****@lists*****" href="mailto:groon****@lists*****" target="_self">groon****@lists*****</a><br><a href="http://lists.osdn.me/mailman/listinfo/groonga-dev" target="_blank">http://lists.osdn.me/mailman/listinfo/groonga-dev</a><br><br><br>        </div>    </div>    </blockquote></div>    </div></body></html>