Skip to content

Commit bf583e5

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 33e6dd8 commit bf583e5

File tree

3 files changed

+60
-39
lines changed

3 files changed

+60
-39
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Fixed:
1313
- don't set the title to nothing from incoming mail (thanks Bruce Guenter)
1414
- fix py2.4 strftime() API change bug (sf bug 1087746)
1515
- fix indexer searching with no valid words (sf bug 1086787)
16+
- updated searching / indexing docs
1617

1718

1819
2004-10-26 0.7.9

doc/customizing.txt

Lines changed: 39 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2098,12 +2098,12 @@ Index View Specifiers
20982098
An index view specifier (URL fragment) looks like this (whitespace has
20992099
been added for clarity)::
21002100

2101-
/issue?status=unread,in-progress,resolved&
2102-
topic=security,ui&
2103-
:group=+priority&
2104-
:sort==activity&
2105-
:filters=status,topic&
2106-
:columns=title,status,fixer
2101+
/issue?status=unread,in-progress,resolved&
2102+
topic=security,ui&
2103+
@group=priority&
2104+
@sort=-activity&
2105+
@filters=status,topic&
2106+
@columns=title,status,fixer
21072107

21082108
The index view is determined by two parts of the specifier: the layout
21092109
part and the filter part. The layout part consists of the query
@@ -2128,11 +2128,29 @@ descending order. The filter section shows filters for the "status" and
21282128
"topic" properties, and the table includes columns for the "title",
21292129
"status", and "fixer" properties.
21302130

2131+
============ =============================================================
2132+
Argument Description
2133+
============ =============================================================
2134+
@sort sort by prop name, optionally preceeded with '-' to give
2135+
descending or nothing for ascending sorting.
2136+
@group group by prop name, optionally preceeded with '-' or to sort
2137+
in descending or nothing for ascending order.
2138+
@columns selects the columns that should be displayed. Default is
2139+
all.
2140+
@filter indicates which properties are being used in filtering.
2141+
Default is none.
2142+
propname selects the values the item properties given by propname must
2143+
have (very basic search/filter).
2144+
@search_text if supplied, performs a full-text search (message bodies,
2145+
issue titles, etc)
2146+
============ =============================================================
2147+
2148+
21312149
Searching Views
21322150
---------------
21332151

21342152
.. note::
2135-
If you add a new column to the ``:columns`` form variable
2153+
If you add a new column to the ``@columns`` form variable
21362154
potentials then you will need to add the column to the appropriate
21372155
`index views`_ template so that it is actually displayed.
21382156

@@ -2142,8 +2160,8 @@ This is one of the class context views. The template used is typically
21422160

21432161
- sets up additional filtering, as well as performing indexed text
21442162
searching
2145-
- sets the ``:filter`` variable correctly
2146-
- saves the query off if ``:query_name`` is set.
2163+
- sets the ``@filter`` variable correctly
2164+
- saves the query off if ``@query_name`` is set.
21472165

21482166
The search page should lay out any fields that you wish to allow the
21492167
user to search on. If your schema contains a large number of properties,
@@ -2153,18 +2171,18 @@ Strings, consider having their value indexed, and then they will be
21532171
searchable using the full text indexed search. This is both faster, and
21542172
more useful for the end user.
21552173

2156-
The two special form values on search pages which are handled by the
2157-
"search" action are:
2158-
2159-
:search_text
2160-
Text with which to perform a search of the text index. Results from
2161-
that search will be used to limit the results of other filters (using
2162-
an intersection operation)
2163-
:query_name
2164-
If supplied, the search parameters (including :search_text) will be
2165-
saved off as a the query item and registered against the user's
2166-
queries property. The *classic* template schema has this ability, but
2167-
the *minimal* template schema does not.
2174+
If the search view does specify the "search" ``@action``, then it may also
2175+
provide an additional argument:
2176+
2177+
============ =============================================================
2178+
Argument Description
2179+
============ =============================================================
2180+
@query_name if supplied, the index parameters (including @search_text)
2181+
will be saved off as a the query item and registered against
2182+
the user's queries property. Note that the *classic* template
2183+
schema has this ability, but the *minimal* template schema
2184+
does not.
2185+
============ =============================================================
21682186

21692187

21702188
Item Views

doc/user_guide.txt

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -309,30 +309,32 @@ Under the covers
309309
The searching page converts your selections into the following
310310
arguments:
311311

312-
========== =============================================================
313-
Argument Description
314-
========== =============================================================
315-
:sort sort by prop name, optionally preceeded with '-' to give
316-
descending or nothing for ascending sorting.
317-
:group group by prop name, optionally preceeded with '-' or to sort
318-
in descending or nothing for ascending order.
319-
:filter selects which props should be displayed in the filter
320-
section. Default is all.
321-
:columns selects the columns that should be displayed. Default is
322-
all.
323-
propname selects the values the item properties given by propname must
324-
have (very basic search/filter).
325-
========== =============================================================
312+
============ =============================================================
313+
Argument Description
314+
============ =============================================================
315+
@sort sort by prop name, optionally preceeded with '-' to give
316+
descending or nothing for ascending sorting.
317+
@group group by prop name, optionally preceeded with '-' or to sort
318+
in descending or nothing for ascending order.
319+
@columns selects the columns that should be displayed. Default is
320+
all.
321+
@filter indicates which properties are being used in filtering.
322+
Default is none.
323+
propname selects the values the item properties given by propname must
324+
have (very basic search/filter).
325+
@search_text performs a full-text search (message bodies, issue titles,
326+
etc)
327+
============ =============================================================
326328

327329
You may manually write URLS that contain these arguments, like so
328330
(whitespace has been added for clarity)::
329331

330332
/issue?status=unread,in-progress,resolved&
331333
topic=security,ui&
332-
:group=priority&
333-
:sort=-activity&
334-
:filters=status,topic&
335-
:columns=title,status,fixer
334+
@group=priority&
335+
@sort=-activity&
336+
@filters=status,topic&
337+
@columns=title,status,fixer
336338

337339

338340
Access Controls

0 commit comments

Comments
 (0)