The set time limit for a search has been exceeded.

deals with geocoding and reverse geocoding

The set time limit for a search has been exceeded.

Postby Bernd Welter » Mon Jul 03, 2017 3:28 pm

Hi there

These days I was asked for the meaning of the following error message:

"The set time limit for a search has been exceeded. The result list is incomplete." errorCode="-4150"

The message appears in the context of a geocoding if the search requires more time than configured. It is not a simple HTTP timeout but a module timeout of the geocoding engine.
If it appears the engine usually has found several hits but it was a long lasting task which might be interrupted by the timeout and the result list may lack some of the hits.

The threshold for the timeout is defined in the native profile:
Among other properties here are three timeouts:

xml code
<?xml version="1.0" encoding="UTF-8"?>
<LocatingEngineParameters>
<SearchParameters>
[..] <Engine.CitySearchTimeout Value="7500" Type="long"/>
[..] <Engine.StreetSearchTimeout Value="7000" Type="long"/>
[..] <Engine.SuggestionSearchTimeout Value="1000" Type="long"/>
[..] </SearchParameters>
...
</LocatingEngineParameters>


If you increase the timeouts, the results might contain further hits but the response might take longer.
If you decrease the timeouts, the results might contain less hits but the response might take shorter.

It's a question of your preferences.

Best regards,
Bernd
Bernd Welter
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

https://www.youtube.com/channel/UCgkUli9yGf0gwTDdxbMZ-Kg
User avatar
Bernd Welter
Site Admin
 
Posts: 870
Joined: Mon Apr 14, 2014 10:28 am

Re: The set time limit for a search has been exceeded.

Postby bocajo » Tue Jul 04, 2017 7:13 am

Engine.CitySearchTimeout: Overall time in Milliseconds the search is allowed to run before it is aborted. The value -1 indicates that the time is not limited.
Engine.StreetSearchTimeout: Milliseconds the search is allowed to run before the street search starts. If this part of the search takes longer it is aborted. The value -1 indicates that the time is not limited.

The idea is that the xLocate is returning a least the city if a search takes to long.
Jochen Anderer
Senior Software Engineer
PTV GROUP GERMANY
bocajo
 
Posts: 22
Joined: Tue Mar 01, 2016 3:05 pm


Return to PTV xLocateServer