{#- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -#} {% extends g.theme.master %} {% do g.register_forge_css('css/forge/hilite.css') %} {% do g.register_app_css('css/tracker.css') %} {% block head %} {% endblock %} {% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / Search help{% endblock %} {% block header %}Search help{% endblock %} {% block content%}

Searching for tickets

Searches use solr lucene query syntax. Use the following fields in tracker ticket searches:

Example searches

Any ticket that is not closed in the 1.0 milestone with "foo" in the title

!status:closed AND summary:foo* AND _milestone:1.0

Tickets with the label "foo" but not the label "bar":

labels:foo AND -labels:bar

Tickets assigned to or added by a user with the username "admin1" and the custom field "size" set to 2

(assigned_to_s:admin1 or reported_by_s:admin1) AND _size:2

The ticket has "foo" as the title or the body with a number lower than 50

(summary:foo or text:foo) AND ticket_num:[* TO 50]

Tickets last modified in April 2012

mod_date_dt:[2012-04-01T00:00:00Z TO 2012-04-30T23:59:59Z]

Private tickets

private:true

Saving searches

Ticket searches may be saved for later use by project administrators. To save a search, click "Edit Searches" in the tracker sidebar. Click "Add Search" then enter a summary and search terms for the saved search. Your search will now show up in the sidebar under "Searches" with a count of how many tickets match the query.

Sorting search results

Ticket search results can be sorted by clicking the header of the column you want to sort by. The first click will sort the results in ascending order. Clicking the header again will sort the column in descending order. In addition to sorting by the column headers, you can manually sort on these properties:

You can use these properties by appending them to the url (only one sort allowed at a time) like this:

{{ h.absurl(c.app.url) }}search/?q=_milestone:1.0&sort=snippet_s+asc
{% endblock %}