SubmitWholeTopic: Use exact topic

Searching by topic is prefix based, which breaks the submitWholeTopic
feature as that relies on on searching by the exact topic.

This patch introduces 2 new fields, EXACT_TOPIC and FUZZY_TOPIC, which
will be used for these two different use cases. For grouping by topic
in the server (to show related changes in the same topic and for submitting
the whole topic) EXACT_TOPIC will be used, while FUZZY_TOPIC will be used
for the user search queries.

Renamed LEGACY_TOPIC to LEGACY_TOPIC2, and the current TOPIC
to LEGACY_TOPIC3, so it matches the numbers in ChangeField.java

Change-Id: Ie44608703aa28e1cf0423ac13dccf8e037d300b4
This commit is contained in:
Stefan Beller
2015-05-29 11:37:37 -07:00
parent a030a1beac
commit f89a959ad2
10 changed files with 205 additions and 40 deletions

View File

@@ -156,15 +156,20 @@ library] is used for evaluation of such patterns.
[[topic]]
topic:'TOPIC'::
+
Changes whose designated topic at upload was 'TOPIC'. This is
often combined with 'branch:' and 'project:' operators to select
all related changes in a series.
Changes whose designated topic contains 'TOPIC', using a full-text search.
+
If 'TOPIC' starts with `^` it matches topic names by regular
expression patterns. The
link:http://www.brics.dk/automaton/[dk.brics.automaton
library] is used for evaluation of such patterns.
[[exacttopic]]
exacttopic:'TOPIC'::
+
Changes whose designated topic matches 'TOPIC' exactly. This is
often combined with 'branch:' and 'project:' operators to select
all related changes in a series.
[[ref]]
ref:'REF'::
+