Changescreen: correct topic search query
There are two problems with the current code: 1) the OR operator must be in capital letters 2) the OR operator is not a prefix operator, but an infix operator. Change-Id: Icf91285096bd65753948c55578f86d9e80a4d13b Signed-off-by: Stefan Beller <sbeller@google.com>
This commit is contained in:
parent
8fea317a86
commit
e945e54c7b
@ -131,8 +131,8 @@ public class PageLinks {
|
|||||||
case DRAFT:
|
case DRAFT:
|
||||||
case MERGED:
|
case MERGED:
|
||||||
case NEW:
|
case NEW:
|
||||||
return toChangeQuery(op("topic", topic) + " or(" +
|
return toChangeQuery(op("topic", topic) + " (" +
|
||||||
status(Status.NEW) + " " +
|
status(Status.NEW) + " OR " +
|
||||||
status(Status.MERGED) + ")");
|
status(Status.MERGED) + ")");
|
||||||
}
|
}
|
||||||
return toChangeQuery(status(status) + " " + op("topic", topic));
|
return toChangeQuery(status(status) + " " + op("topic", topic));
|
||||||
|
Loading…
Reference in New Issue
Block a user