CN106156109B - Searching method and device - Google Patents

Searching method and device Download PDF

Info

Publication number
CN106156109B
CN106156109B CN201510158779.4A CN201510158779A CN106156109B CN 106156109 B CN106156109 B CN 106156109B CN 201510158779 A CN201510158779 A CN 201510158779A CN 106156109 B CN106156109 B CN 106156109B
Authority
CN
China
Prior art keywords
search
search result
keywords
keyword
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510158779.4A
Other languages
Chinese (zh)
Other versions
CN106156109A (en
Inventor
李文君
李寿铉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510158779.4A priority Critical patent/CN106156109B/en
Publication of CN106156109A publication Critical patent/CN106156109A/en
Application granted granted Critical
Publication of CN106156109B publication Critical patent/CN106156109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the application discloses a searching method and a searching device. The searching method comprises the steps of obtaining a search keyword, and obtaining a first search result set according to the search keyword; responding to an operation instruction aiming at least one search result in the first search result set, and acquiring a first keyword set of the search result corresponding to the operation instruction; and selecting a second search result set from the first search result set according to the first keyword set. According to the searching method and device, the second searching result set is selected from the first searching result set, the searching accuracy is improved, and therefore the searching efficiency of a user is improved.

Description

Searching method and device
Technical Field
The present application relates to computer network technologies, and in particular, to a search method and apparatus.
Background
The development of the internet has made information rich and diverse. Therefore, in general, the user needs to search to quickly acquire information required by the user.
The search methods in the prior art are generally as follows: the method comprises the steps of firstly obtaining search keywords input by a user, then searching information matched with the search keywords from a network, and finally displaying the searched information to the user.
However, in the process of implementing the present application, the inventors found that at least the following problems exist in the prior art:
in the search method in the prior art, after a user obtains certain information needed by the user through searching, if the user needs to further obtain information similar to the information, the user often needs to search for many times or repeatedly inquire, and the accuracy and efficiency of searching are low.
Disclosure of Invention
The embodiment of the application aims to provide a searching method and a searching device so as to improve the accuracy and efficiency of searching.
In order to solve the above technical problem, an embodiment of the present application provides a search method and apparatus, which are implemented as follows:
a search method, comprising:
acquiring a search keyword, and acquiring a first search result set according to the search keyword;
displaying the first search result set;
responding to an operation instruction aiming at least one search result in the first search result set, and acquiring a first keyword set of the search result corresponding to the operation instruction;
selecting a second search result set from the first search result set according to the first keyword set;
and displaying the second search result set.
Another search method includes:
acquiring a search keyword, and acquiring a first search result set according to the search keyword;
displaying the first search result set;
responding to an operation instruction aiming at least one search result in the first search result set, and acquiring a first keyword set of the search result corresponding to the operation instruction;
selecting a second search result set from the first search result set according to the first keyword set;
selecting a first preset number of search results from the second search result set according to the first keyword set;
and displaying the search results of the first preset number.
A search apparatus, comprising:
the first acquisition module is used for acquiring search keywords and acquiring a first search result set according to the search keywords;
the first display module is used for displaying the first search result set;
the second obtaining module is used for responding to an operation instruction aiming at least one search result in the first search result set, and obtaining a first keyword set of the search result corresponding to the operation instruction;
the first selection module is used for selecting a second search result set from the first search result set according to the first keyword set;
and the second display module is used for displaying the second search result set.
Another search apparatus includes:
the first acquisition module is used for acquiring search keywords and acquiring a first search result set according to the search keywords;
the first display module is used for displaying the first search result set;
the second obtaining module is used for responding to an operation instruction aiming at least one search result in the first search result set, and obtaining a first keyword set of the search result corresponding to the operation instruction;
the first selection module is used for selecting a second search result set from the first search result set according to the first keyword set;
the second selection module is used for selecting a first preset number of search results from the second search result set by the first keyword set;
and the third display module is used for displaying the search results of the first preset number.
According to the technical scheme provided by the embodiment of the application, after the acquired first search result set is displayed to the user, the first keyword set of the search result corresponding to the operation instruction is acquired, and the second search result set is selected from the first search result set according to the first keyword set. Compared with the prior art, the searching method of the embodiment of the application improves the searching accuracy by selecting the second searching result set from the first searching result set, so that the searching efficiency of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a flow chart of a search method according to an embodiment of the present application;
fig. 2, fig. 3 and fig. 4 are schematic views illustrating a search keyword "men's clothing" as an example according to a search method of an embodiment of the present application;
FIG. 5 is a flow chart of another search method according to an embodiment of the present application;
FIG. 6 is a functional block diagram of a searching apparatus according to an embodiment of the present application;
fig. 7 is a schematic functional block diagram of another search apparatus according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to better understand the technical solution of the present application, the following briefly describes the working process of a typical search engine. Taking a web search engine as an example, the web search engine specifically comprises the working processes of capturing a web page, establishing an index, querying the web page and the like.
Crawling Web pages is typically done by a Web crawler (Web crawler). A web crawler is an automatically executing computer program that crawls through various internet web pages. When a web crawler accesses an internet web page, the web crawler stores the web page to a server, and stores a URL (Uniform Resource Locator) address of the web page.
And preprocessing the web pages stored in the server and establishing indexes for the web pages. Typically, the web pages stored in the server are in the form of source code (e.g., HTML code). Therefore, preprocessing such as code denoising is required for the web page. The code denoising is generally to remove codes in a webpage and reserve text characters in the webpage. After preprocessing, word segmentation is carried out on the reserved text characters, and therefore keywords of the webpage are obtained. By establishing the corresponding relation among the keywords of the web pages, the web pages and the URL addresses of the web pages, the index of the web pages is established. One web page may have 1 keyword or a plurality of keywords. The keywords may be the same or different for different web pages.
For example, the server stores a web page a, a web page B, and a web page C. The text characters reserved after the webpage A is preprocessed are 'Google map father jumping slot Facebook'. The URL address of web page a is 1. The word segmentation processing of the text characters reserved in the webpage A comprises the following steps: "Google/map/father/hop/Facebook". The text characters reserved after the webpage B is preprocessed are 'Google map father alliance Facebook'. The URL address of web page B is 2. The word segmentation processing of the text characters reserved in the webpage B comprises the following steps: "Google/map/father/alliance/Facebook". The text characters reserved after the webpage C is preprocessed are 'Google map creator leaves Google alliance Facebook'. The URL address of web page C is 3. The word segmentation processing of the text characters reserved in the webpage C comprises the following steps: "google/map/originator/away/france/Facebook". The indexes built for web page a, web page B and web page C are shown in table 1 below.
TABLE 1
Keyword URL address Web page
Google 1,2,3 A,B,C
Map with a plurality of maps 1,2,3 A,B,C
Parent of 1,2,3 A,B,C
Jumping groove 1 A
Facebook 1,2,3 A,B,C
Joining 2,3 B,C
Creators 3 C
Leave from 3 C
In table 1, "keyword" is listed as a keyword of a web page. The "URL address" column is the URL address of the web page. By querying the keyword, the URL address of the web page corresponding to the keyword can be acquired. The IP address of the web page is obtained by performing DNS (domain name System) analysis on the acquired URL address, and the page information of the web page is obtained. For example, the keyword "google" corresponds to URL addresses 1, 2, and 3. And respectively carrying out DNS analysis on the URL addresses 1, 2 and 3 to obtain the IP addresses of the webpage A, the webpage B and the webpage C. And obtaining the page information of the web pages A, B and C according to the IP addresses of the web pages A, B and C.
After the index is established, the search keyword input by the user is obtained, then the URL address corresponding to the search keyword is obtained, and finally the obtained URL address is displayed to the user. Taking table 1 as an example, if the keyword input by the user is "google", the obtained URL addresses corresponding to the search keyword are 1, 2, and 3, and then the URL addresses 1, 2, and 3 are presented to the user. Or the webpage A, the webpage B and the webpage C can be acquired according to the URL addresses 1, 2 and 3 respectively, and then the page information of the webpage A, the webpage B and the webpage C is displayed to the user.
An embodiment of the search method of the present application is described below. The search method can be applied to any electronic device, such as a pc (personal computer), a server, an industrial personal computer (industrial control computer), a mobile smart phone, a tablet electronic device, a portable computer (e.g., a laptop computer, etc.), a Personal Digital Assistant (PDA), a desktop computer, an intelligent wearable device, and the like. As shown in fig. 1, this embodiment includes the following steps:
s101: and acquiring a search keyword, and acquiring a first search result set according to the search keyword.
The search keywords include keywords in various languages, and also include any combination of keywords in different languages. Such as keywords in languages like chinese, english, japanese, korean, etc. The search keywords include various types of keywords and also include any combination of different types of keywords. Such as words, pinyin, letters, numbers, symbols, etc.
The number of the search keywords may be 1 or more. When the number of the search keywords is multiple, logical operators can be further included among the multiple search keywords. Such as logical operators like and, or, not.
In some embodiments, the search keyword is a keyword entered by a user. For example, a keyword entered by a user through a web page or an input box of a client.
In other embodiments, after obtaining the keyword input by the user, the keyword needs to be preprocessed, and the preprocessed keyword is used as the search keyword. The preprocessing comprises word segmentation processing, word filtering and the like. For example, the keyword input by the user is "how to rush to purchase a train ticket". Then, after the keyword is obtained, the word segmentation processing is performed on the keyword as follows: how/first-order/train ticket; then removing a small amount of filter words, such as 'how' to remove; then, the rest words are processed with the operation relation of 'and', such as 'rush purchase and train ticket'; and finally, taking the word after the operation relation processing of the 'and' as a search keyword, for example, taking 'first-order train ticket' or 'first-order and train ticket' as the search keyword.
The first set of search results includes web pages, pictures, audio, video, documents, and the like. The number of search results in the first search result set may be 1 or more.
And comparing the search keywords with the keywords of each result to be searched, selecting the result to be searched with the keywords same as the search keywords, and taking the selected result to be searched as the search result in the first search result set.
Generally, a plurality of results to be searched are stored in a server. Each result to be searched corresponds to 1 or more keywords. Taking table 1 as an example, the web page a, the web page B, and the web page C stored in the server are the results to be searched. The keywords corresponding to the web page a are "google", "map", "father", "jumping slot", and "Facebook". The keywords corresponding to the web page B are "google", "map", "father", "franchise", and "Facebook". The keywords corresponding to the web page C are "google", "map", "originator", "away", "franchise", and "Facebook".
In some embodiments, the number of search keywords is 1. And comparing the search keyword with the keywords of each result to be searched, and taking the result to be searched with the keywords as the search result in the first search result set. Specifically, each result to be searched may correspond to 1 keyword, or may correspond to a plurality of keywords. When a certain result to be searched corresponds to 1 keyword, if the keyword is the same as the search keyword, taking the result to be searched as a search result in the first search result set. When a certain result to be searched corresponds to a plurality of keywords, if one keyword is the same as the search keyword, the result to be searched is used as the search result in the first search result set.
Taking table 1 as an example, if the search keyword is "google", the number of the search results in the first search result set obtained is 3, which are respectively web page a, web page B, and web page C.
In other embodiments, the number of search keywords is multiple. And comparing the plurality of search keywords with the keywords of each to-be-searched result, and taking the to-be-searched result with the same keywords as the plurality of search keywords as the search result in the first search result set. Specifically, when a certain to-be-searched result corresponds to a plurality of keywords, if the number of the plurality of keywords is greater than or equal to the number of the search keywords and the plurality of keywords include the plurality of search keywords, the to-be-searched result is used as the search result in the first search result set.
Taking table 1 as an example, if the search keyword is "google franchise", and the keywords of web page B and web page C both include "google" and "franchise", the number of search results in the first search result set obtained is 2, and the number is web page B and web page C respectively.
S102: and displaying the first search result set.
Typically, the first set of search results is presented to the user in the form of a page. The layout forms of the pages comprise a page turning form and a waterfall flow form.
In the case that the number of search results in the first search result set is large, the first search result set is usually presented together by a plurality of pages, limited by the area of the page on which the search results are presented. Each page may present a second preset number of search results. The number of specific pages is related to the number of search results in the first set of search results and the number of search results presented per page. The number of pages is greater when the number of search results in the first set of search results is greater. Likewise, when the number of search results presented per page is small, the number of pages is also large. The size of the second preset number can be flexibly set according to the requirement of a user, for example, 50 or 100.
As shown in fig. 2, the search keyword is "men's clothing", and the searched content is a picture. After the search keyword 'men' is acquired, taking the result to be searched, of which the keyword includes 'men' as a search result in a first search result set, and displaying the first search result set to the user in a waterfall flow mode (the number of the search results in the current page is 22).
S103: and responding to an operation instruction aiming at least one search result in the first search result set, and acquiring a first keyword set of the search result corresponding to the operation instruction.
The operation instruction for at least one search result in the first search result set may be generated when a user clicks, double clicks or drags one or more search results by using an input device (such as a mouse), or may be generated when a user clicks, double clicks, drags or presses one or more search results by touching a screen.
And after the first search result set is displayed to the user in a page form, the user browses and views the search results in the first search result set. When a user views a search result of interest, the search result is typically manipulated. The number of search results targeted by the user operation may be one or more.
When the number of the search results targeted by the user operation is 1, obtaining the keywords except the search keywords in the keywords of the search results targeted by the user operation, and taking the obtained keywords except the search keywords as a first keyword set. The number of keywords in the first keyword set may be 1 or more.
Taking table 1 as a column, if the search keyword is "franchised," the first search result set includes web page B and web page C. If the search result aimed at by the user operation is the webpage B, acquiring the rest keywords except the search keywords in the keywords of the webpage B, and taking the acquired rest keywords except the search keywords as a first keyword set of the webpage B. The first set of keywords specifically includes "google", "map", "father" and "Facebook".
When the number of the search results targeted by the user operation is multiple, then for each search result, the remaining keywords excluding the search keyword in the keywords of the search result are obtained, and the obtained keywords are used as the second keyword set of the search result. In some embodiments, a union set of the second set of keywords of the plurality of search results (the second set of keywords of the plurality of search results are merged and duplicate keywords are removed) is used as the first set of keywords. In some further embodiments, an intersection is taken of the second set of keywords of the plurality of search results (taking keywords that are common to the second set of keywords of the plurality of search results), and the intersection is taken as the first set of keywords.
Taking table 1 as a column, if the search keyword is "franchised," the first search result set includes web page B and web page C. And if the search results aimed at by the user operation are the web page B and the web page C. And acquiring the rest keywords except the search keywords in the keywords of the webpage B, and taking the acquired keywords as a second keyword set of the webpage B. The second keyword set of the web page B specifically includes "google", "map", "father" and "Facebook". And acquiring the rest keywords except the search keywords in the keywords of the webpage C, and taking the acquired keywords as a second keyword set of the webpage C. The second set of keywords of web page C specifically includes "google", "map", "originator", "away", and "Facebook". In some embodiments, the first set of keywords is the union of the second set of keywords of web page B and web page C, specifically including "google," map, "" father, "" Facebook, "" originator, "and" away. In some other embodiments, the first keyword set is an intersection of the second keyword sets of the web pages B and C, and specifically includes "google", "map", "father", and "Facebook".
As another example, for the search results in the current page of FIG. 2, the number of search results targeted by the user operation is 1 (as shown in FIG. 3). The first set of keywords of the search result specifically includes "formal", "white", and "one".
S104: and selecting a second search result set from the first search result set according to the first keyword set.
The number of search results in the second set of search results may be 1 or more.
And comparing each keyword in the first keyword set with each keyword of each search result in the first search result set, selecting a search result of which the keywords comprise at least one keyword in the first keyword set, and taking the selected search result as a search result in the second search result set. In particular, the amount of the solvent to be used,
when the number of the keywords in the first keyword set is 1, selecting a search result containing the keywords in the first keyword set from the first search result set, and taking the selected search result as a search result in the second search result set;
when the number of the keywords in the first keyword set is multiple, then, a search result containing at least N keywords in the first keyword set is selected from the first search result set, and the selected search result is used as a search result in the second search result set. And N is an integer greater than or equal to 1 and is less than or equal to the number of keywords in the first keyword set. For example, when N is equal to the number of keywords in the first keyword set, selecting a search result from the first search result set, where the keywords include all keywords in the first keyword set, and using the selected search result as a search result in the second search result set; when N is equal to 2 (the number of the keywords in the first keyword set is greater than or equal to 2), selecting a search result containing at least 2 keywords in the first keyword set from the first search result set
If so, taking the selected search result as a search result in the second search result set; and when the N is equal to 1 (the number of the keywords in the first keyword set is greater than or equal to 1), selecting a search result of the keywords which comprise at least 1 keyword in the first keyword set from the first search result set, and taking the selected search result as a search result in the second search result set.
Taking table 1 as an example, if the search keyword is "franchised," the first search result set includes web page B and web page C. The search result targeted by the user operation is web page B. The first set of keywords includes "google," map, "" father, "and" Facebook. The number of keywords in the first keyword set is multiple. Take N equal to 1. Then, a search result including at least 1 keyword in the first keyword set from the keywords is selected from the first search result set, and the selected search result is used as a search result in the second search result set. Keywords of the web page B include "google", "map", "father", "franchise", and "Facebook". Keywords of the web page C include "google", "map", "originator", "away", "franchise", and "Facebook". The keywords of the web pages B and C both include 'Google', and the 'Google' is one keyword in the first keyword set, so that the web pages B and C are used as search results in the second search result set. I.e., the second set of search results includes web page B and web page C.
S105: and displaying the second search result set.
If the search result in the first search result set is displayed in the current page, when the refresh operation instruction for the current page is obtained, the search result in the second search result set is displayed in the refreshed page.
When the layout form of the current page is a page turning form, the refresh operation instruction is generally generated when it is detected that a page turning button of the current page is clicked, double-clicked, dragged, or pressed. The page turning buttons include a button to jump to the previous page, the next page, or any existing non-current page. For example, the page turn button may be a "previous page", "next page", or "page 3" button.
When the layout form of the page is the form of a waterfall flow, the refresh operation instruction is generally generated when the current page is detected to scroll up or down. Scrolling the page up or down may be generated by sliding the mouse wheel up or down, sliding the touch screen up or down, or pressing the arrow keys of the keyboard.
In some embodiments, in the refreshed page, the first set of search results is not presented, and only the second set of search results is presented. In this case, the specific method of presenting the second search result set is similar to the method in step S102.
In some further embodiments, the first set of search results and the second set of search results are presented concurrently in the refreshed page. In particular, the amount of the solvent to be used,
in this embodiment, the second set of search results may be presented in a pre-staged or highlighted manner in the refreshed page. For example,
displaying the search results in the second search result set on the upper part, the lower part, the left side or the right side of the refreshed page;
and displaying the search results in the second search result set on the refreshed page in a highlighting mode. The highlighting mode comprises marking red, highlighting, adding black square boxes and the like for the search results in the second search result set;
search results in the second set of search results are shown in a highlighted manner on the top, bottom, left side, or right side of the refreshed page.
For example, the first set of keywords in FIG. 3 includes "formal", "white", and "one". And selecting a search result with the keyword at least comprising one of 'formal dress', 'white' and 'one' from the first search result set, and taking the selected search result as a search result in the second search result set. As shown in fig. 4, the pictures within the black box are the search results in the second search result set.
In some embodiments, the search method may further include the following steps.
After a refresh operation instruction for the first page is acquired, it is determined whether an operation instruction for the second search result set is acquired before the refresh operation instruction. The first page is a page which displays the first search result set and the second search result set at the same time. The operation instruction for the second search result set is generally an operation instruction for one or more search results in the second search set.
When the operation instruction for the second search result set is acquired before the refreshing operation instruction, the search results in the second search result set are indicated to be interesting or needed by the user. In this case, the steps between steps S103 to S105 are repeated. Namely, the third keyword set of the search results in the second search result set aimed at by the user operation instruction is obtained. And selecting a third search result set from the second search result set according to the third keyword set. And finally, displaying the third search result set.
When the operation instruction for the second search result set is not acquired before the refresh operation instruction, the search results in the second search result set are not interested or needed by the user. Then, the second set of search results is no longer presented in the refreshed page of the first page, but rather the first set of search results is presented.
In the embodiment corresponding to fig. 1, after the first search result set obtained according to the search keyword is displayed to the user, the first keyword set of the search result corresponding to the operation instruction is obtained, the second search result set is selected from the first search result set according to the first keyword set, and the second search result set is displayed to the user. In general, the search result corresponding to the operation instruction is a search result that is relatively interested by the user. The keywords of the search results in the second search result set comprise at least one keyword in the first keyword set. Therefore, the search results in the second search result set are similar to the search results corresponding to the operation instructions, and the search results which are concerned and interested are also compared for the user. Compared with the prior art, the embodiment corresponding to fig. 1 improves the accuracy of the search by selecting the second search result set from the first search result set and displaying the second search result set to the user, thereby improving the search efficiency of the user.
Another embodiment of the search method of the present application is described below. As shown in fig. 5, this embodiment includes the following steps:
s501: and acquiring a search keyword, and acquiring a first search result set according to the search keyword.
S502: and displaying the first search result set.
S503: responding to an operation instruction aiming at least one search result in the first search result set, and acquiring a first keyword set of the search result corresponding to the operation instruction.
S504: and selecting a second search result set from the first search result set according to the first keyword set.
S505: and selecting a first preset number of search results from the second search result set according to the first keyword set.
S506: and displaying the search results of the first preset number.
Generally, the number of search results in the second search result set in step S505 is large. However, the area of the page for displaying the search results is limited, so that a first preset number of search results need to be selected from the second search result set. And then displaying the selected search result to the user. Specifically, after a refresh operation instruction for a current page is acquired, a first preset number of search results are displayed in the refreshed page. And the current page displays the search results in the first search result set.
The selecting a first preset number of search results from the second search result set according to the first keyword set specifically includes:
sequencing the search results in the second search result set according to the sequence of the number of the keywords in the first keyword set from large to small in the keywords, and selecting the first preset number of search results;
and sequencing the search results in the second search result set according to the sequence from small to large of the number of the keywords in the first keyword set contained in the keywords, and selecting the first preset number of the search results.
In some embodiments, the first set of search results is not presented in the refreshed page, and only the first preset number of search results are presented. The specific display manner can refer to the description in step S105.
In some other embodiments, the first set of search results and the first preset number of search results are presented simultaneously in the refreshed page. The specific display manner can refer to the description in step S105.
The size of the first preset number can be flexibly set according to the requirement of a user. But typically the first predetermined number is less than or equal to the second predetermined number. For example, the second predetermined number is 50 and the first predetermined number is 10.
When the search results in the first set of search results and the first preset number of search results are simultaneously in the refreshed page, in some embodiments, the first preset number is equal to a product of the second preset number and a preset ratio. Namely, the first preset quantity is equal to the second preset quantity, namely, the first preset quantity is equal to the preset proportion. The preset proportion is the proportion of the number of the search results of the first preset number in the refreshed page to the second preset number. For example, if the preset ratio is 0.2 and the second preset number is 50, then 10(50 × 0.2) search results in the second search result set and 40 search results in the first search result set are displayed on the refreshed page.
The size of the preset proportion is flexibly adjusted according to actual needs. When the search method is more focused on the accuracy of the search, the preset ratio may be set to be larger, for example, 0.5. When the search method is more focused on the breadth of the search, the preset ratio may be set smaller, for example, 0.1.
Similarly, in some embodiments, the search method may further include the following steps.
After the refresh operation instruction for the first page is acquired, whether the operation instruction for the first preset number of search results is acquired before the refresh operation instruction is judged. The first page is a page which simultaneously displays a first search result set and the first preset number of search results.
When the operation instruction for the first preset number of search results is acquired before the refresh operation instruction, it is indicated that the first preset number of search results are interesting or required by the user. In this case, the steps between steps S103 to S105 are repeated.
When the operation instruction for the first preset number of search results is not acquired before the refresh operation instruction, it is indicated that the first preset number of search results are not interesting or required by the user. Then, the first preset number of search results is no longer presented in the first page refreshed page, but rather the first set of search results is presented.
In the embodiment corresponding to fig. 5, the first preset number of search results are selected from the second search result set according to the first keyword set. The first preset number of search results are search results which are more similar to the search results corresponding to the operation instructions in the second result set, and are search results which are more interesting or more needed by the user. Compared with the embodiment corresponding to fig. 1, the search results that are more interesting or more desirable to the user are preferentially displayed to the user by preferentially displaying the first preset number of search results.
As shown in fig. 6, an embodiment of the present application further provides a search apparatus, which includes a first obtaining module 601, a first presenting module 602, a second obtaining module 603, a first selecting module 604, and a second presenting module 605. Wherein the content of the first and second substances,
a first obtaining module 601, configured to obtain a search keyword, and obtain a first search result set according to the search keyword;
a first presentation module 602, configured to present a first search result set;
a second obtaining module 603, configured to, in response to an operation instruction for at least one search result in the first search result set, obtain a first keyword set of the search result corresponding to the operation instruction;
a first selecting module 604, configured to select a second search result set from the first search result set according to the first keyword set;
a second presentation module 605, configured to present a second search result set.
In some embodiments, the first obtaining module 601 includes a first obtaining unit 606 and a second obtaining unit 607. Wherein the content of the first and second substances,
a first obtaining unit 606 for obtaining a search keyword;
the second obtaining unit 607 is configured to obtain the first search result set according to the search keyword.
In some other embodiments, the apparatus further includes a first determining module 608, configured to determine, when a refresh operation instruction for the first page is acquired, whether an operation instruction for search results in the second search result set is acquired before the refresh operation instruction, and determine, according to a determination result, whether to display the second search result set in a second page, where the second page is a page refreshed from the first page.
As shown in fig. 7, an embodiment of the present application further provides another search apparatus, which includes a first obtaining module 601, a first showing module 602, a second obtaining module 603, a first selecting module 604, a second selecting module 701, and a third showing module 702. Wherein the content of the first and second substances,
a second selecting module 701, configured to respond to an operation instruction for at least one search result in the first search result set, and obtain a first keyword set of the search result corresponding to the operation instruction;
a third displaying module 702, configured to display the first preset number of search results.
In some embodiments, the first obtaining module 601 includes a first obtaining unit 606 and a second obtaining unit 607. Wherein the content of the first and second substances,
a first obtaining unit 606 for obtaining a search keyword;
the second obtaining unit 607 is configured to obtain the first search result set according to the search keyword.
In some other embodiments, the apparatus further includes a second determining module 703, configured to determine, when a refresh operation instruction for the first page is obtained, whether an operation instruction for the first preset number of search results is obtained before the refresh operation instruction, and determine, according to a determination result, whether the first preset number of search results are displayed in a second page, where the second page is a page refreshed from the first page.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardsradware (Hardware Description Language), vhjhd (Hardware Description Language), and vhigh-Language, which are currently used in most popular applications. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. With this understanding in mind, the present solution, or portions thereof that contribute to the prior art, may be embodied in the form of a software product, which in a typical configuration includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The computer software product may include instructions for causing a computing device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in the various embodiments or portions of embodiments of the present application. The computer software product may be stored in a memory, which may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transient media), such as modulated data signals and carrier waves.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
While the present application has been described with examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.

Claims (33)

1. A method of searching, comprising:
acquiring a search keyword, and acquiring a first search result set according to the search keyword;
displaying the first search result set;
responding to an operation instruction aiming at least one search result in the first search result set, and acquiring a first keyword set according to the search result aiming at the operation instruction, wherein the first keyword set comprises the rest keywords except the search keywords in the keywords of the search result;
selecting a second search result set from the first search result set according to the first keyword set;
and displaying the second search result set.
2. The method according to claim 1, wherein when the number of the search results corresponding to the operation instruction is two or more, the first keyword set is an intersection of second keyword sets of the respective search results corresponding to the operation instruction, and the second keyword sets are keywords remaining in the search results except the search keywords.
3. The method according to claim 1, wherein when the number of the search results corresponding to the operation instruction is two or more, the first keyword set is a union of second keyword sets of the respective search results corresponding to the operation instruction, and the second keyword set is a remaining keyword excluding the search keyword among the keywords of the search results.
4. The method of claim 1, wherein selecting the second set of search results from the first set of search results based on the first set of keywords comprises:
comparing each keyword in the first keyword set with the keyword of each search result in the first search result set, selecting the search result of the keywords containing at least N keywords in the first keyword set, and taking the selected search result as the search result in the second search result set, wherein N is an integer greater than or equal to 1 and is less than or equal to the number of the first keywords.
5. The method of claim 1,
the displaying the first search result set comprises displaying the first search result set in a page turning form or a waterfall flow form;
the displaying the second search result set comprises displaying the second search result set in a page turning mode or a waterfall flow mode.
6. The method of claim 1, wherein said presenting a second set of search results comprises:
displaying a first search result set on a current page;
and displaying a second search result set on a first page, wherein the first page is a page refreshed by the current page.
7. The method of claim 6, wherein said presenting the second set of search results on the first page comprises:
the second set of search results is presented at the top, bottom, left side, or right side of the first page.
8. The method of claim 6, wherein after presenting the second set of search results, the method further comprises:
when a refresh operation instruction for the first page is acquired, whether the operation instruction for the search results in the second search result set is acquired before the refresh operation instruction is judged, and whether the second search result set is displayed in a second page is judged according to the judgment result, wherein the second page is the page refreshed by the first page.
9. The method of claim 8, wherein determining whether to present the second set of search results in the second page based on the determination comprises:
and when the operation instruction aiming at the search result in the second search result set is not acquired before the refreshing operation instruction aiming at the first page, not displaying the second search result set in the second page.
10. The method of claim 1, wherein the obtaining search keywords comprises:
and acquiring keywords, preprocessing the acquired keywords, and taking the preprocessed keywords as search keywords.
11. The method of claim 10, wherein the pre-processing comprises word segmentation.
12. The method of claim 1, wherein said obtaining a first set of search results based on said search keyword comprises:
and comparing the search keywords with the keywords of each result to be searched, and taking the result to be searched, which contains the search keywords, in the keywords as the search result in the first search result set.
13. The method of claim 1, wherein the operational instruction for at least one of the first set of search results is generated upon detecting that a search result is clicked, double-clicked, dragged, or pressed.
14. A method of searching, comprising:
acquiring a search keyword, and acquiring a first search result set according to the search keyword;
displaying the first search result set;
responding to an operation instruction aiming at least one search result in the first search result set, and acquiring a first keyword set according to the search result aiming at the operation instruction, wherein the first keyword set comprises the rest keywords except the search keywords in the keywords of the search result;
selecting a second search result set from the first search result set according to the first keyword set;
selecting a first preset number of search results from the second search result set according to the first keyword set;
and displaying the search results of the first preset number.
15. The method of claim 14, wherein when the number of search results corresponding to the operation instruction is two or more, the first keyword set is an intersection of second keyword sets of the search results corresponding to the operation instruction, and the second keyword sets are keywords remaining in the search results except for the search keywords.
16. The method according to claim 14, wherein when the number of the search results corresponding to the operation instruction is two or more, the first keyword set is a union of second keyword sets of the respective search results corresponding to the operation instruction, and the second keyword set is a keyword remaining in the keywords of the search results except for the search keyword.
17. The method of claim 14, wherein selecting the second set of search results from the first set of search results based on the first set of keywords comprises:
comparing each keyword in the first keyword set with the keyword of each search result in the first search result set, selecting the search result of the keywords containing at least N keywords in the first keyword set, and taking the selected search result as the search result in the second search result set, wherein N is an integer greater than or equal to 1 and is less than or equal to the number of the keywords in the first keyword set.
18. The method of claim 14, wherein selecting a first predetermined number of search results from a second set of search results based on a first set of keywords comprises:
and sequencing the search results in the second search result set according to the sequence from small to large of the number of the keywords in the first keyword set contained in the keywords, and selecting the first preset number of the search results.
19. The method of claim 14, wherein selecting a first predetermined number of search results from a second set of search results based on a first set of keywords comprises:
and sequencing the search results in the second search result set according to the sequence of the number of the keywords in the first keyword set from large to small, and selecting the first preset number of search results.
20. The method of claim 14, wherein said presenting a second set of search results comprises:
displaying a first search result set on a current page;
and displaying the first preset number of search results on a first page, wherein the first page is a page refreshed by the current page.
21. The method of claim 20, wherein after presenting the first preset number of search results, the method further comprises:
when a refresh operation instruction for a first page is acquired, whether the operation instruction for the first preset number of search results is acquired before the refresh operation instruction is judged, and whether the first preset number of search results are displayed in a second page according to the judgment result is judged, wherein the second page is the page refreshed by the first page.
22. The method of claim 21, wherein the determining whether the first preset number of search results are presented in the second page according to the determination result comprises:
when the operation instruction for the first preset number of search results is not acquired before the refresh operation instruction for the first page, the first preset number of search results are not displayed in the second page.
23. The method of claim 14,
the displaying the first search result set comprises displaying the first search result set in a page turning form or a waterfall flow form;
the displaying of the first preset number of search results includes displaying the first preset number of search results in a page-turning form or a waterfall flow form.
24. The method of claim 14, wherein the obtaining search keywords comprises:
and acquiring keywords, preprocessing the acquired keywords, and taking the preprocessed keywords as search keywords.
25. The method of claim 24, wherein the pre-processing comprises word segmentation.
26. The method of claim 14, wherein said obtaining a first set of search results based on said search keyword comprises:
and comparing the search keywords with the keywords of each result to be searched, and taking the result to be searched, which contains the search keywords, in the keywords as the search result in the first search result set.
27. The method of claim 14, wherein the operational instruction for at least one of the first set of search results is generated upon detecting that a search result is clicked, double-clicked, dragged, or pressed.
28. A search apparatus, comprising:
the first acquisition module is used for acquiring search keywords and acquiring a first search result set according to the search keywords;
the first display module is used for displaying the first search result set;
the second obtaining module is used for responding to an operation instruction aiming at least one search result in the first search result set, and obtaining a first keyword set according to the search result aiming at the operation instruction, wherein the first keyword set comprises the rest keywords except the search keywords in the keywords of the search results;
the first selection module is used for selecting a second search result set from the first search result set according to the first keyword set;
and the second display module is used for displaying the second search result set.
29. The apparatus of claim 28, wherein the apparatus further comprises:
and the first judging module is used for judging whether the operation instruction aiming at the search result in the second search result set is acquired before the refresh operation instruction when the refresh operation instruction aiming at the first page is acquired, and judging whether the second search result set is displayed in the second page according to the judgment result, wherein the second page is the page refreshed by the first page.
30. The apparatus of claim 28, wherein the first obtaining module comprises:
a first acquisition unit configured to acquire a search keyword;
and the second acquisition unit is used for acquiring the first search result set according to the search keyword.
31. A search apparatus, comprising:
the first acquisition module is used for acquiring search keywords and acquiring a first search result set according to the search keywords;
the first display module is used for displaying the first search result set;
the second obtaining module is used for responding to an operation instruction aiming at least one search result in the first search result set, and obtaining a first keyword set according to the search result aiming at the operation instruction, wherein the first keyword set comprises the rest keywords except the search keywords in the keywords of the search results;
the first selection module is used for selecting a second search result set from the first search result set according to the first keyword set;
the second selection module is used for selecting a first preset number of search results from the second search result set by the first keyword set;
and the third display module is used for displaying the search results of the first preset number.
32. The apparatus of claim 31, wherein the first obtaining module comprises:
a first acquisition unit configured to acquire a search keyword;
and the second acquisition unit is used for acquiring the first search result set according to the search keyword.
33. The apparatus of claim 31, wherein the apparatus further comprises:
and the second judging module is used for judging whether the operation instructions aiming at the first preset number of search results are acquired before the refresh operation instructions when the refresh operation instructions aiming at the first page are acquired, and judging whether the first preset number of search results are displayed in a second page according to the judgment results, wherein the second page is the page refreshed by the first page.
CN201510158779.4A 2015-04-03 2015-04-03 Searching method and device Active CN106156109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510158779.4A CN106156109B (en) 2015-04-03 2015-04-03 Searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510158779.4A CN106156109B (en) 2015-04-03 2015-04-03 Searching method and device

Publications (2)

Publication Number Publication Date
CN106156109A CN106156109A (en) 2016-11-23
CN106156109B true CN106156109B (en) 2020-09-04

Family

ID=57337604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510158779.4A Active CN106156109B (en) 2015-04-03 2015-04-03 Searching method and device

Country Status (1)

Country Link
CN (1) CN106156109B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832432A (en) * 2017-11-15 2018-03-23 北京百度网讯科技有限公司 A kind of search result ordering method, device, server and storage medium
CN108376149A (en) * 2018-01-30 2018-08-07 北京百度网讯科技有限公司 Method, apparatus, equipment and the computer storage media that information shows
CN109308299B (en) * 2018-09-12 2020-01-14 北京字节跳动网络技术有限公司 Method and apparatus for searching information
CN109376300A (en) * 2018-09-27 2019-02-22 北京字节跳动网络技术有限公司 Method for refreshing, device, storage medium and the electronic equipment of search result
CN110020957A (en) * 2019-01-31 2019-07-16 阿里巴巴集团控股有限公司 Damage identification method and device, the electronic equipment of maintenance objects

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294815A (en) * 2013-06-08 2013-09-11 北京邮电大学 Search engine device with various presentation modes based on classification of key words and searching method
CN103294814A (en) * 2013-06-07 2013-09-11 百度在线网络技术(北京)有限公司 Search result recommendation method, system and search engine
CN103390024A (en) * 2013-06-19 2013-11-13 北京时间中国网科技有限公司 Method and device for building data collection entrances of search engine
CN103744856A (en) * 2013-12-03 2014-04-23 北京奇虎科技有限公司 Method, device and system for linkage extended search

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070260597A1 (en) * 2006-05-02 2007-11-08 Mark Cramer Dynamic search engine results employing user behavior
CN102651031A (en) * 2012-03-31 2012-08-29 百度在线网络技术(北京)有限公司 Method and equipment for providing searching result
US10108720B2 (en) * 2012-11-28 2018-10-23 International Business Machines Corporation Automatically providing relevant search results based on user behavior
KR20140131166A (en) * 2013-05-03 2014-11-12 삼성전자주식회사 Display apparatus and searching method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294814A (en) * 2013-06-07 2013-09-11 百度在线网络技术(北京)有限公司 Search result recommendation method, system and search engine
CN103294815A (en) * 2013-06-08 2013-09-11 北京邮电大学 Search engine device with various presentation modes based on classification of key words and searching method
CN103390024A (en) * 2013-06-19 2013-11-13 北京时间中国网科技有限公司 Method and device for building data collection entrances of search engine
CN103744856A (en) * 2013-12-03 2014-04-23 北京奇虎科技有限公司 Method, device and system for linkage extended search

Also Published As

Publication number Publication date
CN106156109A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN106156109B (en) Searching method and device
CN105868166B (en) Regular expression generation method and system
EP2758894B1 (en) Visual representation of supplemental information for a digital work
US10380197B2 (en) Network searching method and network searching system
US8887044B1 (en) Visually distinguishing portions of content
CN105824830B (en) Method, client and equipment for displaying page
US20240019989A1 (en) Information presentation method and apparatus, and computer storage medium
TWI611338B (en) Method for zooming screen and electronic apparatus and computer program product using the same
US9754034B2 (en) Contextual information lookup and navigation
US9342233B1 (en) Dynamic dictionary based on context
WO2016095689A1 (en) Recognition and searching method and system based on repeated touch-control operations on terminal interface
CN111381751A (en) Text processing method and device
CN107368511B (en) Information display method and device
WO2016091095A1 (en) Searching method and system based on touch operation on terminal interface
CN105808764A (en) Recommended content display method and device
US10685256B2 (en) Object recognition state indicators
WO2013159649A1 (en) Data pasting method and apparatus
US11360640B2 (en) Method, device and browser for presenting recommended news, and electronic device
KR101580003B1 (en) Graphical user interface for non mouse-based activation of links
CN106155654B (en) Method and device for shielding webpage operation and electronic equipment
WO2016177277A1 (en) Information recommendation method and apparatus
US20160188556A1 (en) Adaptive electronic document
CN106970758B (en) Electronic document operation processing method and device and electronic equipment
US20150058710A1 (en) Navigating fixed format document in e-reader application
CN103902164A (en) System and method for word-capturing search in browser window by clicking left mouse button

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant