wiki:WEB_SEARCH_R0

Version 10 (modified by deyan, 15 years ago) (diff)

--

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=WEB_SEARCH_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

(Give as much as possible of the needed information for designing and implementing the task in the following sections.)

Overview

There are two types of web searches: quick and advanced.

Task requirements

The following rules occur for the search results.

  • The search result of the result list consist of three parts:
    • name of the resource
    • part of the information for the resource
    • name of the owner plus the date and the time of the last change
  • the written query
    • if the query is one word
      • the result can contain the query as an entire word or as a part of existing word
      • the arrangement of the results depends on the following rules in the same order of importance:
        • 1. Occurrence of the query in the name of the resource
        • 2. Occurrence of the query in the information for the resource (as many times, as earlier position in the list of the results)
        • 3. Partly occurrence of the query in a word of the name of the resource
        • 4. Partly occurrence of the query in a word of the information for the resource (as many times, as earlier position in the list of the results)
    • if the query is more than one word
      • for the result, occurrence of one of them is enough
      • the arrangement of the results depends onthe following rules in the same order of importance:
        • 1. Occurrence of words in the query in the same order and one after another in the name of the resource
        • 2. Occurrence of words in the query in the same order and one after another in the information of the resource
        • 3. Occurrence of words of the query in the name of the resource
        • 4. Occurrence of the words of the query in the information for the resource (as many times, as earlier position in the list of the results)
        • 5. Partly occurrence of the words of the query in words of the name of the resource
        • 6. Partly occurrence of the words of the query in words of the information for the resource (as many times, as earlier position in the list of the results)
    • Every found occurrence of the query in the result set is highlighted.

Advanced search has the following features:

  • a combobox for selecting a type of resource (by default any)
  • a field for writing an owner of a resource (by default any)
  • a checkbox for arranging by date, descending (by default unchecked)

Results presenting:

  • presenting a definite number of results at once (for example 10)
  • occurrence of numbers going to the nearest sets of such results
  • occurrence of which set of result is shown now and how many are all the results( for example "Results (101 - 110 of 664)")

After a search result set is available a button for searching in the results is available, located next to search one.

Task result

Source code

Implementation idea

  • Quick search is available for every opened page and locates over the main menu.
  • Advances search can be opened by a "Search" button, located in the main menu.

S2S_WEB_SEARCH_R0
S2S_WEB_RESOURCE_MANIPULATION_R4

How to demo

  1. Write a word in the field next to "Search" button and press this button.
  2. The available results are shown with resource name, part of the resource information, owner name, date and time of last change in the resource. If the resource are many only part of them are shown.
  3. Click on the search button and open the advanced search.
  4. Choose type "book", write your name in the owner field, check the arrange by date checkbox, write a word and press search.

Notice all your book resources are shown and they are arranged by date.

  1. Write another word and press "Search in results" button.

Search occurs only in the previous result set.

Design

(Describe your design here.)

Implementation

(Describe and link the implementation results here (from the wiki or the repository).)

Testing

(Place the testing results here.)

Comments

(Write comments for this or later revisions here.)