Anchored searches: remove unwarranted slack increase. The anchor term should behave like a normal one for slack computations
This commit is contained in:
parent
e2ec06a612
commit
d3d6394652
@ -644,7 +644,6 @@ void SearchDataClauseSimple::processPhraseOrNear(
|
||||
|
||||
if (mods & Rcl::SearchDataClause::SDCM_ANCHORSTART) {
|
||||
orqueries.push_back(Xapian::Query(prefix + start_of_field_term));
|
||||
slack++;
|
||||
}
|
||||
|
||||
// Go through the list and perform stem/wildcard expansion for each element
|
||||
@ -691,7 +690,6 @@ void SearchDataClauseSimple::processPhraseOrNear(
|
||||
|
||||
if (mods & Rcl::SearchDataClause::SDCM_ANCHOREND) {
|
||||
orqueries.push_back(Xapian::Query(prefix + end_of_field_term));
|
||||
slack++;
|
||||
}
|
||||
|
||||
// Generate an appropriate PHRASE/NEAR query with adjusted slack
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user