[Mapbender-users] I can not adjust SearchRouter. Please help

Den ronin856 at mail.ru
Fri Nov 11 04:07:54 PST 2016


Good day!

I'm new to Mapbender. Learn how to create customize and publish applications
but can not configure the search for their data.

There search_db database. It table in which one field with values - picckad.
The values of the numbers but the field type is Text. (I tried to give the
field of type Integer)
The database was created in PgAdmin and data loaded into it from a SHP file
through Qgis

config.yml Files and parameters.yml look like

config.yml

doctrine:
    
    dbal:
        
    default_connection: default
        
    connections:
            
       default:
                
          driver:   %database_driver%
                
          host:     %database_host%
                
          port:     %database_port%
                
          dbname:   %database_name%
                
          path:     %database_path%
                
          user:     %database_user%
                
          password: %database_password%
                
          charset:  UTF8
                
          logging: %kernel.debug%
                
          profiling: %kernel.debug%
            
       search_db:
                
         driver:   %database2_driver%
                
         host:     %database2_host%
                
         port:     %database2_port%
                
         dbname:   %database2_name%
                
         path:     %database2_path%
                
         user:     %database2_user%
                
         password: %database2_password%
                
         charset:  UTF8
                
         logging: %kernel.debug%
                
         profiling: %kernel.debug%

parameters.yml

parameters:
    
           database_driver:   pdo_pgsql
    
           database_host:     localhost
    
           database_port:     5432
    
           database_name:     mapbender3
    
           database_path:     ~
    
           database_user:     postgres
    
           database_password: n36rp21
    
    
           database2_driver:  pdo_pgsql
    
           database2_host:    localhost
    
           database2_port:    5432
    
           database2_name:    search_db
    
           database2_path:     ~
    
           database2_user:    postgres
    
           database2_password: n36rp21


route-configuration in the configuration area

class: Mapbender\CoreBundle\Component\SQLSearchEngine
class_options:
    connection: search_db
    relation: picckad (это таблица public.)
    attributes:
        - picnum
    geometry_attribute: geom
form:
    picnum:
        type: text
        options:
            required: true
        compare: exact
results:
    view: table
    count: true
    headers:
        picnum: Name
    callback:
        event: click
        options:
            buffer: 10
            minScale: null
            maxScale: null

The result is - No results found.

The debugger Google hrome found this:

Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and
will be removed in a future version. To avoid this warning set
'always_populate_raw_post_data' to '-1' in php.ini and use the php://input
stream instead. in Unknown on line 0

Warning: Cannot modify header information - headers already sent in Unknown
on line 0

Mapbender version 3.0.5.3

Failed to start the session because headers have already been sent by "" at
line 0.



What am I doing wrong?



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/I-can-not-adjust-SearchRouter-Please-help-tp5295321.html
Sent from the mapbender-users mailing list archive at Nabble.com.


More information about the Mapbender_users mailing list