Bugzilla 简明教程
Bugzilla - Custom Search
自定义搜索是高级搜索的扩展功能。它基于以下原理:“没有找到您在上方寻找的内容?即高级搜索中”。此区域允许使用 AND、AND、OR 和其他更复杂的搜索。
Custom Search is an extended feature of the Advanced Search. It works on the principle of – “Did not find what you are looking for above? I.e. in advanced search”. This area allows words like AND, OR, and other more complex searches.
自定义搜索的导航如下:搜索 → 高级搜索 → 下拉并单击自定义搜索,如下图所示。
Navigation of custom search is as follows: Search → Advanced Search → Go Down and click on Custom Search as depicted in the following screenshot.

Customizing the Custom Search
自定义搜索将一个选定的 field 与一个指定的 value 的定义的 operator 进行比较。有可能通过高级搜索选项中的标准字段复制太多此类内容。但是,用户可以结合“匹配任何”或“匹配全部”等选项,使用括号进行组合,并优先构造复杂查询的搜索。
Custom Search compares a selected field with a defined operator for a specified value. It is possible that too much of this could be reproduced using the standard fields in an Advanced Search option. However, the user can combine options like "Match ANY" or "Match ALL", using parentheses for combining and priority to construct searches of complex queries.

自定义搜索的每一行(称为“术语”)中都有三个字段 -
There are three fields in each row (known as a "term") of a custom search −
-
Field − The name of the field being searched.
-
Operator − The comparison operator.
-
Value − The value to which the field is being compared.
可用的 fields 的列表包含为缺陷定义的所有字段。它包括任何自定义字段,以及其他一些字段,例如指派人真实姓名、自缺陷更改以来天数、自指派人触碰以来时间和其他可能对进一步搜索有用的内容。
The list of the available fields contains all the fields defined for a bug. It includes any custom fields, as well as some other fields like the Assignee Real Name, Days since Bug Changed, Time since Assignee Touched and other things, which might be useful to search further.

一系列可用的 operators 。有各种字符串匹配操作(包括正则表达式)、数字比较(也适用于日期)和搜索缺陷的更改信息。
There is a wide range of operators available. There are various string-matching operations (including regular expressions), numerical comparisons (which also work for dates) and to search for change information of a bug.
当字段更改时,它从/至的内容,以及执行更改者。这里有特殊操作符 is empty(为空)和 is not empty(不为空),因为 Bugzilla 无法区分故意留白的字段和意外留白的字段。
When a field changed, what it changed from or to, and who did it. There are special operators is empty and is not empty, because Bugzilla cannot tell the difference between a value field left blank on purpose and one left blank by accident.

用户可以有 n 行数来定义操作符、值和字段。它们上方有一个下拉框,定义如何使用搜索来关联这些行。
The user can have n number of rows to define operators, values and fields. There is a dropdown box above them, which defines how these rows are related with the search.
分别匹配所有下列内容、分别匹配下列任何内容或针对同一字段匹配所有以下内容是下拉框中列出的三个选项。第一和第三选项之间的差异可以用注释搜索来描述。如果搜索为 −
Match ALL of the following separately, Match ANY of the following separately or Match ALL of the following against the same field are three options listed in the dropdown. The difference between the first and the third can be described with a comment search. If a search is −
-
Comment contains the string – “Bug”
-
Comment contains the string – “issue”
在“分别匹配所有以下内容”下方,搜索将返回其中的错误,其中“错误”出现在一个注释中,而“问题”在相同或任何其他注释中。
Under the “match all of the following separately”, the search would return bugs, where a "Bug" appeared in one comment can be an "issue" in the same or any other comment.
在“针对同一字段匹配所有以下内容”下方,两个字符串都需要出现在完全相同的注释中,即它将选择在相同的注释中同时包含错误和问题字样的错误。
Under the “match all of the following against the same field”, both strings would need to occur in exactly the same comment, i.e. it will select a bug having both Bug and issue words in the same comment.

通过单击显示高级功能,将显示更多功能或功能以使用复杂而具体的搜索。用户可以通过选中复选框来否定任何一行。它还可以通过括号对搜索行进行分组,以确定如何关联不同的搜索词。用户可以选择使用 ALL (即 AND)或 ANY (即 OR)将它们组合在一起。
By clicking on Show Advanced features, more capabilities or features appear to use complex and specific search. The user can negate any row by checking a checkbox. It can also group lines of the search with parentheses to determine how different search terms are related. The user gets the choice of combining them using ALL (i.e. AND) or ANY (i.e. OR).
