Hi,<br>I am having a problem with the search tool after i configure.<br>I am getting the error. Any help ???<br><br>"Geomoose <b>Item Query Service</b><br>
<br>
No results found for your query!"<br><br><i>this is the layer on mapfile</i><br>LAYER<br> NAME county<br> CONNECTIONTYPE postgis<br> CONNECTION "dbname=wrma_new host=localhost port=5432 user=postgres password=mogima12"<br>
DATA 'the_geom FROM county using unique oid using srid = 4326'<br> STATUS on<br> TYPE POLYGON<br> LABELITEM 'countyname'<br> LABELMAXSCALE 6000000<br> <br> <br>
<br> CLASS<br> NAME 'county' <br> STYLE<br> WIDTH 0.5 <br> OUTLINECOLOR 0 0 0<br> END<br> LABEL<br> TYPE TRUETYPE<br> FONT vera_sans<br>
SIZE 5<br> ANTIALIAS TRUE<br> COLOR 0 0 0<br> OUTLINECOLOR 254 254 200<br> BUFFER 1<br> MINFEATURESIZE auto<br> PARTIALS FALSE<br>
POSITION cc<br> END <br><br> <br> END<br><br><br><br> METADATA<br> # drill-down identify service record.<br> 'identify_record' 'templates/identify.html'<br>
<br> # query.php / "Search Parcels" functionality.<br> 'itemquery' 'templates/search_result.html'<br> 'itemquery-filter' '/.*[qstring].*/i' <br>
'qstring_validation_pattern' '.'<br> <br> # Feature reports are stored in the conf/feature_report directory.<br> 'feature_report' 'parcel.xml'<br>
<br> 'select_record' 'templates/select_result.html'<br> 'select_header' 'templates/select_header.html'<br> 'popups' 'parcels_popup.html'<br>
END<br> <br> TOLERANCE 3<br> <br> END<br><br><i>my search service on mapbook.xml</i><br><br><service name="search_parcels" title="Search"><br> <url>php/query.php</url><br>
<step type="input"><br> <input type="hidden" name="highlight" value="true"/><br> <input type="hidden" name="mode" value="search"/><br>
<br> <input type="hidden" name="layer0" value="county/county"/><br> <input type="hidden" name="template0" value="itemquery"/><br>
<br> <input type="select" name="fieldname0" title="Search By:"><br> <option value="countyname">countyname</option><br> <option value="basinname">basinname</option><br>
</input><br> <input type="select" name="comparitor0" title="That: "><br> <option value="like-icase">Contains</option><br>
<option value="right-like-icase">Begins With</option><br> <option value="eq-str">Matches Exactly</option><br> </input><br> <input type="user" name="value0" title=""/><br>
<br> <br> <br> </step><br> </service><br><br><i>and my search.html</i><br><!-- MapServer Template --><br><a id="gm-parcel-[countyname]" class='sprite-control sprite-control-find-selected' style="padding-left: 22px" parcel-shape="[shpxy]" href="javascript:GeoMOOSE.zoomToPointsList(dojo.byId('gm-parcel-[countyname]').getAttribute('parcel-shape'), 'EPSG:4326');">[countyname]</a><br/><br>
[basinname]<br/><br><br/><br>