non case sensitive search

kenboss kenboss at dilbert.dnr.state.mn.us
Wed Aug 9 06:55:17 PDT 2000


Since you are taking your input from an html form, you don't really have any 
control over what people might type in there.  So your best bet is probably to 
use a bit of javascript to massage your users' input to a format that matches 
what's in the shapefile before the form is submitted.

--Ken

> Date: Wed, 09 Aug 2000 10:21:40 +0000
> From: Ma <marin at here.is>
> X-Accept-Language: Ahora vengo mama chola mama chola 
> MIME-Version: 1.0
> To: "mapserver-users at lists.gis.umn.edu" <mapserver-users at lists.gis.umn.edu>
> Subject: Re: non case sensitive search
> Content-Transfer-Encoding: 8bit
> 
> This syntax is not what I want and I don't think it is useful. Is there other
> way to perform search without matching the case?
> 
> ---
> Ma
> 
> 
> Stepan Kafka wrote:
> 
> > Use the syntax "(R|r)i" . (Somebody suggested itformerly.)
> >
> > Stepan
> >
> > > -----Pùvodní zpráva-----
> > > Od: owner-mapserver-users at lists.gis.umn.edu
> > > [mailto:owner-mapserver-users at lists.gis.umn.edu]za uživatele Ma
> > > Odesláno: 2. srpna 2000 19:04
> > > Komu: mapserver-users at lists.gis.umn.edu
> > > Pøedmìt: non case sensitive search
> > >
> > >
> > > Dear All,
> > >
> > > Trying to search via form like this:
> > > <...
> > > <input type="hidden" name="mode" value="itemnquery">
> > > <input type="hidden" name="qlayer" value="cities">
> > > <input type="hidden" name="item" value="NAME">
> > > <input type="TEXT" size="20" name="value" value="" ...
> > >
> > > but in the shape file the names of the cities starts with capital letter
> > >
> > > Example:
> > >
> > > Madrid
> > > Turin
> > > Paris
> > > Riga
> > >
> > > and if you search for "ri" - only first 3 will be listed, if you search
> > > for "Ri" only the last will be listed. My question is: How to perform
> > > search without matching the case?
> > >
> > > --
> > > Ma
> > >
> 




More information about the MapServer-users mailing list