mirror of
https://github.com/yacy/yacy_search_server.git
synced 2026-10-25 05:54:15 +00:00
Correction of https://github.com/yacy/yacy_search_server/commit/d03e2c98ea6bd5701c8e8257174c439b9c006afb
Fix Conjunction.addOperator to do nothing if term is empty prevent to result in query string with repeated logical operator like "field:term AND AND field:term" possibliy causing out of mem in postprocessing_doublecontent
This commit is contained in:
1 parent
d03e2c98ea
commit
2a07799ad1
1 file changed
+1
-1
@@ -27,7 +27,7 @@ public abstract class AbstractOperations extends AbstractTerm implements Operati
|
||||
*/
|
||||
@Override
|
||||
public void addOperand(Term term) {
|
||||
if (term.toString().isEmpty()) {
|
||||
if (!term.toString().isEmpty()) {
|
||||
this.terms.add(term);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user