Skip to content

Search Requirements

Gilbert Jeiziner edited this page Sep 12, 2013 · 8 revisions

Here's a quick summary of a discussion between Dave, Cédric and Gilbert.

We should make sure that our indices correspond to these requirements.

All-in-one Search

Represents the search box in RE3.

Location section

Swissnames

  • Don't depend on current bounding box (searching for bern while zoomed into Zürich would still return Bern (the city)), no quad_index related search)
  • Ranking is the same as in RE2
  • One difference to RE2: in RE2, we found matches only at start of words (prefix), now we support machtes inside of words(infix)
  • Minimal searching term is 2 letters (min_infix_len = 2)

Feature search

  • Infix = 2
  • Depends on current bounding box (quadindex and geoanchor)
  • Always for ALL layers which are searchable for this topic
  • Mark results specially in the location section (as in RE2, wich orange background)
  • Ranking, especially against Swissnames tbd

Map Info section

  • Don't depend on current bounding box
  • infix = 2
  • Ranking tbd

Object information / Feature Tree

This replaces the select-by-rectangle of RE2. It is in the Tools menu (no input box, but only result display)

Note that this is different than the feature search inside the all-in-one search.

  • Include layers that are queryable and added to the map
  • Depends on current bounding box (quadindex and geoanchor)
  • There's no need to search by term. We only need the geo search for this (we don't need to index details...), so there's no need for infix (only prefix for quadindex)

What this means for our indices

Swissnames

  • no quadindex
  • detail with infix 2

Layers

  • no quadindex
  • detail with infix 2

Features on searchable layers

  • quadindex with prefix 1
  • detail with infix 2

Features on queryable layers

  • quadindex with prefix 1
  • no detail needed

Of course, features on layers which are both queryable and searchable are to be treated as defined for searchable layers.

References

Infix, Prefix and enable-start

Geo Search