[Bug] SearchServer API: Missing results for municipality "Rueyres"

27 views
Skip to first unread message

Rémi Fongaufier

unread,
Feb 11, 2026, 11:13:22 AMFeb 11
to GeoAdminCh API
Dear Geo Admin team,

I believe I've encountered a bug with the SearchServer searchText function. The municipality of Rueyres (VD) does not appear in search results, despite being a valid municipality listed on the Canton de Vaud website (https://www.vd.ch/communes-vaudoises-et-districts).

Here is a summary of my findings:

1. Searching for "Morges" returns the expected result:
   GET api3.geo.admin.ch/rest/services/api/SearchServer?searchText=Morges&type=locations&origins=district
   → ✅ One result as expected.

2. Searching for "Rueyres" with the same parameters returns no results:
   GET api3.geo.admin.ch/rest/services/api/SearchServer?searchText=Rueyres&type=locations&origins=district
   → ❌ Empty result.

3. Using a feature search for "Rueyres" only returns Rueyres-Treyfayes (Fribourg), not Rueyres (Vaud):
   GET api3.geo.admin.ch/rest/services/api/SearchServer?features=ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill&type=featuresearch&searchText=rueyres
   → ❌ Only returns Rueyres-Treyfayes (FR).

4. However, searching by OFS number (5534) does return the correct municipality:
   GET api3.geo.admin.ch/rest/services/api/SearchServer?features=ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill&type=featuresearch&searchText=5534
   → ✅ Correct result.

This suggests the municipality exists in the dataset but is not being matched by its name in text-based searches.

Could you please look into this? Happy to provide any additional details if needed.

Thank you for your help.

Best Regards,
Rémi Fongaufier
Software Engineer - Romande Energie

GeoAdminCh API

unread,
Feb 12, 2026, 3:21:29 AMFeb 12
to GeoAdminCh API
Dear Rémi

Thank you for your message and bringing this issue to our attention

We will be looking at it and come back to you as soon as we can.

Best regards,
Helpdesk federal geoportal

GeoAdminCh API

unread,
Feb 16, 2026, 1:51:56 AMFeb 16
to GeoAdminCh API
Dear Rémi,

Thank you for your patience.

We have checked your GET requests and we noticed, that you have been using  origins=district and therefore searched within the district boundaries where Rueyres does not exist.
In order to search for municipalities, you must use  origins=gg25.

The correct GET requests would therefore be:

We hope this could help you.
For more information, we gladly refer you to our new technical documentation - *.geo.admin.ch
And specifically all around the search service - Search | *.geo.admin.ch

Best regards,
Helpdesk federal geoportal

Reply all
Reply to author
Forward
0 new messages