Searches

Searches

Pozi’s Search offers users several options for searching for features and locations on the map.

  • Standard
  • Custom
  • Preconfigured

Standard

Any layer that is enabled for WFS and queryable (and not configured to be hidden in the layer panel) is automatically available as a search option. Each such layer is listed in the Search drop-down list under ‘All searchable layers’. No special configuration is required to enable these layers as search options.


When a user selects a standard search, they can type in text to match any field in that layer. Alternatively, users can click the Advanced button to access Pozi’s table view for further search and filter options.


If you want to prevent a vector layer appearing as a standard search, you can set the layer to not selectable/identifiable.

QGIS > Project Properties > Data Sources > Layer Capabilities > Identifiable > untick

Doing this prevents the layer from being selectable and also prevents the layer appearing as a search option.

(Note: there is a layer option in QGIS called ‘Searchable’ that can be set to false, but this setting is not passed from QGIS to Pozi and doesn’t prevent the layer from appearing in Pozi’s search drop-down list.)

Custom

Custom searches are designed for searching within individual fields in large datasets.

Note

Typical datasets that are enabled for WFS and visible in the layer panel are automatically available as a standard search (see above). Before configuring a layer as a custom search, check that it isn’t already available as a standard search.

A large dataset such as a municipal property layer may not be available to use as a standard search. Its size means that it’s not practical to load in the browser in full. As such, large datasets are configured to be hidden from the layer panel, and Pozi doesn’t make them available as standard search options.

Instead, you can configure these layers with a custom search, which enables users to search within specified fields.

Prerequisites:

  • The layer must be enabled for WFS
  • The layer must be hidden in the layer panel

You can configure any of the layer’s fields to be searchable (using the searchFields keyword). Each field you specify will show up as a separate search item in the drop-down list.


Custom search

Configuration

In this example, we’ll use the Property layer which is configured as hidden in the layer panel. We’ll use the searchFields keyword to enable the Property layer to be searchable by multiple fields, separated by semicolons.

Layer Properties > QGIS Server > Keyword list
showInLayerControl=false, searchFields=polygon_nu;land_id;pi_parcel

This configuration exposes the polygon_nu, land_id and pi_parcel fields as search options. If the fields are configured in QGIS with a user-friendly alias, Pozi will use the alias when showing the search item in the drop-down list.

Note

Layers configured with parent=Whats Here are also available to use as a custom search as long as they are configured with showInLayerControl=false.

Custom search options appear in the Search drop-down list above the default standard layers. Users can select the search option for their desired field, and start typing to search. Pozi displays the matching records from that field, and when the user selects the target record, Pozi will zoom to the feature and display its details in the Info Panel.

Preconfigured

Your Pozi site may include one or more preconfigured searches that were included in your site’s initial installation. These typically include Address and other search services provided by external providers.

Preconfigured search options might include:

  • Geocode Earth
  • HERE
  • government web services

If you require any changes to these searches, contact your Pozi support provider.

Last updated on