Steve,<br>&nbsp; I added a filer like this in my mapfile<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FILTER &quot;name_hutment_dweller_souindics @@ &#39;(GPN)|(TKRM)&#39;::tsquery&quot;<br>&nbsp; and I generated png from mapfile using shp2img. I can see matching polygins displayed in the image, That means postGIS is processing the query correctly. Is it the queryByAttributes which is making mistake then?
<br>&nbsp;&nbsp; <br><br>regards,<br><br><div><span class="gmail_quote">On 2/18/07, <b class="gmail_sendername">Steve Lime</b> &lt;<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
MapServer or MapScript passes the query string directly on to the<br>PostGIS driver so<br>it&#39;s likely there the problem lies (if there is one). What happens if<br>you set a FILTER<br>in the map file using that operator and use shp2img? That might help in
<br>debugging<br>this since queryByAttributes simply resets the layer filter temporarily.<br><br>Steve<br><br>&gt;&gt;&gt; Swapnil Hajare &lt;<a href="mailto:dreamil@GMAIL.COM">dreamil@GMAIL.COM</a>&gt; 02/16/07 10:14 PM &gt;&gt;&gt;
<br>Hi list,<br>&nbsp;&nbsp;first greetings to the list.<br>&nbsp;&nbsp;I am using mapserver 4.8.3 (ubuntu edgy package) with postgis-pgsql<br>8.1<br>and php5-mapscript.<br>&nbsp;&nbsp;I am trying to implement full text search engine for Marathi-<br>Devanagari
<br>text (mr_IN) using tsearch2 extension of pgsql. In my map, I am<br>providing a<br>search interface (which is based on kamap &amp; mapscript), to type text in<br>Marathi and search it in my postgis layer.&nbsp;&nbsp;For string comparison in
<br>queryByAttributes, I get results when I use ~* operator. But I don&#39;t get<br>any<br>results when I try to use @@ operator. is it that this operator is not<br>supported by mapscript? I thought anything supported by pgsql, should be
<br>available in mapscript also. Please guide me on this.<br><br>regards,<br><br><br>--<br>Swapnil Hajare<br><br></blockquote></div><br><br clear="all"><br>-- <br>Swapnil Hajare