CN106777148B - Information retrieval method and device - Google Patents

Information retrieval method and device Download PDF

Info

Publication number
CN106777148B
CN106777148B CN201611179556.7A CN201611179556A CN106777148B CN 106777148 B CN106777148 B CN 106777148B CN 201611179556 A CN201611179556 A CN 201611179556A CN 106777148 B CN106777148 B CN 106777148B
Authority
CN
China
Prior art keywords
retrieval
information
search
display page
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611179556.7A
Other languages
Chinese (zh)
Other versions
CN106777148A (en
Inventor
陈昌兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611179556.7A priority Critical patent/CN106777148B/en
Publication of CN106777148A publication Critical patent/CN106777148A/en
Application granted granted Critical
Publication of CN106777148B publication Critical patent/CN106777148B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Item investigation

Abstract

The present disclosure relates to a method and apparatus for information retrieval, the method comprising: acquiring retrieval information input by a current page; sending the retrieval information to a server, and acquiring a retrieval result retrieved by the server according to the retrieval information; determining whether the number of the retrieval results is one; when the number of the retrieval results is one, acquiring all preset information related to the retrieval information; and switching the current page to an information display page of the retrieval result, wherein the information display page is used for displaying all information related to the retrieval information.

Description

Information retrieval method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for information retrieval.
Background
Currently, when a user purchases an online shopping, search information such as a name of a commodity of interest of the user can be input through a shopping website, the shopping website performs search processing according to the search information input by the user to obtain a search result, and the obtained search result is displayed to the user in a list form.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method and apparatus for information retrieval.
According to a first aspect of the embodiments of the present disclosure, there is provided an information retrieval method, applied to a terminal, including: acquiring retrieval information input by a current page; sending the retrieval information to a server, and acquiring a retrieval result retrieved by the server according to the retrieval information; determining whether the number of the retrieval results is one; when the number of the retrieval results is one, acquiring all preset information related to the retrieval information; and switching the current page to an information display page of the retrieval result, wherein the information display page is used for displaying all information related to the retrieval information. Therefore, when the retrieval result obtained according to the retrieval information of the user is one, the current page is directly switched to the information display page of the retrieval result without displaying the retrieval result display page to the user, so that the retrieval operation of the user is reduced, and the information retrieval efficiency is improved.
Optionally, the acquiring all preset information related to the retrieval information includes: sending a detail acquisition request message to the server; the detail obtaining request message is used for requesting to obtain all the preset information related to the retrieval information; and receiving a detail acquisition response message sent by the server in response to the detail acquisition request message, wherein the detail acquisition response message comprises all the preset information related to the retrieval information, so that all the information related to the retrieval information is actively acquired by the terminal.
Optionally, the search result includes a search number indication message, where the search number indication message is used to indicate the number of the search results, and the determining whether the number of the search results is one includes: acquiring the retrieval quantity indication message from the retrieval result; and when the number indicated by the retrieval number indication message is one, determining that the number of the retrieval results is one, so that the server determines the number of the retrieval results and informs the terminal.
Optionally, the acquiring all preset information related to the retrieval information includes: after the server determines that the retrieval information comprises a preset keyword, receiving target retrieval information retrieved by the server according to the preset keyword; the information display page comprises a target information display page, the target information display page is used for displaying the target retrieval information, and the switching of the current page to the information display page of the retrieval result comprises: and switching the current page to the target information display page, so that when the retrieval information input by the user comprises the preset keyword, the terminal directly switches the current page to the related page of the preset information corresponding to the preset keyword, thereby reducing the retrieval operation of the user and improving the information retrieval efficiency.
Optionally, when the number of the search results is multiple, the current page is switched to the search result presentation page, and the search result presentation page presents all the searched search results, so that when multiple search results are searched, the searched multiple search results are presented to the user.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for information retrieval, which is applied to a terminal, the apparatus including: the first acquisition module is configured to acquire retrieval information input by a current page; the first retrieval module is configured to send the retrieval information to a server and acquire a retrieval result retrieved by the server according to the retrieval information; a first judgment module configured to determine whether the number of the retrieval results is one; a second obtaining module configured to obtain all preset information related to the retrieval information when the number of the retrieval results is one; the first switching module is configured to switch the current page to an information display page of the retrieval result, wherein the information display page is used for displaying all information related to the retrieval information.
Optionally, the second obtaining module includes: a sending submodule configured to send a detail acquisition request message to the server; the detail obtaining request message is used for requesting to obtain all the preset information related to the retrieval information; a first receiving submodule configured to receive a detail obtaining response message sent by the server in response to the detail obtaining request message, wherein the detail obtaining response message includes all the preset information related to the retrieval information.
Optionally, the retrieval result includes a retrieval number indication message, where the retrieval number indication message is used to indicate the number of the retrieval results, and the first determining module is configured to obtain the retrieval number indication message from the retrieval result, and determine that the number of the retrieval results is one when the number indicated by the retrieval number indication message is one.
Optionally, the second obtaining module includes: the second receiving submodule is configured to receive target retrieval information retrieved by the server according to a preset keyword after the server determines that the retrieval information includes the preset keyword; the first switching module is configured to switch the current page to the target information display page, where the information display page includes a target information display page, and the target information display page is used for displaying the target retrieval information.
Optionally, the apparatus further comprises: and the second switching module is configured to switch the current page to the retrieval result display page when the number of the retrieval results is multiple, and the retrieval result display page displays all the retrieved retrieval results.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for information retrieval, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to obtain retrieval information input by a current page; sending the retrieval information to a server, and acquiring a retrieval result retrieved by the server according to the retrieval information; determining whether the number of the retrieval results is one; when the number of the retrieval results is one, acquiring all preset information related to the retrieval information; and switching the current page to an information display page of the retrieval result, wherein the information display page is used for displaying all information related to the retrieval information.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions therein, which when executed by a processor of a terminal, enable the terminal to perform a method of information retrieval, the method comprising: acquiring retrieval information input by a current page; sending the retrieval information to a server, and acquiring a retrieval result retrieved by the server according to the retrieval information; determining whether the number of the retrieval results is one; when the number of the retrieval results is one, acquiring all preset information related to the retrieval information; and switching the current page to an information display page of the retrieval result, wherein the information display page is used for displaying all information related to the retrieval information.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: acquiring retrieval information input by a current page; sending the retrieval information to a server, and acquiring a retrieval result retrieved by the server according to the retrieval information; determining whether the number of the retrieval results is one; when the number of the retrieval results is one, acquiring all preset information related to the retrieval information; and switching the current page to an information display page of the retrieval result, wherein the information display page is used for displaying all information related to the retrieval information, so that when one retrieval result is obtained according to the retrieval information of the user, the current page is directly switched to the information display page of the retrieval result without displaying the retrieval result display page to the user, thereby reducing the retrieval operation of the user and improving the information retrieval efficiency.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method of information retrieval in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating another method of information retrieval in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a third method of information retrieval in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating an arrangement of information retrieval according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating another arrangement of information retrieval apparatus according to an exemplary embodiment;
FIG. 6 is a block diagram illustrating a third apparatus for information retrieval in accordance with an illustrative embodiment;
FIG. 7 is a block diagram illustrating a fourth apparatus for information retrieval in accordance with an illustrative embodiment;
fig. 8 is a hardware block diagram illustrating an apparatus for information retrieval according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The method can be applied to a scene of purchasing commodities on the internet, for example, in the process that a user purchases a mobile phone through a millet mall, the user opens an application of the millet mall, inputs a red rice mobile phone in a search bar, clicks a search button, and then the application displays a search result display page to the user, the search result display page displays a plurality of search results related to the red rice mobile phone, and each search result displays related pictures and brief descriptions, for example, the search result comprises a red rice 4 high matching, and then the information displayed to the user comprises the red rice 4 high matching picture and price information; after a plurality of search results are searched, the search results are displayed through a search result display page, a user determines the search result concerned by the user from the search results, and clicks the search result concerned by the user, the search result concerned by the user is entered into an information display page of the search result concerned by the user, and the information display page displays detailed information of the search result concerned by the user, such as detailed parameters and introduction of a mobile phone, purchase comments and other information.
However, when the number of search results to be searched is 1, for example, if the user inputs "red rice cell phone 3S32 GB" in the search field, the search result to be searched is only "red rice cell phone 3S32 GB", and the search result is displayed to the user through the search result display page (only one displayed search result), the displayed information is brief information such as a picture and a price of the cell phone, at this time, since the user pays more attention to detailed information displayed on the information display page of the search result, the user still needs to click the displayed search result to enter the information display page of the search result, and thus, when there is only one search result, the search operation of the user is too cumbersome, and the efficiency of information search is reduced.
In order to solve the above problem, the present disclosure provides an information retrieval method and apparatus, where in a case that there is only one retrieval result, an information presentation page is directly presented without presenting the retrieval result presentation page for presenting the retrieval result to a user, thereby reducing retrieval operations of the user and improving information retrieval efficiency.
The present disclosure is described in detail below with reference to specific examples.
Fig. 1 is a flowchart illustrating a method for information retrieval according to an exemplary embodiment, which may be used in a terminal, as shown in fig. 1, and includes the following steps:
in step 101, retrieval information input by a current page is acquired.
In step 102, the search information is sent to a server, and a search result obtained by the server according to the search information is obtained.
In step 103, it is determined whether the number of the retrieval results is one.
In step 104, when the number of the search results is one, all information related to the search information set in advance is acquired.
In step 105, the current page is switched to the information display page of the search result.
The information display page is used for displaying all information related to the retrieval information.
For example, if the search result is a mobile phone, all information related to the search information includes information such as a purchase interface (e.g., an interface showing a purchase color and quantity), product details, specification parameters, and user evaluation and related recommendations of the mobile phone.
By adopting the method, when the retrieval result obtained according to the retrieval information of the user is one, the current page is directly switched to the information display page of the retrieval result without displaying the retrieval result display page to the user, so that the retrieval operation of the user is reduced, and the information retrieval efficiency is improved.
Fig. 2 is a flow chart illustrating a method of information retrieval, according to an example embodiment, as shown in fig. 2, the method comprising the steps of:
in step 201, the terminal obtains the search information input by the current page.
In step 202, the terminal transmits a retrieval request message to the server.
Wherein the retrieval request message includes the retrieval information.
In step 203, the server obtains the search information from the search request message and extracts a search key from the search information.
For example, if the search information input by the user on the current page is "red-rice mobile phone 3S32 GB", the search keywords extracted by the server are "red-rice mobile phone", "3S", and "32 GB".
In step 204, the server performs a search according to the search key to obtain a search result, and sends a search request response message including the search result to the terminal.
In step 205, the terminal determines whether the number of the retrieval results is one.
In this step, the terminal determining whether the number of the search results is one may include the following two implementation manners:
the first method is as follows: and the terminal determines the number of the retrieval results to be one according to the received retrieval results.
The second method comprises the following steps: in step 204, the search result includes a search number indication message, the terminal obtains the search number indication message from the search result, and determines whether the number of the search result is one when the number indicated by the search number indication message is one.
The first and second modes are different in that the first mode is that the terminal determines whether the number of the retrieved retrieval results is one or not according to the retrieval result sent by the server, the second mode is that the server determines the number of the retrieved retrieval results and sends the number of the retrieval results to the terminal through the retrieval number indication message, and the terminal determines whether the number of the retrieval results is one or not according to the retrieval number indication message.
When it is determined that the number of the retrieval results is one, performing step 206 and step 207;
when it is determined that the number of the search results is plural, step 208 is performed.
In step 206, the terminal acquires all the preset information related to the retrieval information.
In this step, if it is determined by the terminal in step 205 that there is one retrieved search result according to the search result sent by the server, the terminal may send a detail acquisition request message for acquiring all information related to the retrieved information to the server, and receive a detail acquisition response message sent by the server in response to the detail acquisition request message, where the detail acquisition response message includes all information related to the retrieved information.
If the number of retrieved results is determined by the server in step 205, and the number of retrieved results is sent to the terminal via the retrieval number indication message, and the terminal determines whether the number of retrieved results is one according to the retrieval number indication message, then when the number of retrieved results is determined by the server to be one, the server may include all information related to the retrieved information in the sent retrieval result in step 204, and the terminal may obtain all information related to the retrieved information from the retrieval result.
In step 207, the terminal switches the current page to the information presentation page of the search result.
The information display page is used for displaying all preset information related to the retrieval information.
For example, when the search information input by the user is "red rice cell phone 3S32 GB", the search result is an information display page corresponding to the red rice cell phone 3S32GB, and the information display page displays the purchase interface (for example, an interface displaying the purchase color and quantity), the details of the product, the specification parameters, and the information such as the user evaluation and the related recommendation.
In step 208, the terminal switches the current page to the search result presentation page, which presents all the searched search results.
For example, when the search information input by the user is "red rice 4 high matching", a plurality of related search results are searched, for example, the searched results include "red rice 4 high matching 3G +32 GB", "red rice 4 high matching flip cover case", and "red rice 4 high matching standard high transparent film", and each search result only shows brief information, for example, the brief information may be information such as picture information and price and name of the search result, and does not include detailed information such as "purchase interface (for example, interface showing purchase color and quantity), details of goods, specification parameters, and user evaluation and related recommendation", and of course, the brief information is merely an example, and the present disclosure does not limit this.
In order to further acquire detailed information of the search result, in another embodiment of the present disclosure, the terminal receives a trigger instruction of the user for a target search result in the search result presentation page, and switches the current page to the information presentation page of the target search result according to the trigger instruction.
For example, still taking the example that the search information input by the user is "red rice 4 high matching", the user determines "red rice 4 high matching 2G +22 GB" as a target search result from the search result, and clicks the target search result, so as to switch the search result display page to the information display page, so as to display detailed information (such as details of the product, specification parameters, and user evaluation and related recommendation) of the red rice mobile phone 4 high matching.
By adopting the method, when the retrieval result obtained according to the retrieval information of the user is one, all the preset information of the retrieval result is sent to the terminal, so that the terminal directly switches the current page to the information display page of the retrieval result without displaying the retrieval result display page to the user, thereby reducing the retrieval operation of the user and improving the retrieval efficiency of the information.
Fig. 3 is a flow chart illustrating a method of information retrieval, according to an example embodiment, as shown in fig. 3, the method comprising the steps of:
in step 301, the terminal obtains the search information input by the current page.
In step 302, the terminal transmits a retrieval request message to the server.
Wherein the retrieval request message includes the retrieval information.
In step 303, the server obtains the search information from the search request message and extracts a search key from the search information.
For example, if the search information input by the user on the current page is "red-rice mobile phone 3S32 GB", the search keywords extracted by the server are "red-rice mobile phone", "3S", and "32 GB"; for another example, if the search information input by the user is "buy red rice cell phone 3S32 GB", the search keywords extracted by the server are "buy", "red rice cell phone", "3S", and "32 GB".
In step 304, the server performs a search according to the search key to obtain search results, and determines whether the number of the search results is one.
When the number of the retrieved retrieval results is one, executing step 305 to step 310;
when the number of retrieved retrieval results is plural, step 311 and step 312 are executed.
In step 305, the server determines whether the search keyword includes a preset keyword.
For example, if the preset keyword is "buy", the search information input by the user is "buy red rice cell phone 3S32 GB", and since the search keyword in the search information includes "buy", the search keyword is determined to include the preset keyword.
Executing step 306 to step 308 when it is determined that the search keyword includes the preset keyword;
upon determining that the search key does not include the preset key, steps 309 and 310 are performed.
In step 306, the server retrieves the target retrieval information according to the preset keyword.
For example, if the search information input by the user is "buy the red rice cell phone 3S32 GB", and the preset keyword is "buy", the target search information is purchase information of the red rice cell phone 3S32GB ", such as information of the color and number of the cell phone, which is only an example, and the disclosure is not limited thereto, and may further include other information, such as the cell phone offer information, delivery information, and the like.
In step 307, the server transmits the target retrieval information to the terminal.
In step 308, the terminal switches the current page to a target information presentation page.
In one possible implementation, the target information presentation page may include an interface related to a preset keyword in the information presentation page; the information display page is used for displaying all preset information related to the retrieval information, and the terminal can switch the current page to an interface related to a preset keyword in the information display page.
For example, still taking the search information input by the user as "buy the red rice mobile phone 3S32 GB", the information display page shows the purchase interface (e.g. the interface showing the purchase color and quantity), the commodity details, the specification parameters, and the information such as the user evaluation and the related recommendation) of the "red rice mobile phone 3S32 GB", in this embodiment, the terminal can switch the current page to the purchase interface in the information display page, so as to facilitate the user to view the purchase information (e.g. the information such as the color and quantity of the mobile phone) of the mobile phone at the purchase interface, and select the color and quantity of the mobile phone to be purchased, the user can further click the purchase button to enter the purchase information confirmation page after selecting the purchase information, wherein the purchase information confirmation page is used for showing the purchase information selected by the user (e.g. showing the information such as the quantity or the color of the mobile phone selected by the user), for the user to confirm.
For another example, the retrieval information input by the user may also be "parameters of the red-rice cell phone 3S32 GB", and the information display page displays information such as a purchase interface (for example, an interface displaying purchase color and quantity), commodity details, specification parameters, and user evaluation and related recommendation of the "red-rice cell phone 3S32 GB", in this embodiment, the terminal may switch the current page to an interface for displaying the specification parameters in the information display page, so that the user can visually check the parameter information of the cell phone.
Therefore, the current page can be directly switched to the display interface of the information concerned by the user, the user can conveniently check the related information, and the user experience is improved.
In another possible implementation manner, the target information presentation page may include a page related to a preset keyword; the terminal may switch the current page to a page related to a preset keyword.
For example, continuing with the example of the search information input by the user being "buy red mobile phone 3S32 GB", the terminal may switch the current page to a purchase information determination page in which the user may change the relevant purchase information (e.g., change the amount or color of the mobile phone selected for purchase by the user and the shipping address), and may pay by clicking a payment button after determining that the purchase information is correct.
In step 309, the server transmits a retrieval request response message including the retrieval result to the terminal.
Wherein the retrieval request response message includes all information related to the retrieval information.
In this step, the server may directly transmit all information related to the search information to the terminal through the search result, and the terminal may acquire all information related to the search information set in advance from the search result. Therefore, signaling interaction between the terminal and the server is reduced, and system resources are saved.
In step 310, after receiving the search request response message, the terminal switches the current page to the information display page of the search result.
For example, when the search information input by the user is "red rice cell phone 3S32 GB", the search result is an information display page corresponding to the red rice cell phone 3S32GB, and the information display page displays the purchase interface (for example, an interface displaying the purchase color and quantity), the details of the product, the specification parameters, and the information such as the user evaluation and the related recommendation.
In step 311, the server transmits a search request response message including the search result to the terminal.
In step 312, after receiving the search request response message, the terminal switches the current page to the search result display page.
Wherein, the retrieval result display page displays all retrieved retrieval results.
For example, when the search information input by the user is "red rice 4 high matching", a plurality of related search results are searched, for example, the searched results include "red rice 4 high matching 3G +32 GB", "red rice 4 high matching flip cover case", and "red rice 4 high matching standard high transparent film", and each search result only shows brief information, for example, the brief information may be information such as picture information and price and name of the search result, and does not include detailed information such as "purchase interface (for example, interface showing purchase color and quantity), details of goods, specification parameters, and user evaluation and related recommendation", and of course, the brief information is merely an example, and the present disclosure does not limit this.
In order to further acquire detailed information of the search result, in another embodiment of the present disclosure, the terminal receives a trigger instruction of the user for a target search result in the search result presentation page, and switches the current page to the information presentation page of the target search result according to the trigger instruction.
For example, still taking the example that the search information input by the user is "red rice 4 high matching", the user determines "red rice 4 high matching 2G +32 GB" as a target search result from the search result, and clicks the target search result, so as to switch the search result display page to the information display page, so as to display detailed information (such as details of the product, specification parameters, and user evaluation and related recommendation) of the red rice mobile phone 4 high matching.
By adopting the method, when the retrieval result obtained according to the retrieval information of the user is one, all the preset information of the retrieval result is sent to the terminal, so that the terminal directly switches the current page to the information display page of the retrieval result without displaying the retrieval result display page to the user.
Fig. 4 is a block diagram illustrating an apparatus for information retrieval according to an exemplary embodiment, as shown in fig. 4, applied to a terminal, the apparatus including: a first obtaining module 401, a first retrieving module 402, a first judging module 403, a second obtaining module 404 and a first switching module 405, wherein,
a first obtaining module 401 configured to obtain retrieval information input by a current page;
a first retrieval module 402 configured to send the retrieval information to a server and obtain a retrieval result retrieved by the server according to the retrieval information;
a first judgment module 403 configured to determine whether the number of the retrieval results is one;
a second obtaining module 404 configured to obtain all preset information related to the retrieval information when the number of the retrieval results is one;
a first switching module 405 configured to switch the current page to an information presentation page of the search result, the information presentation page being used for presenting all information related to the search information.
Alternatively, as shown in fig. 5, fig. 5 is a block diagram of the second obtaining module 504 shown in the embodiment shown in fig. 4, and the second obtaining module 404 includes:
a sending submodule 4041 configured to send a detail acquisition request message to the server; the detail obtaining request message is used for requesting to obtain all preset information related to the retrieval information;
a first receiving sub-module 4042, configured to receive a detail obtaining response message sent by the server in response to the detail obtaining request message, where the detail obtaining response message includes all the preset information related to the retrieved information.
Optionally, the search result includes a search quantity indication message, where the search quantity indication message is used to indicate the quantity of the search result, and the first determining module is configured to obtain the search quantity indication message from the search result, and determine that the quantity of the search result is one when the quantity indicated by the search quantity indication message is one.
Alternatively, as shown in fig. 6, fig. 6 is a block diagram of the second obtaining module 504 shown in the embodiment shown in fig. 4, where the second obtaining module 404 includes:
a second receiving submodule 4043, configured to receive target retrieval information retrieved by the server according to a preset keyword after the server determines that the retrieval information includes the preset keyword;
the first switching module 405 is configured to switch the current page to the target information presentation page, where the information presentation page includes a target information presentation page, and the target information presentation page is used for presenting the target search information.
Optionally, as shown in fig. 7, the apparatus further includes:
a second switching module 406, configured to switch the current page to the search result presentation page when the number of the search results is multiple, where the search result presentation page presents all the searched search results.
By adopting the device, when the retrieval result obtained according to the retrieval information of the user is one, the current page is directly switched to the information display page of the retrieval result without displaying the retrieval result display page to the user, so that the retrieval operation of the user is reduced, and the information retrieval efficiency is improved.
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.
Fig. 8 is a block diagram illustrating an apparatus 800 for information retrieval 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. 8, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a 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 component 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the above-described method of information retrieval. 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 operations at the apparatus 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.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
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 camera and/or the rear 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 recognition 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 status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 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 Identification (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 of information retrieval.
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 of information retrieval 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.
The instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform a method of information retrieval, the method comprising: acquiring retrieval information input by a current page; sending the retrieval information to a server, and acquiring a retrieval result retrieved by the server according to the retrieval information; determining whether the number of the search results is one; when the number of the retrieval results is one, acquiring all preset information related to the retrieval information; and switching the current page to an information display page of the retrieval result, wherein the information display page is used for displaying all information related to the retrieval information.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure 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 present disclosure is limited only by the appended claims.

Claims (10)

1. An information retrieval method is applied to a terminal and comprises the following steps:
acquiring retrieval information input by a current page;
sending the retrieval information to a server, and acquiring a retrieval result retrieved by the server according to the retrieval information;
determining whether the number of the retrieval results is one;
when the number of the retrieval results is one, acquiring all preset information related to the retrieval information;
and under the condition that a display page of the retrieval result is not displayed, switching the current page to an information display page of the retrieval result, wherein the information display page is used for displaying all information related to the retrieval information.
2. The method according to claim 1, wherein the obtaining of all preset information related to the retrieval information comprises:
sending a detail acquisition request message to the server; the detail obtaining request message is used for requesting to obtain all the preset information related to the retrieval information;
and receiving a detail obtaining response message sent by the server in response to the detail obtaining request message, wherein the detail obtaining response message comprises all the preset information related to the retrieval information.
3. The method of claim 1, wherein the search result comprises a search number indication message, wherein the search number indication message is used to indicate the number of the search results, and wherein the determining whether the number of the search results is one comprises:
acquiring the retrieval quantity indication message from the retrieval result;
and when the number indicated by the retrieval number indication message is one, determining that the number of the retrieval results is one.
4. The method according to claim 1, wherein the obtaining of all preset information related to the retrieval information comprises:
after the server determines that the retrieval information comprises a preset keyword, receiving target retrieval information retrieved by the server according to the preset keyword;
the information display page comprises a target information display page, the target information display page is used for displaying the target retrieval information, and the switching of the current page to the information display page of the retrieval result comprises:
and switching the current page to the target information display page.
5. The method according to claim 1, wherein when the number of the search results is plural, the current page is switched to the search result presentation page, and the search result presentation page presents all the searched search results.
6. An information retrieval device, applied to a terminal, includes:
the first acquisition module is configured to acquire retrieval information input by a current page;
the first retrieval module is configured to send the retrieval information to a server and acquire a retrieval result retrieved by the server according to the retrieval information;
a first judgment module configured to determine whether the number of the retrieval results is one;
a second obtaining module configured to obtain all preset information related to the retrieval information when the number of the retrieval results is one;
the first switching module is configured to switch the current page to an information display page of the retrieval result under the condition that the display page of the retrieval result is not displayed, wherein the information display page is used for displaying all information related to the retrieval information.
7. The apparatus of claim 6, wherein the second obtaining module comprises:
a sending submodule configured to send a detail acquisition request message to the server; the detail obtaining request message is used for requesting to obtain all the preset information related to the retrieval information;
a first receiving submodule configured to receive a detail obtaining response message sent by the server in response to the detail obtaining request message, wherein the detail obtaining response message includes all the preset information related to the retrieval information.
8. The apparatus according to claim 6, wherein the retrieval result comprises a retrieval number indication message, the retrieval number indication message indicating the number of the retrieval results, and the first determining module is configured to obtain the retrieval number indication message from the retrieval result, and determine that the number of the retrieval results is one when the number indicated by the retrieval number indication message is one.
9. The apparatus of claim 6, wherein the second obtaining module comprises:
the second receiving submodule is configured to receive target retrieval information retrieved by the server according to a preset keyword after the server determines that the retrieval information includes the preset keyword;
the first switching module is configured to switch the current page to a target information display page, where the information display page includes a target information display page, and the target information display page is used for displaying the target retrieval information.
10. The apparatus of claim 6, further comprising:
and the second switching module is configured to switch the current page to the retrieval result display page when the number of the retrieval results is multiple, and the retrieval result display page displays all the retrieved retrieval results.
CN201611179556.7A 2016-12-19 2016-12-19 Information retrieval method and device Active CN106777148B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611179556.7A CN106777148B (en) 2016-12-19 2016-12-19 Information retrieval method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611179556.7A CN106777148B (en) 2016-12-19 2016-12-19 Information retrieval method and device

Publications (2)

Publication Number Publication Date
CN106777148A CN106777148A (en) 2017-05-31
CN106777148B true CN106777148B (en) 2020-04-07

Family

ID=58890455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611179556.7A Active CN106777148B (en) 2016-12-19 2016-12-19 Information retrieval method and device

Country Status (1)

Country Link
CN (1) CN106777148B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184230A (en) * 2011-05-11 2011-09-14 北京百度网讯科技有限公司 Method and device for displaying search results
CN103473273A (en) * 2013-08-22 2013-12-25 百度在线网络技术(北京)有限公司 Information search method, information search device and server
CN104281671A (en) * 2014-09-28 2015-01-14 百度在线网络技术(北京)有限公司 Method and device for processing detail pages of search results
CN104572846A (en) * 2014-12-12 2015-04-29 百度在线网络技术(北京)有限公司 Method, device and system for recommending hot words
CN104765809A (en) * 2015-04-02 2015-07-08 北京奇虎科技有限公司 Preview method and device of search pictures of mobile terminal
CN105224225A (en) * 2015-09-23 2016-01-06 百度在线网络技术(北京)有限公司 The changing method of details page and device
CN105930527A (en) * 2016-06-01 2016-09-07 北京百度网讯科技有限公司 Searching method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184230A (en) * 2011-05-11 2011-09-14 北京百度网讯科技有限公司 Method and device for displaying search results
CN103473273A (en) * 2013-08-22 2013-12-25 百度在线网络技术(北京)有限公司 Information search method, information search device and server
CN104281671A (en) * 2014-09-28 2015-01-14 百度在线网络技术(北京)有限公司 Method and device for processing detail pages of search results
CN104572846A (en) * 2014-12-12 2015-04-29 百度在线网络技术(北京)有限公司 Method, device and system for recommending hot words
CN104765809A (en) * 2015-04-02 2015-07-08 北京奇虎科技有限公司 Preview method and device of search pictures of mobile terminal
CN105224225A (en) * 2015-09-23 2016-01-06 百度在线网络技术(北京)有限公司 The changing method of details page and device
CN105930527A (en) * 2016-06-01 2016-09-07 北京百度网讯科技有限公司 Searching method and device

Also Published As

Publication number Publication date
CN106777148A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN108932253B (en) Multimedia search result display method and device
EP3316527A1 (en) Method and device for managing notification messages
CN109064277B (en) Commodity display method and device
CN112561631A (en) Information display method and device, electronic equipment and storage medium
CN113382308B (en) Information display method and device, electronic equipment and computer readable storage medium
CN105512909A (en) Commodity recommendation method apparatus
CN105488715B (en) Target object information query method and device
US20170032287A1 (en) Method and device for providing ticket information
WO2023045220A1 (en) Information interaction method and apparatus
CN107423386B (en) Method and device for generating electronic card
CN111667328B (en) Page content display method and device and electronic equipment
CN109583874B (en) Commodity price updating method and device
CN107402767B (en) Method and device for displaying push message
CN107563876B (en) Article purchasing method and apparatus, and storage medium
CN108230094B (en) Vehicle recommendation method and device
CN112131466A (en) Group display method, device, system and storage medium
CN114025181B (en) Information display method and device, electronic equipment and storage medium
CN113343075B (en) Virtual resource pushing method and device, electronic equipment and storage medium
CN106960026B (en) Search method, search engine and electronic equipment
CN107360322B (en) Information prompting method and device
CN107590717B (en) Shopping method, device and storage medium based on internet
CN107705170B (en) Order presentation method and device
CN106777148B (en) Information retrieval method and device
CN106021587B (en) Page updating method, device and system
CN111325567B (en) User rights and interests information display 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
GR01 Patent grant
GR01 Patent grant