CN113407828A - Searching method, searching device and searching device - Google Patents
Searching method, searching device and searching device Download PDFInfo
- Publication number
- CN113407828A CN113407828A CN202110656403.1A CN202110656403A CN113407828A CN 113407828 A CN113407828 A CN 113407828A CN 202110656403 A CN202110656403 A CN 202110656403A CN 113407828 A CN113407828 A CN 113407828A
- Authority
- CN
- China
- Prior art keywords
- search
- label
- preset
- historical
- demand
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 230000004931 aggregating effect Effects 0.000 claims abstract description 10
- 238000004458 analytical method Methods 0.000 claims description 25
- 238000013507 mapping Methods 0.000 claims description 15
- 230000008569 process Effects 0.000 abstract description 16
- 241000251730 Chondrichthyes Species 0.000 description 25
- 238000011156 evaluation Methods 0.000 description 20
- 230000006399 behavior Effects 0.000 description 19
- 238000004891 communication Methods 0.000 description 11
- 238000012545 processing Methods 0.000 description 10
- 230000008901 benefit Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 8
- 230000009471 action Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 108050007496 Shikimate kinase 2 Proteins 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012552 review Methods 0.000 description 2
- 238000012163 sequencing technique Methods 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000006210 lotion Substances 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention provides a searching method, a searching device and a searching device. The method comprises the following steps: determining a main demand label according to a query word, and determining at least one secondary demand label according to entity content contained in the query word, wherein the main demand label and the secondary demand label belong to preset labels; obtaining search results of the query terms corresponding to the main requirement label and the secondary requirement label respectively; displaying the search result; and the search result is obtained by aggregating the search results of the main demand label and the secondary demand label, and the search result corresponding to the main demand label is preferentially displayed. The embodiment of the invention can improve the searching efficiency, simplify the operation process of user searching and improve the user experience.
Description
Technical Field
The present invention relates to the field of network technologies, and in particular, to a search method, a search device, and a search device.
Background
With the rapid development of information technology and network technology, people increasingly search for information needed by themselves by means of networks. For example, a search word may be input in a search box of a search platform for search, and the search platform returns a search result related to the search word to a user according to a certain search policy.
Typically, for a search activity, the search platform returns the search results that are most highly associated with the query term to the user. When the search result cannot meet the search requirement of the user, the user needs to adjust the query word to search again. That is, the user needs to continuously try and error in the repeated process of browsing the search results and adjusting the query terms through multiple search behaviors to find the search results meeting the self requirements, so that the search efficiency is low, the operation process is complicated, and the user experience is influenced.
Disclosure of Invention
The embodiment of the invention provides a searching method, a searching device and a searching device, which can improve the searching efficiency, simplify the operation process of user searching and improve the user experience.
In order to solve the above problem, an embodiment of the present invention discloses a search method, where the method includes:
determining a main demand label according to a query word, and determining at least one secondary demand label according to entity content contained in the query word, wherein the main demand label and the secondary demand label belong to preset labels;
obtaining search results of the query terms corresponding to the main requirement label and the secondary requirement label respectively;
displaying the search result; and the search result is obtained by aggregating the search results of the main demand label and the secondary demand label, and the search result corresponding to the main demand label is preferentially displayed.
Optionally, the determining a main requirement label according to the query term includes:
determining whether the query word is a question-answer query word or not, and if so, performing semantic analysis on the query word to obtain key information related to a search intention;
matching the key information with a preset semantic template to obtain a target semantic template corresponding to the key information, wherein the preset semantic template and the preset label have a mapping relation;
and determining a preset label corresponding to the target semantic template as a main requirement label.
Optionally, the determining a main requirement label according to the query term includes:
determining whether the query term is an entity query term, and if so, determining entity content contained in the query term;
obtaining historical search data related to the entity content, wherein the historical search data related to the entity content comprises: historical click data related to the entity content, and/or historical word-changing data related to the entity content;
determining historical search data meeting preset conditions in the historical search data related to the entity content;
and determining a preset label corresponding to the historical search data meeting the preset condition as a main demand label.
Optionally, the determining at least one secondary requirement tag according to the entity content included in the query term includes:
identifying entity content contained in the query word, and acquiring historical search data related to the entity content;
determining historical search data meeting preset conditions in the acquired historical search data related to the entity content;
and determining the preset label corresponding to the historical search data meeting the preset condition as a secondary demand label.
Optionally, the presenting the search result includes:
displaying the search results corresponding to the main demand label and the secondary demand label in a form of label pages in a current interface of a search result page, wherein each label page is used for displaying the search result corresponding to one demand label;
and preferentially displaying a tab page where the search result corresponding to the main requirement tab is located, and switching and displaying the search result corresponding to each requirement tab in the current interface by switching the tab page.
Optionally, the method further comprises:
acquiring historical search data in a preset search scene, wherein the historical search data in the preset search scene comprises: historical query words under the preset search scene, historical search results and historical click data corresponding to the historical query words;
performing demand analysis on historical search data in the preset search scene to determine a target demand point;
and establishing a preset label under the preset search scene according to the target demand point.
Optionally, the method further comprises:
classifying the web pages in a preset database, and identifying search scenes corresponding to the web pages;
and marking corresponding preset labels on the webpages according to the main contents in the webpages, and establishing a mapping relation between each webpage and the preset labels under the corresponding search scenes.
On the other hand, the embodiment of the invention discloses a searching device, which comprises:
the tag determination module is used for determining a main demand tag according to a query word and determining at least one secondary demand tag according to entity content contained in the query word, wherein the main demand tag and the secondary demand tag belong to preset tags;
the result acquisition module is used for acquiring search results of the query terms corresponding to the main requirement labels and the secondary requirement labels respectively;
the result display module is used for displaying the search result; and the search result is obtained by aggregating the search results of the main demand label and the secondary demand label, and the search result corresponding to the main demand label is preferentially displayed.
Optionally, the tag determining module includes a main requirement tag determining module, and the main requirement tag determining module includes:
the semantic analysis submodule is used for determining whether the query word is a question-answer query word or not, and if so, performing semantic analysis on the query word to obtain key information related to the search intention;
the information matching submodule is used for matching the key information with a preset semantic template to obtain a target semantic template corresponding to the key information, and the preset semantic template and the preset label have a mapping relation;
and the first determining submodule is used for determining the preset label corresponding to the target semantic template as a main requirement label.
Optionally, the tag determining module includes a main requirement tag determining module, and the main requirement tag determining module includes:
the content determining sub-module is used for determining whether the query word is an entity query word or not, and if so, determining entity content contained in the query word;
a data obtaining sub-module, configured to obtain historical search data related to the entity content, where the historical search data related to the entity content includes: historical click data related to the entity content, and/or historical word-changing data related to the entity content;
the target determining submodule is used for determining historical search data meeting preset conditions in the historical search data related to the entity content;
and the second determining submodule is used for determining that the preset tag corresponding to the historical search data meeting the preset condition is the main requirement tag.
Optionally, the tag determination module includes a secondary requirement tag determination module, and the secondary requirement tag determination module includes:
the identification and acquisition sub-module is used for identifying entity content contained in the query word and acquiring historical search data related to the entity content;
the data determination submodule is used for determining historical search data meeting preset conditions in the acquired historical search data related to the entity content;
and the third determining submodule is used for determining the preset label corresponding to the historical search data meeting the preset condition as a secondary demand label.
Optionally, the result display module is specifically configured to display search results corresponding to the primary requirement tag and the secondary requirement tag in a form of tab pages in a current interface of a search result page, where each tab page is used to display a search result corresponding to one requirement tag; and preferentially displaying a tab page where the search result corresponding to the main requirement tab is located, and switching and displaying the search result corresponding to each requirement tab in the current interface by switching the tab page.
Optionally, the apparatus further comprises:
the history acquisition module is used for acquiring history search data in a preset search scene, wherein the history search data in the preset search scene comprises: historical query words under the preset search scene, historical search results and historical click data corresponding to the historical query words;
the demand analysis module is used for carrying out demand analysis on historical search data under the preset search scene to determine a target demand point;
and the label setting module is used for establishing a preset label under the preset search scene according to the target demand point.
Optionally, the apparatus further comprises:
the data classification module is used for classifying the webpages in the preset database and identifying the search scenes corresponding to the webpages;
and the label marking module is used for marking the corresponding preset labels on the webpages according to the main contents in the webpages and establishing the mapping relation between each webpage and the preset labels under the corresponding search scene.
In yet another aspect, an embodiment of the present invention discloses a device for searching, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, and the one or more programs comprise instructions for performing one or more of the aforementioned searching methods.
In yet another aspect, embodiments of the invention disclose a machine-readable medium having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform a search method as described in one or more of the preceding.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, under the condition of receiving the query word for searching, the main demand label is determined according to the query word, and the secondary demand label is determined according to the entity content contained in the query word, wherein the main demand label and the secondary demand label belong to preset labels. The main requirement label can reflect the most main searching requirement of the searching action of inputting the query words by the user. The secondary requirement tags may reflect other possible extensibility requirements of a user entering query terms for search behavior. The embodiment of the invention obtains the search results of the query words respectively corresponding to the main requirement labels and the secondary requirement labels, and displays the search results. Therefore, the embodiment of the invention displays the search result meeting the ductility requirement to the user on the basis of displaying the search result meeting the most main search requirement to the user through one-time search behavior. That is, the embodiment of the present invention can provide the search results of multiple required dimensions related to the query term to the user through one search behavior, so as to reduce the repeated process of adjusting the query term by the user, improve the search efficiency, simplify the operation process of user search, and improve the user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of the steps of one embodiment of a search method of the present invention;
FIG. 2 is a schematic illustration of a display interface of a search results page of the present invention;
FIG. 3 is a block diagram of a searching apparatus according to an embodiment of the present invention;
FIG. 4 is a block diagram of an apparatus 800 for searching of the present invention;
fig. 5 is a schematic diagram of a server in some embodiments of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
Method embodiment
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a search method of the present invention is shown, which may specifically include the following steps:
102, obtaining search results of the query terms corresponding to the main requirement labels and the secondary requirement labels respectively;
The searching method provided by the embodiment of the invention can be applied to electronic equipment, and the electronic equipment comprises but is not limited to: a server, a smart phone, a recording pen, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop, a car computer, a desktop computer, a set-top box, a smart tv, a wearable device, and the like.
In a search scenario, the electronic device may receive a query term input by a user in a search box of the search platform, and the search platform returns a search result related to the query term according to a certain search policy. When a trigger operation (such as a click operation) of a user on a certain search result item in the search result page is received, the user can jump to a detail page corresponding to the search result item. It is understood that in specific implementations, the query term may be input not only by text, but also by voice input, icon recognition input, two-dimensional code scanning input, and the like.
In the embodiment of the invention, under the condition of receiving the query word, a main demand label is determined according to the query word, and at least one secondary demand label is determined according to the entity content contained in the query word, wherein the main demand label and the secondary demand label belong to preset labels. The physical content may be nouns having a particular meaning, such as trade names, human names, place names, organization names, proper nouns, and the like.
The preset labels are labels which are obtained by analyzing historical search data of a large number of users in advance and can reflect the demand points generally concerned by the users in a specific search scene. Different preset tags may be predefined for different search scenarios.
In an optional embodiment of the present invention, taking a search scenario of a consumer as an example, the preset tag may include, but is not limited to: ranking list, purchasing suggestion, brand positioning, advantages and disadvantages, comparison and evaluation and experience evaluation.
In an optional embodiment of the invention, the method may further comprise:
step S11, obtaining historical search data in a preset search scene, where the historical search data in the preset search scene includes, but is not limited to: historical query words under the preset search scene, historical search results and historical click data corresponding to the historical query words;
step S12, performing demand analysis on historical search data in the preset search scene to determine a target demand point;
and step S13, establishing a preset label under the preset search scene according to the target demand point.
Taking a preset search scene as a consumption search scene as an example, historical search data of at least one network search platform can be collected and filtered to obtain historical search data of the consumption search scene. The network search platform refers to a website or a third-party platform with a network search function. The historical search data includes, but is not limited to: the historical query words under the preset search scene, the historical search results corresponding to the historical query words and the historical click data. The historical click data may include data such as whether a historical search result corresponding to any historical query word is clicked, and may also include, for example, a click time period, click times, specific contents of clicks, and the like.
And performing demand analysis on the acquired historical search data in the consumer search scene to determine a target demand point. For example, by performing demand analysis on historical search data in a consumer search scenario, it can be known that target demand points generally concerned by a user mainly include: the ranking list of the consumer products, the purchasing suggestion of the consumer products, the brand positioning of the consumer products, the advantages and the disadvantages of the consumer products, the comparison and evaluation of the consumer products, the experience and the evaluation of the consumer products and the like. Thus, preset tags that may be established in a consumer search scenario include: ranking list, purchasing suggestion, brand positioning, advantages and disadvantages, comparison and evaluation, experience and evaluation and the like.
For another example, for an educational search scenario, such as searching for relevant information of education, examination, or credentials, the pre-established corresponding preset tags may include: the system comprises a registration guide, a fund content, level difference, examination difficulty, examination policy, examination strategy preparation, examination hall guide, question type templates, examination topic prediction, review data, education resources, examination lack influence, scoring standard, score conversion, score estimation prediction, score review, score requirement, qualification determination guide, certificate acquisition, certificate registration, certificate loss and the like.
In the embodiment of the invention, under the condition of receiving the query word, the search scene corresponding to the query word can be identified first, and then the main demand label is determined according to the preset label of the query word in the search scene. The main requirement label can reflect the most main search requirement of the search behavior of the user inputting the query word. Further, according to the entity content included in the received query term, at least one secondary requirement label is determined in the preset labels in the search scene, and the secondary requirement label can reflect other possible extensibility requirements of the search behavior performed by inputting the query term by the user.
It should be noted that, the number of the main requirement tags and the sub requirement tags is not limited in the embodiment of the present invention. Preferably, the number of the main requirement tags can be 1, and the main requirement tags represent the most main search requirement of the user. The number of the secondary requirement tags can be larger than 1, and other possible search requirements of the user are reflected.
For example, for the query word "how the black shark 3s mobile phone looks", it may be determined that the main requirement label is "experience evaluation", and the main requirement label may reflect that the most important search requirement for the user to input the query word to perform a search behavior is to know the experience evaluation result of the black shark 3s mobile phone. According to the entity content 'black shark 3s mobile phone' contained in the query word 'how the black shark 3s mobile phone' can determine three secondary demand labels, which respectively comprise 'brand positioning', 'shopping suggestion', 'good and bad'. The secondary requirement tag may reflect other possible extensibility requirements for the user to enter the query term for search behavior. For example, the user inputs the query word "how the black shark 3s mobile phone looks" and mainly wants to know the experience evaluation result of the black shark 3s mobile phone, and in addition, the user may also want to know other related search results such as brand location, purchase suggestions, advantages and disadvantages of the "black shark 3s mobile phone".
After the main requirement label and the secondary requirement label are determined, searching is carried out based on the query word and the main requirement label and the secondary requirement label, and the search result of the query word corresponding to the main requirement label and each secondary requirement label can be obtained.
Taking the above example as an example, for the query word "how a black shark 3s mobile phone looks", the main requirement label is determined as "experience evaluation", and the secondary requirement labels are determined to include "brand location", "shopping suggestion", and "good and bad". Searching according to the query word 'how the black shark 3s mobile phone looks', and acquiring a search result related to the main demand label 'experience evaluation'; and respectively acquiring a search result related to the secondary demand label 'brand location', a search result related to the secondary demand label 'shopping suggestion' and a search result related to the secondary demand label 'good and bad'.
It should be noted that after different preset tags are predefined for different search scenarios, the corresponding preset tags may be marked for the web pages in the preset database. The preset database contains relevant information of each web page of each site, such as title, link, content abstract of the web page, and historical query words corresponding to each web page.
The method of the embodiment of the invention also comprises the following steps: classifying the web pages in the preset database, identifying the search scene corresponding to each web page, marking the corresponding preset labels on the web pages according to the main content in the web pages, and establishing the mapping relation between each web page and the preset labels under the corresponding search scene. Therefore, after a query word input by a user is received and a main requirement label and a secondary requirement label corresponding to the query word are determined, all related search results are searched in a preset database based on the query word, and the search results of the query word corresponding to the main requirement label and the search results of the query word corresponding to the secondary requirement labels can be obtained through filtering by using the determined main requirement label, the determined secondary requirement label and the mapping relation.
After the search results of the query terms corresponding to the primary requirement tag and the secondary requirement tag respectively are obtained, the search results can be displayed on a search result page. The search result is obtained by aggregating the search results of the query terms corresponding to the main requirement labels and the search results corresponding to each secondary requirement label, and the search results corresponding to the main requirement labels are preferentially displayed. Therefore, the user can obtain the experience evaluation result of the black shark 3s mobile phone and other related search results such as brand positioning, purchase suggestions, advantages and disadvantages of the black shark 3s mobile phone by inputting the query word 'how the black shark 3s mobile phone looks' to execute one search action.
According to the embodiment of the invention, the search results of multiple required dimensions related to the query terms can be provided for the user through one-time search behavior. Under the condition that the search result of the main requirement label corresponding to the query word cannot meet the search requirement of the user, the embodiment of the invention actively provides the search result corresponding to the secondary requirement label which possibly meets the potential search requirement of the user for the user, so that the repeated process of adjusting the query word by the user can be reduced, the search efficiency is improved, the operation process of searching by the user is simplified, and the user experience is improved.
In an optional embodiment of the present invention, if the query term has a question-answer intention, it may be called a question-answer type query term; for the question and answer query term, the determining a main requirement label according to the query term in step 101 includes:
step S21, determining whether the query word is a question-answer query word, if so, performing semantic analysis on the query word to obtain key information related to the search intention;
step S22, matching the key information with a preset semantic template to obtain a target semantic template corresponding to the key information, wherein the preset semantic template and the preset label have a mapping relation;
and step S23, determining the preset label corresponding to the target semantic template as a main requirement label.
In particular implementations, different types of query terms may reflect different degrees of search requirements. For example, the question-answer type query term refers to a query term which requires a search platform to answer or solve and has definite search requirements of a user. For example, a question and answer type query term is "what is the moral nobel prize works? ". The question-answer type query words can definitely reflect the search requirements of the user.
Therefore, for question-answer query words, the embodiment of the invention can determine the main requirement label by adopting a semantic analysis and template matching method.
In the embodiment of the present invention, the question-answer type query terms may include explicit question-answer type query terms and implicit question-answer type query terms.
Wherein, the explicit question-answer query term refers to: query words including query words such as "what the moral nobel prize work is", "what the black shark 3s cell phone does", and the like, which may include, but are not limited to, query pronouns, query adverbs, and the like.
The implicit question-answer type query term refers to: the query word does not include the question word but contains the question-answer intention, such as "the advantages and disadvantages of the black shark 3s mobile phone", but does not include the question word, but has the question-answer intention, that is, the semantic meaning implied by the query word is "what the advantages and disadvantages of the black shark 3s mobile phone" so that the query word is an implicit question-answer type query word.
Specifically, the embodiment of the invention sets the corresponding preset semantic template for each preset label. Referring to table 1, a specific example of a preset semantic template corresponding to a preset tag in a consumer search scenario is shown.
TABLE 1
When the query word is received, if the query word is determined to be a question-answer query word, performing semantic analysis on the question-answer query word to obtain key information related to the search intention. For example, by performing semantic analysis on the query word "how a black shark 3s mobile phone is", it is possible to obtain "how" as the key information related to the search intention. Matching the key information with a preset semantic template to obtain a target semantic template corresponding to the key information, such as the preset semantic template "×" what "shown in row 2 in table 1. Because the preset tag corresponding to the target semantic template is experience evaluation, the preset tag corresponding to the target semantic template ("experience evaluation") can be determined to be the main demand tag.
In an optional embodiment of the present invention, the query term includes an entity class query term, and the determining a main requirement label according to the query term in step 101 includes:
step S31, determining whether the query word is a question-answer query word, if so, determining entity content contained in the entity query word;
step S32, obtaining historical search data related to the entity content, where the historical search data related to the entity content includes: historical click data related to the entity content, and/or historical word-changing data related to the entity content;
step S33, determining historical search data meeting preset conditions in the historical search data related to the entity content;
and step S34, determining the preset label corresponding to the historical search data meeting the preset condition as a main requirement label.
The entity type query term refers to a query term of a non-question-answer type containing entity content. For question and answer query words, the search requirements of the user can be definitely reflected; for entity class query terms, the search requirements of the user that they reflect may not be clear enough. Therefore, for the entity type query term, the embodiment of the invention determines the main requirement label by adopting a method of comprehensively judging historical search data.
Specifically, the entity content included in the entity class query term is determined first. The entity content included in the entity class query term may include the entity content included in the entity class query term itself and other entity content associated with the entity content included in the entity class query term itself. For example, entity identification is performed on the entity type query word "SKII skin lotion" to obtain the following entity contents contained in the entity type query word itself: SKII skin care water (a certain product of a certain brand) and SKII (a certain brand). In addition, other entity contents, such as "magical water" and the like, associated with the entity contents contained in the entity contents can be acquired.
After determining entity content contained in an entity class query word and entity content associated with the entity content contained in the entity class query word, acquiring historical search data related to the entity content, wherein the historical search data related to the entity content comprises but is not limited to: historical click data related to the entity content and historical word-changing data related to the entity content. The historical click data related to the entity content refers to historical click data corresponding to a historical search result which takes the entity content as a historical query word. The historical word-changing data related to the entity content refers to word-changing data included in primary historical search behaviors corresponding to the entity content serving as historical query words. For example, the user inputs "how to punch and play" to search, the search result is found to be unsatisfactory, the search is triggered after the query term "which skills to punch" is modified, and the satisfactory search result is obtained, so that the modified query term "which skills to punch" is the historical word change data corresponding to "how to punch and play".
Specifically, the entity content may be utilized to filter historical search data of at least one network search platform, so as to obtain historical search data related to the entity content.
In a search scene, a user inputs a query word in a search box of a search platform for retrieval, and the process is that the user primarily confirms search requirements. The user clicks on a search result in the returned search result, and the process is the user's reconfirmation of the search requirement. In one example, assuming that the query word input by the user is "how to punch a fist," the user performs a click operation on a certain search result "how to punch a fist" in the search result page. The query word "how to punch a fist" may reflect the initial confirmation of the user on the search requirement, and the "click operation" on the specific rule and play method of the punch a fist "may reflect the reconfirmation of the user on the search requirement. And after the confirmation, the search requirement of the user is more clear.
It can be seen that the user's click operation on the search result of the query term is the user's reconfirmation of the search requirement. In addition, the word changing operation of the user on the query word is also reconfirmation of the user on the search requirement. For example, after the user inputs the query word "how to punch a fist" for retrieval, the query word "how to punch a fist" is modified and a new query word "which skills to punch a fist" is input, and the word changing data "which skills to punch a fist" specifies the search requirements of the user more clearly. In practical applications, the word changing operation is not limited to manual input, and may be performed by clicking a recommended word in a search result page or a search box.
Since the click operation of the user on the search result of the query term and the term change operation of the user on the query term are reconfirmation of the search requirement of the user, the search requirement of the user when inputting the query term can be more definite. Therefore, according to the embodiment of the invention, the main requirement label of the entity query word is comprehensively determined according to the historical click data and the historical word changing data in the historical search data related to the entity content, so that the determined main requirement label can reflect the search requirement of the user more accurately.
Further, in the embodiment of the present invention, in the historical search data related to the entity content, the historical search data meeting the preset condition is determined. For example, for historical click data related to entity content, the historical search data with the highest click rate can be determined as the historical search data meeting preset conditions. For another example, for historical word exchange data related to entity content, the historical search data with the highest word exchange probability may be determined to be the historical search data meeting the preset condition.
For example, for the entity class query term "tablet", the entity class query term contains entity content that is itself "tablet". Obtaining historical search data related to the physical content "tablet" includes: the entity content 'tablet computer' is used as historical click data of historical search results of historical query words, and the entity content 'tablet computer' is used as historical word changing data before and after historical search behaviors of the historical query words.
In the history click data of the history search result using the entity content "tablet computer" as the history query word, the click rate of the history search result "2021 tablet computer ranking board" is the highest, so that the history search result "2021 tablet computer ranking board" is the history search data satisfying the preset condition. The historical search data meeting the preset conditions are matched with the preset tags, and the keyword 'ranking list' contained in the historical search result '2021 tablet personal computer ranking list' is matched with the preset tag 'ranking list', so that the preset tag corresponding to the historical search result '2021 tablet personal computer ranking list' can be determined as 'ranking list', and the main requirement tag can be determined as 'ranking list'. When the received query word is the entity type query word "tablet computer", the main requirement label can be determined to be the ranking list ".
For another example, in the historical word replacement data before and after the historical search behavior in which the entity content "tablet computer" is used as the historical query word, the historical word replacement data "tablet computer cost performance ranking" has the highest word replacement probability, so that the historical word replacement data "tablet computer cost performance ranking" is the historical search data meeting the preset condition. Since the preset tag corresponding to the historical word-changing data "cost performance ranking of tablet computers" is "ranking list", the main demand tag can be determined to be "ranking list". When the received query word is the entity type query word "tablet computer", the main requirement label can be determined to be the ranking list ".
It should be noted that, the embodiment of the present invention does not limit the specific type of the historical search data related to the entity content. In addition, in specific implementation, when the main requirement tag corresponding to the entity type query term is determined, a certain historical search data may be used alone, or multiple kinds of historical search data may also be used in combination.
For example, for a certain entity class query term, entity content contained in the entity class query term can be identified, and historical click data related to the entity content can be obtained. The historical click data is used for determining a main requirement label, if the main requirement label is not matched, historical word exchange data related to the entity content can be further obtained, and the main requirement label is further determined by using the historical word exchange data.
Further, in a specific implementation, in a cold start stage, the main requirement label may be determined based on historical search data related to entity content in the entity class query term; after the historical click data of the user on the preset tag is subsequently accumulated, the main demand tag can be comprehensively determined by combining the historical search data related to the entity content and the historical click data of the user on the preset tag. For example, if a certain query term has a plurality of matching main requirement tags, the main requirement tag with the highest click rate may be selected as the main requirement tag by further combining the historical click data of each main requirement tag. For another example, if a certain query term does not match the main requirement tag, the tag with the highest click rate may be selected as the main requirement tag based on the historical click data of the preset tags.
In the embodiment of the invention, the process of determining the secondary requirement label is similar to the process of determining the primary requirement label for the entity type query word. Specifically, the determining at least one secondary requirement tag according to the entity content included in the query term in step 101 may include: identifying entity content contained in the query word, and acquiring historical search data related to the entity content; determining historical search data meeting preset conditions in the acquired historical search data related to the entity content; and determining a preset label corresponding to the historical search data meeting the preset condition as a secondary demand label.
In one example, assuming that the query term is a question and answer type query term "how the black shark 3s mobile phone looks", the main requirement label is determined to be "experience evaluation" according to the query term. Next, a secondary requirement label is determined for the query term. Specifically, the entity content included in the query word "what the black shark 3s mobile phone does" is identified as the "black shark 3s mobile phone", and then historical search data related to the entity content "black shark 3s mobile phone" is acquired, so as to acquire historical click data of the entity content "black shark 3s mobile phone" as a historical search result of the query word. Assume that historical search results with top-ranked click volumes include: "what brand black shark is", "black shark 3s cell phone value is not worth buying", "bright spot and defect of black shark 3 s", "black shark 3s vs. red magic 5 s", it may be determined that the secondary demand label may include, but is not limited to: "brand location", "shopping recommendations", and "advantages and disadvantages".
After the search results of the query terms corresponding to the primary requirement tag and the secondary requirement tag respectively are obtained, the search results can be displayed on a search result page.
In an optional embodiment of the present invention, the presenting the search result in step 103 includes:
and according to a preset ordering strategy, ordering and displaying the search results of the query terms respectively corresponding to the main requirement labels and the secondary requirement labels.
The embodiment of the invention does not limit the preset sorting strategy. For example, the sorting result corresponding to the primary requirement label may be arranged in front of the sorting result corresponding to the secondary requirement label. Furthermore, different priorities can be set for a plurality of secondary demand labels, and sequencing display is performed on sequencing results corresponding to the secondary demand labels according to the priorities.
In an optional embodiment of the present invention, the presenting the search result in step 103 includes:
displaying the search results corresponding to the main demand label and the secondary demand label in a form of label pages in a current interface of a search result page, wherein each label page is used for displaying the search result corresponding to one demand label; and preferentially displaying a tab page where the search result corresponding to the main requirement tab is located, and switching and displaying the search result corresponding to each requirement tab in the current interface by switching the tab page.
In order to facilitate users to view search results corresponding to the main requirement labels and search results corresponding to the secondary requirement labels in a classified manner, the search results of the query terms corresponding to the main requirement labels and the secondary requirement labels are displayed in a classified and aggregated manner.
Specifically, the search result corresponding to the main requirement label is displayed in a current interface of a search result page, and a switch key corresponding to the main requirement label and the secondary requirement label is displayed respectively, wherein the switch key is used for responding to a trigger operation to switch and display the display interface of each search result in the current interface. The representation form of the switching key includes but is not limited to virtual keys, tabs, graphics and the like. The trigger operation includes but is not limited to click (including single click, double click, triple click, etc.) operation, long-press operation, sliding operation, etc.
Referring to FIG. 2, a schematic view of a display interface of a search results page of the present invention is shown. As shown in fig. 2, a search result corresponding to the "experience evaluation" of the main requirement label is displayed in the current interface of the search result page, and a switch key corresponding to the main requirement label and each sub requirement label is also displayed in the current interface. Wherein, the switching key of the main demand label 'experience evaluation' is in a selected state. When the triggering operation of the user on the switching key of the secondary demand label 'ranking list' is assumed to be received, the current interface of the search result page shown in fig. 2 is switched to the display interface of the search result corresponding to the secondary demand label 'ranking list', the secondary demand label 'ranking list' is set to be in a selected state, and the main demand label 'experience evaluation' is set to be in a non-selected state.
In another example, assuming that the query term is a question and answer query term "which brand of faucet is good", the primary requirement label may be determined as "shopping suggestion" according to the query term, and the secondary requirement label may be determined according to the entity content included in the query term, including: ranking list, superiority and inferiority and experience evaluation. After the search results of the query terms corresponding to the main requirement tags and the secondary requirement tags are obtained, the search results can be displayed on a search result page. For example, a search result corresponding to the main requirement label "shopping suggestion" is displayed in the current interface of the search result page, and corresponding switch keys of the main requirement label "shopping suggestion" and the secondary requirement labels "ranking list", "superior and deficient points" and "experience evaluation" are displayed.
It can be understood that, for the search behavior of different query terms, the determined primary requirement label and secondary requirement label may be different, and the number of secondary requirement labels may also be different. According to the embodiment of the invention, the main requirement label and the secondary requirement label which are matched with the query word are dynamically determined according to the query word received in real time, and the search results of the query word respectively corresponding to the main requirement label and the secondary requirement label are obtained and displayed, so that the displayed search results are more in line with the search requirements of the current search behavior. Further, after the search result is displayed, the click behavior of the user on the search result corresponding to each requirement tag (including the main requirement tag and the secondary requirement tag) in the search result page can be recorded, click data is stored, and data basis is provided for subsequently analyzing the search requirement of the user and determining the main requirement tag and the secondary requirement tag.
Alternatively, the search result page may include a level one page in which only brief information of each search result, such as a title, a brief introduction, etc. of each search result, is displayed. The first-level page can be provided with an entrance for entering the second-level page, the second-level page can be displayed in response to the triggering operation of the entrance, and the second-level page comprises search results of which the query words respectively correspond to the main requirement label and the secondary requirement label and detailed information of the search results. Furthermore, the current interface of the secondary page displays the search result corresponding to the main requirement label, and a switch key corresponding to the main requirement label and each secondary requirement label can be displayed in the current interface of the secondary page so as to switch and display the secondary page corresponding to the main requirement label and the secondary page corresponding to each secondary requirement label.
In summary, in the embodiment of the present invention, when a query term for performing a search action is received, a main requirement tag is determined according to the query term, and a secondary requirement tag is determined according to entity content included in the query term, where the main requirement tag and the secondary requirement tag belong to preset tags. The main requirement label can reflect the most main searching requirement of the searching action of inputting the query words by the user. The secondary requirement tags may reflect other possible extensibility requirements of a user entering query terms for search behavior. The embodiment of the invention obtains the search results of the query words respectively corresponding to the main requirement labels and the secondary requirement labels, and displays the search results. Therefore, the embodiment of the invention displays the search result meeting the ductility requirement to the user on the basis of displaying the search result meeting the most main search requirement to the user through one-time search behavior. That is, the embodiment of the present invention can provide the search results of multiple required dimensions related to the query term to the user through one search behavior, so as to reduce the repeated process of adjusting the query term by the user, improve the search efficiency, simplify the operation process of user search, and improve the user experience.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Device embodiment
Referring to fig. 3, a block diagram of a search apparatus according to an embodiment of the present invention is shown, where the apparatus may include:
a tag determining module 301, configured to determine a main demand tag according to a query term, and determine at least one secondary demand tag according to entity content included in the query term, where the main demand tag and the secondary demand tag belong to preset tags;
a result obtaining module 302, configured to obtain search results of the query term corresponding to the primary requirement tag and the secondary requirement tag respectively;
a result displaying module 303, configured to display the search result; and the search result is obtained by aggregating the search results of the main demand label and the secondary demand label, and the search result corresponding to the main demand label is preferentially displayed.
Optionally, the tag determining module includes a main requirement tag determining module, and the main requirement tag determining module includes:
the semantic analysis submodule is used for determining whether the query word is a question-answer query word or not, and if so, performing semantic analysis on the query word to obtain key information related to the search intention;
the information matching submodule is used for matching the key information with a preset semantic template to obtain a target semantic template corresponding to the key information, and the preset semantic template and the preset label have a mapping relation;
and the first determining submodule is used for determining the preset label corresponding to the target semantic template as a main requirement label.
Optionally, the tag determining module includes a main requirement tag determining module, and the main requirement tag determining module includes:
the content determining sub-module is used for determining whether the query word is an entity query word or not, and if so, determining entity content contained in the query word;
a data obtaining sub-module, configured to obtain historical search data related to the entity content, where the historical search data related to the entity content includes: historical click data related to the entity content, and/or historical word-changing data related to the entity content;
the target determining submodule is used for determining historical search data meeting preset conditions in the historical search data related to the entity content;
and the second determining submodule is used for determining that the preset tag corresponding to the historical search data meeting the preset condition is the main requirement tag.
Optionally, the tag determination module includes a secondary requirement tag determination module, and the secondary requirement tag determination module includes:
the identification and acquisition sub-module is used for identifying entity content contained in the query word and acquiring historical search data related to the entity content;
the data determination submodule is used for determining historical search data meeting preset conditions in the acquired historical search data related to the entity content;
and the third determining submodule is used for determining the preset label corresponding to the historical search data meeting the preset condition as a secondary demand label.
Optionally, the result display module is specifically configured to display search results corresponding to the primary requirement tag and the secondary requirement tag in a form of tab pages in a current interface of a search result page, where each tab page is used to display a search result corresponding to one requirement tag; and preferentially displaying a tab page where the search result corresponding to the main requirement tab is located, and switching and displaying the search result corresponding to each requirement tab in the current interface by switching the tab page.
Optionally, the apparatus further comprises:
the history acquisition module is used for acquiring history search data in a preset search scene, wherein the history search data in the preset search scene comprises: historical query words under the preset search scene, historical search results and historical click data corresponding to the historical query words;
the demand analysis module is used for carrying out demand analysis on historical search data under the preset search scene to determine a target demand point;
and the label setting module is used for establishing a preset label under the preset search scene according to the target demand point.
Optionally, the apparatus further comprises:
the data classification module is used for classifying the webpages in the preset database and identifying the search scenes corresponding to the webpages;
and the label marking module is used for marking the corresponding preset labels on the webpages according to the main contents in the webpages and establishing the mapping relation between each webpage and the preset labels under the corresponding search scene.
According to the embodiment of the invention, through one-time searching action, on the basis of displaying the search result meeting the most main search requirement to the user, the search result meeting the ductility requirement is also displayed to the user. That is, the embodiment of the present invention can provide the search results of multiple required dimensions related to the query term to the user through one search behavior, so as to reduce the repeated process of adjusting the query term by the user, improve the search efficiency, simplify the operation process of user search, and improve the user experience.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An embodiment of the present invention provides an apparatus for searching, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for: determining a main demand label according to a query word, and determining at least one secondary demand label according to entity content contained in the query word, wherein the main demand label and the secondary demand label belong to preset labels; obtaining search results of the query terms corresponding to the main requirement label and the secondary requirement label respectively; displaying the search result; and the search result is obtained by aggregating the search results of the main demand label and the secondary demand label, and the search result corresponding to the main demand label is preferentially displayed.
Optionally, the determining a main requirement label according to the query term includes:
determining whether the query word is a question-answer query word or not, and if so, performing semantic analysis on the query word to obtain key information related to a search intention;
matching the key information with a preset semantic template to obtain a target semantic template corresponding to the key information, wherein the preset semantic template and the preset label have a mapping relation;
and determining a preset label corresponding to the target semantic template as a main requirement label.
Optionally, the determining a main requirement label according to the query term includes:
determining whether the query term is an entity query term, and if so, determining entity content contained in the query term;
obtaining historical search data related to the entity content, wherein the historical search data related to the entity content comprises: historical click data related to the entity content, and/or historical word-changing data related to the entity content;
determining historical search data meeting preset conditions in the historical search data related to the entity content;
and determining a preset label corresponding to the historical search data meeting the preset condition as a main demand label.
Optionally, the determining at least one secondary requirement tag according to the entity content included in the query term includes:
identifying entity content contained in the query word, and acquiring historical search data related to the entity content;
determining historical search data meeting preset conditions in the acquired historical search data related to the entity content;
and determining the preset label corresponding to the historical search data meeting the preset condition as a secondary demand label.
Optionally, the presenting the search result includes:
displaying the search results corresponding to the main demand label and the secondary demand label in a form of label pages in a current interface of a search result page, wherein each label page is used for displaying the search result corresponding to one demand label;
and preferentially displaying a tab page where the search result corresponding to the main requirement tab is located, and switching and displaying the search result corresponding to each requirement tab in the current interface by switching the tab page.
Optionally, the device is also configured to execute the one or more programs by one or more processors including instructions for:
acquiring historical search data in a preset search scene, wherein the historical search data in the preset search scene comprises: historical query words under the preset search scene, historical search results and historical click data corresponding to the historical query words;
performing demand analysis on historical search data in the preset search scene to determine a target demand point;
and establishing a preset label under the preset search scene according to the target demand point.
Optionally, the device is also configured to execute the one or more programs by one or more processors including instructions for:
classifying the web pages in a preset database, and identifying search scenes corresponding to the web pages;
and marking corresponding preset labels on the webpages according to the main contents in the webpages, and establishing a mapping relation between each webpage and the preset labels under the corresponding search scenes.
Fig. 4 is a block diagram illustrating an apparatus 800 for searching according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice information processing mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also search for a change in the position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in the temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on radio frequency information processing (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 5 is a schematic diagram of a server in some embodiments of the invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer-readable storage medium in which instructions, when executed by a processor of an apparatus (server or terminal), enable the apparatus to perform the search method shown in fig. 1.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an apparatus (server or terminal), enable the apparatus to perform a search method, the method comprising: determining a main demand label according to a query word, and determining at least one secondary demand label according to entity content contained in the query word, wherein the main demand label and the secondary demand label belong to preset labels; obtaining search results of the query terms corresponding to the main requirement label and the secondary requirement label respectively; displaying the search result; and the search result is obtained by aggregating the search results of the main demand label and the secondary demand label, and the search result corresponding to the main demand label is preferentially displayed.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
The above detailed description is provided for a searching method, a searching apparatus and an apparatus for searching, and the present invention applies specific examples to illustrate the principle and the implementation of the present invention, and the above descriptions of the examples are only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (16)
1. A method of searching, the method comprising:
determining a main demand label according to a query word, and determining at least one secondary demand label according to entity content contained in the query word, wherein the main demand label and the secondary demand label belong to preset labels;
obtaining search results of the query terms corresponding to the main requirement label and the secondary requirement label respectively;
displaying the search result; and the search result is obtained by aggregating the search results of the main demand label and the secondary demand label, and the search result corresponding to the main demand label is preferentially displayed.
2. The method of claim 1, wherein determining a master requirement tag from a query term comprises:
determining whether the query word is a question-answer query word or not, and if so, performing semantic analysis on the query word to obtain key information related to a search intention;
matching the key information with a preset semantic template to obtain a target semantic template corresponding to the key information, wherein the preset semantic template and the preset label have a mapping relation;
and determining a preset label corresponding to the target semantic template as a main requirement label.
3. The method of claim 1, wherein determining a master requirement tag from a query term comprises:
determining whether the query term is an entity query term, and if so, determining entity content contained in the query term;
obtaining historical search data related to the entity content, wherein the historical search data related to the entity content comprises: historical click data related to the entity content, and/or historical word-changing data related to the entity content;
determining historical search data meeting preset conditions in the historical search data related to the entity content;
and determining a preset label corresponding to the historical search data meeting the preset condition as a main demand label.
4. The method of claim 1, wherein determining at least one secondary requirement label according to entity content contained in the query term comprises:
identifying entity content contained in the query word, and acquiring historical search data related to the entity content;
determining historical search data meeting preset conditions in the acquired historical search data related to the entity content;
and determining the preset label corresponding to the historical search data meeting the preset condition as a secondary demand label.
5. The method of claim 1, wherein said presenting the search results comprises:
displaying the search results corresponding to the main demand label and the secondary demand label in a form of label pages in a current interface of a search result page, wherein each label page is used for displaying the search result corresponding to one demand label;
and preferentially displaying a tab page where the search result corresponding to the main requirement tab is located, and switching and displaying the search result corresponding to each requirement tab in the current interface by switching the tab page.
6. The method of claim 1, further comprising:
acquiring historical search data in a preset search scene, wherein the historical search data in the preset search scene comprises: historical query words under the preset search scene, historical search results and historical click data corresponding to the historical query words;
performing demand analysis on historical search data in the preset search scene to determine a target demand point;
and establishing a preset label under the preset search scene according to the target demand point.
7. The method of claim 1, further comprising:
classifying the web pages in a preset database, and identifying search scenes corresponding to the web pages;
and marking corresponding preset labels on the webpages according to the main contents in the webpages, and establishing a mapping relation between each webpage and the preset labels under the corresponding search scenes.
8. A search apparatus, characterized in that the apparatus comprises:
the tag determination module is used for determining a main demand tag according to a query word and determining at least one secondary demand tag according to entity content contained in the query word, wherein the main demand tag and the secondary demand tag belong to preset tags;
the result acquisition module is used for acquiring search results of the query terms corresponding to the main requirement labels and the secondary requirement labels respectively;
the result display module is used for displaying the search result; and the search result is obtained by aggregating the search results of the main demand label and the secondary demand label, and the search result corresponding to the main demand label is preferentially displayed.
9. The apparatus of claim 8, wherein the tag determination module comprises a master demand tag determination module; the master demand label determination module includes:
the semantic analysis submodule is used for determining whether the query word is a question-answer query word or not, and if so, performing semantic analysis on the query word to obtain key information related to the search intention;
the information matching submodule is used for matching the key information with a preset semantic template to obtain a target semantic template corresponding to the key information, and the preset semantic template and the preset label have a mapping relation;
and the first determining submodule is used for determining the preset label corresponding to the target semantic template as a main requirement label.
10. The apparatus of claim 8, wherein the tag determination module comprises a master demand tag determination module; the master demand label determination module includes:
the content determining sub-module is used for determining whether the query word is an entity query word or not, and if so, determining entity content contained in the query word;
a data obtaining sub-module, configured to obtain historical search data related to the entity content, where the historical search data related to the entity content includes: historical click data related to the entity content, and/or historical word-changing data related to the entity content;
the target determining submodule is used for determining historical search data meeting preset conditions in the historical search data related to the entity content;
and the second determining submodule is used for determining that the preset tag corresponding to the historical search data meeting the preset condition is the main requirement tag.
11. The apparatus of claim 8, wherein the tag determination module comprises a secondary requirement tag determination module, the secondary requirement tag determination module comprising:
the identification and acquisition sub-module is used for identifying entity content contained in the query word and acquiring historical search data related to the entity content;
the data determination submodule is used for determining historical search data meeting preset conditions in the acquired historical search data related to the entity content;
and the third determining submodule is used for determining the preset label corresponding to the historical search data meeting the preset condition as a secondary demand label.
12. The apparatus of claim 8, wherein the results presentation module is configured to: displaying the search results corresponding to the main demand label and the secondary demand label in a form of label pages in a current interface of a search result page, wherein each label page is used for displaying the search result corresponding to one demand label; and preferentially displaying a tab page where the search result corresponding to the main requirement tab is located, and switching and displaying the search result corresponding to each requirement tab in the current interface by switching the tab page.
13. The apparatus of claim 8, further comprising:
the history acquisition module is used for acquiring history search data in a preset search scene, wherein the history search data in the preset search scene comprises: historical query words under the preset search scene, historical search results and historical click data corresponding to the historical query words;
the demand analysis module is used for carrying out demand analysis on historical search data under the preset search scene to determine a target demand point;
and the label setting module is used for establishing a preset label under the preset search scene according to the target demand point.
14. The apparatus of claim 8, further comprising:
the data classification module is used for classifying the webpages in the preset database and identifying the search scenes corresponding to the webpages;
and the label marking module is used for marking the corresponding preset labels on the webpages according to the main contents in the webpages and establishing the mapping relation between each webpage and the preset labels under the corresponding search scene.
15. An apparatus for searching, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for performing the searching method of any of claims 1-7.
16. A machine-readable medium having instructions stored thereon, which when executed by one or more processors of an apparatus, cause the apparatus to perform the search method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110656403.1A CN113407828A (en) | 2021-06-11 | 2021-06-11 | Searching method, searching device and searching device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110656403.1A CN113407828A (en) | 2021-06-11 | 2021-06-11 | Searching method, searching device and searching device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113407828A true CN113407828A (en) | 2021-09-17 |
Family
ID=77683705
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110656403.1A Pending CN113407828A (en) | 2021-06-11 | 2021-06-11 | Searching method, searching device and searching device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113407828A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114462398A (en) * | 2022-02-15 | 2022-05-10 | 平安科技(深圳)有限公司 | Entity searching method, system, equipment and medium |
CN114461889A (en) * | 2022-02-09 | 2022-05-10 | 北京百度网讯科技有限公司 | Data searching method and device, electronic equipment and program product |
CN114625935A (en) * | 2022-02-28 | 2022-06-14 | 深圳市世强元件网络有限公司 | Scene search method and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105404680A (en) * | 2015-11-25 | 2016-03-16 | 百度在线网络技术(北京)有限公司 | Searching recommendation method and apparatus |
US20180121810A1 (en) * | 2016-10-31 | 2018-05-03 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Method and apparatus for analyzing intention based on artificial intelligence |
-
2021
- 2021-06-11 CN CN202110656403.1A patent/CN113407828A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105404680A (en) * | 2015-11-25 | 2016-03-16 | 百度在线网络技术(北京)有限公司 | Searching recommendation method and apparatus |
US20180121810A1 (en) * | 2016-10-31 | 2018-05-03 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Method and apparatus for analyzing intention based on artificial intelligence |
Non-Patent Citations (1)
Title |
---|
陪学网ANDY等: "打造好产品 产品经理实践指南", 30 April 2021, 北京:机械工业出版社, pages: 153 - 154 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114461889A (en) * | 2022-02-09 | 2022-05-10 | 北京百度网讯科技有限公司 | Data searching method and device, electronic equipment and program product |
CN114462398A (en) * | 2022-02-15 | 2022-05-10 | 平安科技(深圳)有限公司 | Entity searching method, system, equipment and medium |
CN114462398B (en) * | 2022-02-15 | 2023-05-09 | 平安科技(深圳)有限公司 | Entity searching method, system, equipment and medium |
CN114625935A (en) * | 2022-02-28 | 2022-06-14 | 深圳市世强元件网络有限公司 | Scene search method and system |
CN114625935B (en) * | 2022-02-28 | 2024-10-01 | 深圳市世强元件网络有限公司 | Method and system for scene search |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107992604B (en) | Task item distribution method and related device | |
CN113407828A (en) | Searching method, searching device and searching device | |
CN111127053B (en) | Page content recommendation method and device and electronic equipment | |
CN107315487B (en) | Input processing method and device and electronic equipment | |
CN109918565B (en) | Processing method and device for search data and electronic equipment | |
KR101626874B1 (en) | Mobile terminal and method for transmitting contents thereof | |
CN112445970B (en) | Information recommendation method and device, electronic equipment and storage medium | |
CN110322305A (en) | Data object information providing method, device and electronic equipment | |
CN111382339A (en) | Search processing method and device and search processing device | |
WO2022257916A1 (en) | Recommendation method and apparatus | |
CN112000266B (en) | Page display method and device, electronic equipment and storage medium | |
CN112099704A (en) | Information display method and device, electronic equipment and readable storage medium | |
CN111752436A (en) | Recommendation method and device and recommendation device | |
CN108648031B (en) | Product recommendation method and device | |
CN112307294B (en) | Data processing method and device | |
CN111596832B (en) | Page switching method and device | |
CN112860921A (en) | Information searching method and device | |
CN110650364B (en) | Video attitude tag extraction method and video-based interaction method | |
CN110147426B (en) | Method for determining classification label of query text and related device | |
CN113779434A (en) | Search result display method and device and search result display device | |
CN110703968A (en) | Searching method and related device | |
CN113835594A (en) | Interaction method and device, electronic equipment and readable storage medium | |
CN114090870A (en) | Search result processing method and device, electronic equipment and storage medium | |
CN110020153B (en) | Searching method and device | |
CN113032057A (en) | Interaction method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |