actually write back the reversed final phrase when reversing the query

This commit is contained in:
Sarah Hoffmann
2015-02-04 20:29:38 +01:00
parent 43b925b258
commit 0f84371748
2 changed files with 20 additions and 14 deletions

View File

@@ -1054,7 +1054,7 @@
if (sizeof($aPhrases) > 1)
{
$aFinalPhrase = end($aPhrases);
$aFinalPhrase['wordsets'] = getInverseWordSets($aFinalPhrase['words'], 0);
$aPhrases[sizeof($aPhrases)-1]['wordsets'] = getInverseWordSets($aFinalPhrase['words'], 0);
}
$aReverseGroupedSearches = $this->getGroupedSearches($aSearches, null, $aPhrases, $aValidTokens, $aWordFrequencyScores, false);