mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-27 10:43:02 +03:00
reduce search depth when splitting word sets
Too many out-of-memory conditions with the current algorithm.
This commit is contained in:
parent
0e613a362e
commit
c0b4411337
@ -55,7 +55,7 @@ function getWordSets($aWords, $iDepth)
|
||||
{
|
||||
$aResult = array(array(join(' ', $aWords)));
|
||||
$sFirstToken = '';
|
||||
if ($iDepth < 8) {
|
||||
if ($iDepth < 7) {
|
||||
while (sizeof($aWords) > 1) {
|
||||
$sWord = array_shift($aWords);
|
||||
$sFirstToken .= ($sFirstToken?' ':'').$sWord;
|
||||
|
Loading…
Reference in New Issue
Block a user