Skip to content

Commit 0633b59

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 2d3b384 commit 0633b59

File tree

3 files changed

+61
-41
lines changed

3 files changed

+61
-41
lines changed

CHANGES.txt

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

7475

7576
2004-10-26 0.7.9

doc/customizing.txt

Lines changed: 39 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.161 $
5+
:Version: $Revision: 1.161.2.1 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -2180,12 +2180,12 @@ Index View Specifiers
21802180
An index view specifier (URL fragment) looks like this (whitespace has
21812181
been added for clarity)::
21822182

2183-
/issue?status=unread,in-progress,resolved&
2184-
topic=security,ui&
2185-
:group=+priority&
2186-
:sort==activity&
2187-
:filters=status,topic&
2188-
:columns=title,status,fixer
2183+
/issue?status=unread,in-progress,resolved&
2184+
topic=security,ui&
2185+
@group=priority&
2186+
@sort=-activity&
2187+
@filters=status,topic&
2188+
@columns=title,status,fixer
21892189

21902190
The index view is determined by two parts of the specifier: the layout
21912191
part and the filter part. The layout part consists of the query
@@ -2210,11 +2210,28 @@ descending order. The filter section shows filters for the "status" and
22102210
"topic" properties, and the table includes columns for the "title",
22112211
"status", and "fixer" properties.
22122212

2213+
============ =============================================================
2214+
Argument Description
2215+
============ =============================================================
2216+
@sort sort by prop name, optionally preceeded with '-' to give
2217+
descending or nothing for ascending sorting.
2218+
@group group by prop name, optionally preceeded with '-' or to sort
2219+
in descending or nothing for ascending order.
2220+
@columns selects the columns that should be displayed. Default is
2221+
all.
2222+
@filter indicates which properties are being used in filtering.
2223+
Default is none.
2224+
propname selects the values the item properties given by propname must
2225+
have (very basic search/filter).
2226+
@search_text if supplied, performs a full-text search (message bodies,
2227+
issue titles, etc)
2228+
============ =============================================================
2229+
22132230

22142231
Searching Views
22152232
---------------
22162233

2217-
Note: if you add a new column to the ``:columns`` form variable
2234+
Note: if you add a new column to the ``@columns`` form variable
22182235
potentials then you will need to add the column to the appropriate
22192236
`index views`_ template so that it is actually displayed.
22202237

@@ -2224,8 +2241,8 @@ This is one of the class context views. The template used is typically
22242241

22252242
- sets up additional filtering, as well as performing indexed text
22262243
searching
2227-
- sets the ``:filter`` variable correctly
2228-
- saves the query off if ``:query_name`` is set.
2244+
- sets the ``@filter`` variable correctly
2245+
- saves the query off if ``@query_name`` is set.
22292246

22302247
The search page should lay out any fields that you wish to allow the
22312248
user to search on. If your schema contains a large number of properties,
@@ -2235,18 +2252,18 @@ Strings, consider having their value indexed, and then they will be
22352252
searchable using the full text indexed search. This is both faster, and
22362253
more useful for the end user.
22372254

2238-
The two special form values on search pages which are handled by the
2239-
"search" action are:
2240-
2241-
:search_text
2242-
Text with which to perform a search of the text index. Results from
2243-
that search will be used to limit the results of other filters (using
2244-
an intersection operation)
2245-
:query_name
2246-
If supplied, the search parameters (including :search_text) will be
2247-
saved off as a the query item and registered against the user's
2248-
queries property. Note that the *classic* template schema has this
2249-
ability, but the *minimal* template schema does not.
2255+
If the search view does specify the "search" ``@action``, then it may also
2256+
provide an additional argument:
2257+
2258+
============ =============================================================
2259+
Argument Description
2260+
============ =============================================================
2261+
@query_name if supplied, the index parameters (including @search_text)
2262+
will be saved off as a the query item and registered against
2263+
the user's queries property. Note that the *classic* template
2264+
schema has this ability, but the *minimal* template schema
2265+
does not.
2266+
============ =============================================================
22502267

22512268

22522269
Item Views

doc/user_guide.txt

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
User Guide
33
==========
44

5-
:Version: $Revision: 1.30 $
5+
:Version: $Revision: 1.30.2.1 $
66

77
.. contents::
88

@@ -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)