non case sensitive search
Stephen Lime
steve.lime at dnr.state.mn.us
Fri Aug 18 06:56:06 PDT 2000
Not with mapserver directly. The lack of functionality on the attribute
search is intentional at this point. There are much better tools available
for that type of processing that can easily be integrated with the
mapserver.
Preprocessing the data before sending it is another option. Who knows
what someone might type so some scrubbing of the search term is ALWAYS
a good idea. Javascript can be used to turn a users string into a case
insensitive regular expression without too much trouble.
Steve
Stephen Lime
Internet Applications Analyst
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> Ma <marin at here.is> 08/09/00 05:21AM >>>
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