Detailed Description
FIG. 2 illustrates a classification search method 100 according to one embodiment of the invention. First, at 110, a current search category of a plurality of search categories is received. In one aspect, the current search category can be selected directly by the user among a plurality of search categories shown in the search box; on the other hand, as will be described below, the current search category can also be determined indirectly by the user selecting one of a plurality of tags corresponding to the plurality of search categories, respectively. These search categories may be user-defined. At 120, a first search keyword from a user is received, for example, in a search box. It will be appreciated that the order of the processes 110 and 120 may be reversed arbitrarily.
At 130, a search results page is obtained based on the current search category and the first search keyword. FIG. 3 illustrates a search results page according to one embodiment of the present invention. As can be seen in FIG. 3, the current search category is shown in search box A as a "three-party library," and the search results page includes a tab box B in which a plurality of first tabs are shown, each first tab corresponding to a search category of the plurality of search categories. In fig. 3, the label of the corresponding "three-party library" in this label box B is highlighted to correspond to the current search category "three-party library" in the search box. The search results under the current search category "three-party library" are shown in the search results page.
At 140, a selection of a first tab of the plurality of first tabs is received from the user, for example, in fig. 3, the user may click directly on the first tab in the tab box related to "apply" in the search category to search.
At 150, in response to a user selection of a first tag, the current search category is changed to the search category corresponding to the selected first tag, e.g., the current search category "three-way library" is modified to "apply".
At 160, the current search category, i.e., "applications," is displayed. FIG. 4 illustrates a search results page after being changed according to one embodiment of the present invention. The current search category is changed from "three-party repository" to "application" by clicking on the first tab in tab box B that relates to "application", and the changed current search category is displayed to the user in tab box B and search box a. In the tab box B, the tab "application" corresponding to the changed current search category is highlighted, and the current search category is shown as "application" in the search box a. This is just one preferred embodiment, and it is also conceivable to omit the search box, but only include the tab box, and display the current search category in the tab box in any way that the user can make explicit decisions; and vice versa. Further, after the current search category is changed by clicking the first tab, search results from the changed current search category can be displayed in a search results page to display search results from the new current search category, such as search results displayed under the "apply" search category.
In some retrieval scenarios, each search category may also include multiple sub-search categories. In a preferred embodiment, the search results page can also show a plurality of second tabs, each second tab indicating a respective one of the sub-search categories of the corresponding one of the plurality of search categories. In a preferred embodiment, each second tab can be displayed in association with a corresponding first tab to indicate a sub-search category that indicates the search category to which the first tab corresponds.
In this case, at 140, a selection of one of the plurality of second tags can be received from the user; at 150, changing the current search category to a sub-search category corresponding to the selected second tag; at 160, the selected sub-search categories are displayed to the user. It is to be understood that any tags corresponding to a search category or sub-search categories may be selected by a user, and the first tag and the second tag are used herein merely to describe various embodiments of the present invention and are not particularly limited to which search category they correspond.
FIG. 5 illustrates a classification search method 200 according to another embodiment of the invention. The processes 210-260 therein are the same as in fig. 2. Preferably, the method 200 further includes selecting at least one of the plurality of search categories in a search box at 270; and determining a first tab corresponding to the selected search category as the selected first tab based on the selected search category and displaying the search results under the selected search category in the search results page at 280. In this embodiment, not only the current search category can be changed by selecting the first tab, but also the selection of the corresponding first tab can be changed by selecting a different search category, that is, the tab and the search category are linked, and the corresponding search result can be displayed in the search result page. The selection of the tag may be displayed to the user. The selection of a tag can be indicated in any manner known to those skilled in the art, such as highlighting the tag. Although it is described with reference to 240-250 that the current search category is changed by selecting a first tag, and it is described with reference to 270-280 that the selection of the corresponding first tag is changed by selecting a different search category, this is not limitative, but their order may also be inter-modulated.
After changing the current search category as described above, the user may wish to enter a second search keyword in the search box under the new current search category for further retrieval of each of the sub-search categories under the current search category. The second search keyword may be different from the first search keyword. FIG. 6 illustrates a further classification search method 300 according to one embodiment of the invention. At 310, a determination is made whether the search category has been changed, which may be accomplished by selecting a different tab as described above, or by selecting a different search category in the search box after the search page containing the tab is shown. If it is determined that the search category has not changed, then at 320, a search under the current search category is performed and a search results page, as shown in FIG. 3, is obtained. If it is determined at 310 that the search category has changed, then at 330, a second search keyword is received from the user; at 340, a further search result page is obtained based on the changed current search category and the second search keyword, the further search result page showing a plurality of third tags and search results under the changed current search category, each third tag respectively indicating one sub-search category in the changed current search category.
In this case, further sub-search categories can be shown through the tab box for further selection by the user. For example, the method further includes receiving a selection of a third tag of the plurality of third tags from the user; further changing the current search category to a sub-search category corresponding to the selected third tag; and displaying the selected sub-search category to the user.
In the embodiment as described above, the user can further search the sub-search categories in the changed current search category, so that the sub-search categories can be filtered layer by layer, and finally more accurate results can be obtained even if a plurality of layers of search categories are included. This combines both classification and hierarchical searching.
As an example, for example, after the search result page as shown in fig. 4 has been obtained, the user can further input "test" in the search box under the search category "apply", and then, according to the search method of the above-described embodiment of the present invention, the content about "test" can be further searched in the search category "apply", thereby incorporating the hierarchical search in the category search.
In one embodiment, further pages of search results can be made available among the search results made for the changed search category. For example, the search result for "application" shown in fig. 4 can be further searched for content about "test" to obtain a further search result page.
In the embodiment shown in fig. 6, unlike the previously described embodiments, only the tags corresponding to the respective search categories of the current layer may be shown in the initial search result page, and only the tags corresponding to the respective sub-search categories under the current search category may be shown in the further search result page. It is also contemplated to show the tags corresponding to all search categories and sub-search categories at once.
The methods of the various embodiments of the present invention are described above with reference to specific embodiments, and it is contemplated that the processes of the various embodiments can be combined to achieve corresponding effects. The order of the above-described respective processes is not limitative. In addition, although the above embodiments have been described with reference to the first, second and third tags and the first and second search keywords, it is to be understood that this is for the purpose of description only and does not limit the order and hierarchical relationship thereof.
Fig. 7 shows a classified search device 10 according to an embodiment of the present invention. The classification search apparatus 10 includes a receiving unit 11, a search unit 12, a changing unit 13, and a display unit 14.
The receiving unit 11 is used for receiving user selection and/or input of search categories, tags, and/or search keywords. The searching unit 12 is configured to perform a search according to the current search category/sub-category to obtain a search result page. The changing unit 13 is configured to change another search category or search category to a tag or search category corresponding to the selected search category or tag according to the selection of the search category or tag by the user. The display unit 14 is used to display the changed current search category to the user, which can be achieved by displaying the current search category in text in the search box or by highlighting the tag corresponding to the current search category in the tag box.
In a specific embodiment, the search unit 12 searches according to a current search category in a plurality of search categories and a first search keyword from a user to obtain a search result page, where the search result page shows a plurality of first tags and search results under the current search category, and each first tag respectively indicates a corresponding search category in the plurality of search categories; the receiving unit 11 receives a selection of one of the plurality of first tags from a user; the changing unit 13 changes the current search category to a search category corresponding to the selected first tag; the display unit 14 displays the changed current search category to the user.
Preferably, the display unit 14 displays the search result under the changed current search category in the search result page in response to the changing unit 13 changing the current search category to the search category corresponding to the selected first tab.
In another embodiment, the receiving unit 11 receives a selection of at least one search category of the plurality of search categories in the search box by the user; the changing unit 12 determines a first tab corresponding to the selected search category as a selected first tab based on the selected search category, and the display unit 14 displays a search result page according to the selected search category to display search results under the selected search category. Thus, linkage between the search category in the search box and the tag in the tag box is realized.
In a further embodiment, the search results page also shows a plurality of second tabs, each second tab indicating a respective one of the corresponding one of the plurality of search categories, in which case the user can also select any one of the plurality of sub-search categories. Specifically, the receiving unit 11 receives a selection of one of the plurality of second tags from the user. The changing unit 13 changes the current search category to a sub-search category corresponding to the selected second tag. The display unit 14 displays the selected sub-search category as the current search category to the user.
In another embodiment, after determining that the current search category has changed, for example, from "three-party repository" to "application", the receiving unit 11 receives a second search keyword from the user under the changed current search category, wherein the changed current search category includes a plurality of sub-search categories. The search unit 12 obtains, from the changed current search category and the second search keyword, a further search result page showing a plurality of third tags each indicating one sub-search category in the changed current search category and search results under the changed current search category.
In one embodiment, the process of determining whether the search category has been changed can be performed in the changing unit 13.
Further, the receiving unit 11 can receive a selection of one of the plurality of third tags from the user; the changing unit 13 changes the current search category to a sub-search category corresponding to the selected third tag; the display unit 14 displays the selected sub-search category as the current search category to the user.
It is understood that the category search method and apparatus of the various embodiments of the present disclosure can be implemented by a computer program/software. These software can be loaded into the working memory of a processor, which when executed, is used to perform a method according to embodiments of the present disclosure, thereby resulting in a system for classification searching.
Exemplary embodiments of the present disclosure cover both: the computer program/software of the present disclosure is created/used from the beginning and the existing program/software is transferred to the computer program/software using the present disclosure by means of an update.
According to further embodiments of the present disclosure, there is provided a machine (e.g., computer) readable medium, such as a CD-ROM, having stored thereon computer program code which, when executed, causes a computer or processor to perform a method according to embodiments of the present disclosure. The machine-readable medium may be, for example, an optical storage medium or a solid-state medium supplied together with or as part of other hardware.
Computer programs for carrying out methods according to embodiments of the present disclosure may also be distributed in other forms, such as via the internet or other wired or wireless telecommunication systems. The computer program may also be provided over a network, such as the world wide web, and can be downloaded into the working computers of the processor from such a network.
It has to be noted that embodiments of the present disclosure are described with reference to different subject matters. In particular, some embodiments are described with reference to method type claims whereas other embodiments are described with reference to device/system type claims. However, a person skilled in the art will gather from the above and the following description that, unless other notified, in addition to any combination of features belonging to one type of subject-matter also any combination between features relating to different subject-matters is considered to be disclosed with this application. Also, all features can be combined, providing a synergistic effect greater than a simple sum of the features.
The foregoing description of specific embodiments of the present disclosure has been described. Other embodiments are within the scope of the following claims. In some cases, the actions or processes recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results.
The present disclosure has been described above with reference to specific embodiments, and it should be understood by those skilled in the art that the technical solutions of the present disclosure can be implemented in various ways without departing from the spirit and essential features of the present disclosure. The specific embodiments are merely illustrative and not restrictive. In addition, any combination of these embodiments can be used to achieve the purpose of the present disclosure. The scope of the disclosure is defined by the appended claims.
The word "comprising" in the description and in the claims does not exclude the presence of other elements or processes, the words "first", "second", etc. do not denote any order or importance, nor do they denote any order or importance. The functions of the respective elements described in the specification or recited in the claims may be divided or combined into plural corresponding elements or may be implemented by a single element.