Needs a review
Might get reworked to be a full-fledged search function
I can easily search for pages from anywhere while I browse the pages of a site. The search is launched against actual content of all pages as well as typical textual elements such as the page titles and name and author and group names.
Basic search only initiates a raw, textual search. If I need to search using values of additional attributes, I can extend the existing search query with additional terms. Like this, I can e.g. only search for pages which have been published or have been edited by me. In order not to have to go through a basic search first, I can also access the form offering such advanced search facilities directly.
I can work with a resulting list of pages found much as I can work with a regular page list.
Description of desired behavior
When navigating a particular site in AdminCentral, a search box is always visible inviting the user to initiate a basic search. The resulting query can be extended with additional terms, transforming it into an advanced search query.
Basic search starts by typing text in the search bar available while browsing the site structure or a list of pages. The view changes to a page list, which is the default view for showing search results. The site structure view does not support displaying search results.
The resulting list of pages can be additionally filtered by item set (if applicable), sorted and grouped exactly as possible in a page list. Basically, a page list is transformed into a search results list using clearly different visuals (mostly colors), but offers the same functionality including actions and preview views.
If the query text is changed, a new search is only launched, if the user hits a "search" button. In order to quit searching, the user clicks on a "done" button and is then returned to the view he was in before he initiated the search.
Advanced search can be entered by modifying an existing basic search query with additional attributes. This is done by adding terms and conditions (and, or). The user can choose from a predefined list of typical page attributes including:
- the publishing state
- an editor or group name with access (any editor or group with write access to the page)
- an editor which has changed the page (any editor who has changed or created the page in the past)
- the last modification date
- the creation date
- the locale of a page
- the site a page belongs to
Furthermore, the textual search described in the #Basic search can be restricted to only affect content or individual text fields, including:
- the page name/URI
- the page title
- the navigation title
Advanced search can also be entered directly by pressing a special "advanced search" button in the search bar to avoid having to first launch a textual and thus basic search before being able to perform e.g. a search for published pages only.
Saving a search query and launching it again
Advanced search queries may be saved to work much as item subsets and thus are added to the tabs representing them at the top of the current view. The query itself and not the results are saved. The user is asked to provide a unique name for the query and to select a default view supporting the display of search results, if multiple such views are available.
In launching a saved query again, the user simply selects it from the list of tabs containing saved searches. Magnolia displays the selected default view (usually the page list) and the advanced search settings as if the user had entered all manually, then executes the search and shows the results.
Preserving context, updating the results
If the user switches to a different menu item while a basic or advanced search view is open, the query of the search is preserved. If the user later on switches back to the menu from where the query was launched, the basic or advanced search view is shown and the query executed again to ensure that *the search results shown are up-to-date".