mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
Limit wordset combination explosion to 120 variants (1x2x3x4x5)
This commit is contained in:
@@ -631,8 +631,11 @@
|
|||||||
if ($bStructuredPhrases) $sPhraseType = $aPhraseTypes[$iPhrase];
|
if ($bStructuredPhrases) $sPhraseType = $aPhraseTypes[$iPhrase];
|
||||||
else $sPhraseType = '';
|
else $sPhraseType = '';
|
||||||
|
|
||||||
foreach($aPhrases[$iPhrase]['wordsets'] as $aWordset)
|
foreach($aPhrases[$iPhrase]['wordsets'] as $iWordSet => $aWordset)
|
||||||
{
|
{
|
||||||
|
// Too many permutations - too expensive
|
||||||
|
if ($iWordSet > 120) break;
|
||||||
|
|
||||||
$aWordsetSearches = $aSearches;
|
$aWordsetSearches = $aSearches;
|
||||||
|
|
||||||
// Add all words from this wordset
|
// Add all words from this wordset
|
||||||
|
|||||||
Reference in New Issue
Block a user