Re: [pmapper-users] Troubles with Search.xml / Problemas con Search.xml
Brought to you by:
arminburger
From: Armin B. <arm...@gm...> - 2009-03-25 18:37:09
|
Set a debug level of 3 and check the debug file (see docs), there should be something like Parameters for searchParams file: query.php->q_execAttributeQuery Array ( [layerName] => cities10000eu [layerType] => shape [firstFld] => NAME [qStr] => ( ( "[NAME]" =~ /(B|b)(E|e)(R|r)/ ) ) ) for wildcard="0" and Array ( [layerName] => cities10000eu [layerType] => shape [firstFld] => NAME [qStr] => ( ( "[NAME]" = "Berlin") ) ) for wildcard="2" Check the qStr definition by inserting it into the script /utils/test_query_string.php (adapt some parts), or set the value as a filter on the layer and see what you get. armin On 25/03/2009 18:38, Carlos Cuello wrote: > Hi! I'm using pmapper 3.2 and mapserver 5.0.3-3 over a GNU/Linux Debian 5 > (Lenny). > We have installed the ms4w package on a windows server 2003, and it's > working fine. > I've ported to the linux server described above all the files and everything > is working fine too (only a minor adjustements were neccesary), but i'm > having troubles with the search, because the only way that works and not > returns 0 results on the linux install is by modifying the search.xml file > and setting the wildcard = 2 (i saw this in another post of this list) but > this creates me the problem that the string which i type in the search field > must be exactly as it is on the data (i mean capitols letters, spaces, etc) > while on windows this is not necessary and the searchs work fine. > Can anybody tell me if you have this problem and how did you solve or work > around it? > At the bottom I add my search.xml file > Greetings > > Hola, estoy usando pmapper 3.2 y mapserver 5.0.3-3 sobre Debian 5 (Lenny) > GNU/Linux. > Tenemos instalado el paquete ms4w en un windows server 2003 y esta > funcionando bien. > Yo hice una "portación" al servidor linux descripto arriba de todos los > archivos y todo esta funcionando correctamente tambien (solo hizo falta > algunos ajustes menores), pero estoy teniendo problemas con la busqueda, > porque la unica forma que la aplicacion instalada sobre linux funciona y no > devuelve 0 resultados es modificando el search.xml y seteando la wildcard = > 2 (esto lo vi en otro post de esta lista y de ahi saque la idea) pero me > causa el problkema de tener que escribir perfectamente el campo de busqueda > (mayusculas, espacios, etc) cuando en windows eso no es necesario y la > busqueda funciona bien. > Alguien se topo con este problema y lo resolvio o encontro alguna forma de > saltearlo? > Al final va mi search.xml para que puedan ver si no es que falta algo > Saludos > > Carlos > > <?xml version='1.0'?> > <!-- <?xml-stylesheet href="style.xsl" type="text/xsl" ?> --> > > <searchlist version="1.0"> > > <dataroot>$</dataroot> > > <searchitem name="nomencpc" description="Parcela"> > <layer type="shape" name="Parcelas"> > <field type="s" name="PC" description="Parcela Ej.:1C000000206 > 007" wildcard="0" /> > </layer> > </searchitem> > > <searchitem name="Nombre" description="Calles"> > <layer type="shape" name="Calles"> > <field type="s" name="Nombre" description="Nombre de Calle" > wildcard="2" /> > </layer> > </searchitem> > > <searchitem name="Barrio" description="Barrio"> > <layer type="shape" name="Barrios"> > <field type="s" name="BARRIO" description="Nombre del Barrio" > wildcard="0" /> > </layer> > </searchitem> > </searchlist> > ------------------------------------------------------------------------------ > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users > |