Search

CN-122019875-A - Information searching method and device

CN122019875ACN 122019875 ACN122019875 ACN 122019875ACN-122019875-A

Abstract

The invention discloses an information searching method and device, and relates to the technical field of computers. The method comprises the steps of responding to search triggering operation of a user, obtaining a page route of a current page, determining a plurality of labels corresponding to the page route according to the page route, determining keywords to be searched, which are input by the user, responding to one of the labels, which is determined by the user, searching the keywords to be searched under the one label, and returning a search result list corresponding to the one label.

Inventors

  • YAO KAI

Assignees

  • 北京沃东天骏信息技术有限公司
  • 北京京东世纪贸易有限公司

Dates

Publication Date
20260512
Application Date
20210112

Claims (8)

  1. 1. An information search method, comprising: responding to search triggering operation of a user, and acquiring a page route of a current page; Determining a plurality of labels corresponding to the page route according to the page route; And responding to the user to determine one of the labels, searching the keyword to be searched under the one label, and returning a search result list corresponding to the one label.
  2. 2. The method of claim 1, wherein prior to searching for the keyword to be searched under the one of the tags, the method further comprises: and determining the keywords to be searched as effective keywords.
  3. 3. The method of claim 1, wherein determining a tag corresponding to the route based on the page route comprises: determining the route position of the current page according to the page route, and determining the label corresponding to the page route according to the route position.
  4. 4. The method of claim 1, wherein the tags include one or more of all, users, and communities.
  5. 5. An information search apparatus, comprising: The acquisition module is used for responding to search triggering operation of a user and acquiring a page route of a current page; The determining module is used for determining a plurality of labels corresponding to the page route according to the page route; And the searching module is used for responding to the user to determine one of the labels, searching the keyword to be searched under the one label and returning a search result list corresponding to the one label.
  6. 6. The apparatus of claim 5, wherein determining a tag corresponding to the route based on the page route comprises: determining the route position of the current page according to the page route, and determining the label corresponding to the page route according to the route position.
  7. 7. An electronic device, comprising: one or more processors; storage means for storing one or more programs, When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-4.
  8. 8. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-4.

Description

Information searching method and device The invention is a divisional application of the original patent application. The name of the original patent application is information searching method and device, the application number is 202110034524.2, and the application date is 2021, 01 and 12. Technical Field The present invention relates to the field of computer technologies, and in particular, to an information searching method and apparatus. Background Currently, a commonly used search mode is to collect search keywords (keywords) input by a user, and the user skips to a search result page after clicking a search button or triggering a search event function, so as to output and display a corresponding search result list in the search result page. In the process of realizing the invention, the inventor finds that the prior art has at least the following problems that the searching mode has relatively single function, is suitable for global searching use scenes, and is difficult to search out ideal results in face of the requirement of directional vertical searching. Disclosure of Invention In view of this, the embodiments of the present invention provide an information searching method and apparatus, which can implement directional vertical search, provide personalized search services, meet different search requirements, and improve search efficiency and accuracy. To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided an information search method including: responding to search triggering operation of a user, and acquiring a page route of a current page; determining a plurality of labels corresponding to the page route and keywords to be searched, which are input by the user, according to the page route; And searching the keyword to be searched under the labels to obtain a search result corresponding to each label. Optionally, the method further includes displaying the plurality of tags, and displaying search results corresponding to the tags under each tag. Optionally, according to the page route, determining the label corresponding to the route includes: determining the route position of the current page according to the page route; and determining a label corresponding to the page route according to the route position. Optionally, before searching the keyword to be searched under the tag, the method further includes: and determining the keywords to be searched as effective keywords. Optionally, the tag includes one or more of a total, a user, and a community. To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided an information search apparatus including: The acquisition module is used for responding to search triggering operation of a user and acquiring a page route of a current page; The determining module is used for determining a plurality of labels corresponding to the page route and keywords to be searched, which are input by the user, according to the page route; and the searching module is used for searching the keyword to be searched under the labels to obtain a searching result corresponding to each label. Optionally, the device further comprises a display module, which is used for displaying the labels and displaying the search results corresponding to the labels under each label. Optionally, the determining module is further configured to: determining the route position of the current page according to the page route; and determining a label corresponding to the page route according to the route position. Optionally, the device further comprises a verification module, which is used for determining that the keyword to be searched is a valid keyword. Optionally, the tag includes one or more of a total, a user, and a community. In order to achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided an electronic device including one or more processors, and a storage means for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the information searching method of the embodiments of the present invention. In order to achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided a computer-readable medium having stored thereon a computer program, characterized in that the program when executed by a processor implements an information search method of the embodiments of the present invention. The embodiment of the invention has the advantages that the method and the device have the following advantages or beneficial effects that because the page route of the current page is acquired by adopting the search triggering operation responding to the user, a plurality of labels corresponding to the page route and keywords to be searched input by the user are determined according to the pag