CN110750705A - Search result display method and device and electronic equipment - Google Patents

Search result display method and device and electronic equipment Download PDF

Info

Publication number
CN110750705A
CN110750705A CN201810737630.5A CN201810737630A CN110750705A CN 110750705 A CN110750705 A CN 110750705A CN 201810737630 A CN201810737630 A CN 201810737630A CN 110750705 A CN110750705 A CN 110750705A
Authority
CN
China
Prior art keywords
search result
search
attribute
template
display template
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
Application number
CN201810737630.5A
Other languages
Chinese (zh)
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 High Technology Co Ltd De Map
Original Assignee
Beijing High Technology Co Ltd De Map
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 High Technology Co Ltd De Map filed Critical Beijing High Technology Co Ltd De Map
Priority to CN201810737630.5A priority Critical patent/CN110750705A/en
Publication of CN110750705A publication Critical patent/CN110750705A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a display method and device of search results and electronic equipment. The method comprises the following steps: receiving a search request sent by a client, wherein the search request at least carries search words input by a user; obtaining at least one search result related to the search term, wherein each search result comprises at least one attribute and an attribute value thereof; acquiring a search result display template matched with the attribute of each search result from a preset template set; and returning the search result and the search result display template to the client, and rendering the search result display template by the client to display the search result. According to the embodiment of the invention, the search result display template matched with the attribute of the search result is preset, so that the client can render different templates to display different search results, the defect of single display style of the search results is overcome, and the expandability is enhanced.

Description

Search result display method and device and electronic equipment
Technical Field
The present invention relates to the field of search technologies, and in particular, to a method and an apparatus for displaying search results, and an electronic device.
Background
A search engine is a common information search tool, and a user can search for required information through the search engine.
In order to help users search needed information conveniently and quickly, when a user inputs a search word (query word), a search engine automatically generates search results related to the search word, including search suggestions (Suggest), for the user to select.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems: in the prior art, when a search result is displayed, the search result can only be displayed in a fixed mode, and the expandability is poor.
Disclosure of Invention
The embodiment of the invention provides a method and a device for displaying search results and electronic equipment, which aim to overcome the defect of single display style of the search results in the prior art and enhance expandability.
In order to achieve the above object, an embodiment of the present invention provides a method for displaying search results, including:
receiving a search request sent by a client, wherein the search request at least carries search words input by a user;
obtaining at least one search result related to the search term, wherein each search result comprises at least one attribute and an attribute value thereof;
acquiring a search result display template matched with the attribute of each search result from a preset template set;
and returning the search result and the search result display template to the client, and rendering the search result display template by the client to display the search result.
The embodiment of the invention also provides a display method of the search result, which comprises the following steps:
sending a search request to a server, wherein the search request at least carries search words input by a user;
receiving a search result returned by the server in response to the search request and a search result display template, wherein the search result comprises at least one attribute and an attribute value thereof, and the search result display template is matched with the attribute of the search result;
and rendering the search result display template to display the search result.
The embodiment of the invention also provides a device for displaying the search result, which comprises:
the search request receiving module is used for receiving a search request sent by a client, wherein the search request at least carries search words input by a user;
a search result acquisition module for acquiring at least one search result related to the search term, each search result including at least one attribute and an attribute value thereof;
the template acquisition module is used for acquiring a search result display template matched with the attribute of each search result from a preset template set;
and the data sending module is used for returning the search result and the search result display template to the client, so that the client renders the search result display template to display the search result.
The embodiment of the invention also provides a device for displaying the search result, which comprises:
the search request sending module is used for sending a search request to the server, wherein the search request at least carries search words input by a user;
the data receiving module is used for receiving a search result returned by the server in response to the search request and a search result display template, wherein the search result comprises at least one attribute and an attribute value thereof, and the search result display template is matched with the attribute of the search result;
and the rendering module is used for rendering the search result display template so as to display the search result.
An embodiment of the present invention further provides an electronic device, including:
a memory for storing a program;
a processor for executing the program stored in the memory for:
receiving a search request sent by a client, wherein the search request at least carries search words input by a user;
obtaining at least one search result related to the search term, wherein each search result comprises at least one attribute and an attribute value thereof;
acquiring a search result display template matched with the attribute of each search result from a preset template set;
and returning the search result and the search result display template to the client, and rendering the search result display template by the client to display the search result.
An embodiment of the present invention further provides an electronic device, including:
a memory for storing a program;
a processor for executing the program stored in the memory for:
sending a search request to a server, wherein the search request at least carries search words input by a user;
receiving a search result returned by the server in response to the search request and a search result display template, wherein the search result comprises at least one attribute and an attribute value thereof, and the search result display template is matched with the attribute of the search result;
and rendering the search result display template to display the search result.
According to the method and the device for displaying the search results and the electronic device, the search result display template matched with the attributes of the search results is preset, so that the client can render different templates to display different search results, the defect that the display style of the search results is single is overcome, and the expandability is enhanced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1a is a diagram illustrating the effect of search results provided by an embodiment of the present invention;
fig. 1b is a system block diagram of a service system according to an embodiment of the present invention;
FIG. 2a is a flowchart of an embodiment of a method for displaying search results provided by the present invention;
FIG. 2b is a first schematic view of a search result display method according to an embodiment of the present invention;
FIG. 2c is a schematic diagram of a control in an embodiment of a method for displaying search results provided by the present invention;
FIG. 3 is a flowchart of another embodiment of a method for displaying search results provided by the present invention;
FIG. 4a is a flowchart of another embodiment of a method for displaying search results provided by the present invention;
FIG. 4b is a second schematic view of a search result display method according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an embodiment of a device for displaying search results according to the present invention;
FIG. 6 is a schematic structural diagram of another embodiment of a device for displaying search results according to the present invention;
FIG. 7 is a schematic structural diagram of an embodiment of an electronic device provided in the present invention;
fig. 8 is a schematic structural diagram of another embodiment of the electronic device provided in the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the prior art, a database is searched for search results (e.g., Yihehe, Yihe, and solar buildings, etc.) based on search terms (e.g., yihe), which are typically presented in a fixed (default) format (template). However, in the field of electronic maps, the inventors found that, when a search result is a point of interest, the attributes of different points of interest are different, and if a fixed template is used to show different points of interest, the attributes of the points of interest cannot be completely shown, which results in a poor user experience. Fig. 1a is a diagram illustrating a display effect of a search result according to an embodiment of the present invention. As shown in fig. 1a, the point of interest "beijing city sunny-facing area north river park" is a scenic spot, and its attributes include: name, star comments, distance, location, scenic spot rating, scenic spot introduction, and the like; and the oil first steam sixteen station in China oil is a gas station, and the properties of the gas station comprise: name, whether to camp directly, distance, time for driving, group to which it belongs, location, price, route planning, etc. It can be seen that the attributes of the interest points are different, and the content that the user wants to show is also different, and if the showing style is fixed, the depth information of the interest points cannot be completely shown, so that the user experience is deteriorated. Therefore, aiming at the defects of the prior art, the application provides a display scheme of search results, and the main principle is as follows: the method comprises the steps that more than one search result display template used for displaying search results is preset on a server, the templates are matched with attributes of the search results, and after a client receives the search results returned by the server and the corresponding templates, different templates can be rendered to display different search results, so that the defect that the display style of the search results is single is overcome, and the expandability is enhanced.
The method provided by the embodiment of the invention can be applied to any business system with a search function. Fig. 1b is a system block diagram of a service system provided in an embodiment of the present invention, and the structure shown in fig. 1b is only one example of a service system to which the technical solution of the present invention can be applied. As shown in fig. 1b, the service system includes a server and at least one client. The server includes: the search request receiving module, the search result obtaining module, the template obtaining module and the data sending module may be configured to execute the processing flow shown in fig. 2a below; the client comprises: the search request sending module, the data receiving module and the rendering module may be configured to execute the processing flows shown in fig. 3 and 4a below. In the service system, when a user inputs a search word (e.g., yihe), a client transmits a search request carrying the search word input by the user to a server; after receiving the search request, the server searches for at least one search result related to the search term, wherein each search result comprises at least one attribute (such as a gate attribute, a bus station attribute, a parking lot attribute and the like) and an attribute value (such as "east gate", "330 way", "parking lot number 7" and the like); then, the server obtains a search result display template matched with the attribute of each search result from a preset template set; and after the server returns the search result and the search result display template to the client, the client renders the search result display template to display the search result. In the service system, templates matched with the attributes of the search results are preset, so that the client can render different templates to display different search results, the defect of single display style of the search results is overcome, and the expandability is enhanced.
The above embodiments are illustrations of technical principles and exemplary application frameworks of the embodiments of the present invention, and specific technical solutions of the embodiments of the present invention are further described in detail below through a plurality of embodiments.
Example one
Fig. 2a is a flowchart of an embodiment of a method for displaying a search result provided by the present invention, where an execution subject of the method may be the service system or a server in a search system. As shown in fig. 2a, the method for displaying the search result includes the following steps:
s201, receiving a search request sent by a client.
In the embodiment of the present invention, the search request at least carries a search term input by the user, and the search term may be manually input by the user through a client or may be input by voice.
S202, at least one search result related to the search terms is obtained.
In the embodiment of the present invention, the search result may be a search suggestion or a search query result, where the search suggestion is a search keyword that is retrieved based on a search term input by a user and is suggested to be selected by the user in order to guide the user to select a correct search term, and the search query result refers to a result queried according to the search term input by the user. That is to say, the scheme provided by the embodiment of the invention is suitable for the presentation scene of search suggestions (sug) and other query results. And each search result contains at least one attribute and its attribute value.
Taking the interest point retrieval in the field of electronic maps as an example for explanation, fig. 2b is a first display diagram in the embodiment of the method for displaying a search result provided by the present invention, as shown in fig. 2b, it is assumed that three search results including "yiheyuan" in the name are obtained according to the search word (yihe), where the first "yiheyuan" corresponds to an yiheyuan park in the real world, and therefore, the attributes of the search result include a name attribute (yiheyuan), an address attribute (beijing city-hai lake area-new gate 19), a gate attribute (east gate, side gate), a parking lot attribute (parking lot No. 7), and the like; the second, the "Yihe garden (bus station)" corresponds to a bus station in the real world, and the attribute of the search result includes the attribute of the bus route; third, "Yihe shop" is a shop in the real world, and therefore, its attribute includes an address attribute.
S203, at least one search result display template matched with the attribute of each search result is obtained from the preset template set.
In the embodiment of the invention, the server is preset with the search result display template set with various styles. And after the search results are obtained, acquiring a search result display template matched with the attributes of each search result.
And S204, returning the search result and the search result display template to the client, and rendering the search result display template by the client to display the search result.
In the embodiment of the present invention, the search result presentation template includes at least one control, each control corresponds to an identification number (ID), and on one hand, the server may associate the attribute of the search result with the ID of the control of the search result presentation template and return the associated attribute to the client according to a preset correspondence between the attribute of the search result and the ID of the control of the search result presentation template. When the template is maintained or modified in the later period, if the attribute displayed in the template is required to be modified, only the corresponding relation between the ID and the attribute is required to be modified.
On the other hand, the server may obtain the ID of the control of the search result presentation template corresponding to the attribute of the search result in the correspondence between the attribute of the preset search result and the ID of the control of the search result presentation template, write the attribute value of the attribute into the search result presentation template as the value of the control corresponding to the ID in the search result presentation template, and then return the search result presentation template to the client. Fig. 2c is a schematic control diagram in an embodiment of a search result display method provided by the present invention. As shown in fig. 2c, in this example, the attributes of the search result and their attribute values include: "address: newly-built palace way No. 19 "," distance: 17.1 km "and" name: yihe garden. According to the preset corresponding relation between each attribute and the ID of the control, writing the attribute value 'New Portal road 19 number' of the attribute address as the value of the control (hypertext html) corresponding to the ID1010, writing the attribute value '17.1 kilometer' of the attribute distance as the value of the control (hypertext html) corresponding to the ID1013, and writing the attribute value 'Yihe garden' of the attribute name as the value of the control (text box) corresponding to the ID 2001. Thus, the text boxes are displayed when being displayed: "New palace gate way 19", "17.1 kilometers" and "Yihe garden".
According to the method for displaying the search results, the search result display template matched with the attributes of the search results is preset, so that the client can render different templates to display different search results, the defect that the display style of the search results is single is overcome, and the expandability is enhanced; meanwhile, the identity identification code is used for identifying the attribute in the template, and when the template is maintained and modified, the global adjustment can be realized only by modifying the corresponding relation between the identity identification code and the attribute, so that the workload is reduced.
Example two
Fig. 3 is a flowchart of another embodiment of the method for displaying the search result provided by the present invention, where an execution subject of the method may be the business system or a client in the search system. As shown in fig. 3, the method for displaying the search result includes the following steps:
s301, sending a search request to a server.
In the embodiment of the invention, the search request at least carries the search terms of the user data. The user can input the search word manually through the client or input the search word by voice.
S302, receiving a search result returned by the server in response to the search request and a search result display template.
In the embodiment of the invention, each search result comprises at least one attribute and an attribute value thereof, and the search result display template in the embodiment of the invention is matched with the attribute of the search result.
S303, rendering the search result display template to display the search result.
In the embodiment of the invention, the attribute of the search result returned by the server has an association relation with the ID of the control of the search result display template. Specifically, the client may obtain an ID of a control of the search result presentation template corresponding to the attribute of the search result; and rendering the search result display template by taking the attribute value of the attribute of the search result as the value of the control corresponding to the ID in the search result display template so as to display the search result.
Layout data about the IDs is stored in the client in advance, and for different IDs, there may be different display positions, display pictures, display fonts, display colors, and the like. And rendering the search result according to the ID in the search result display template and layout data of the relevant ID pre-stored in the client after the client receives the search result and the search result display template.
In addition, in the embodiment of the present invention, the dereferencing of the control in the search result presentation template returned by the server is the attribute value of the attribute corresponding to the ID of the control in the search result, and therefore, when the search result presentation template is rendered, the value corresponding to the ID of the control of the template is the attribute value of the attribute of the search result. In this embodiment of the present invention, different attributes may be shown by different types of controls, for example, as shown in fig. 2c, the type of the control corresponding to the "address" attribute and the "distance" attribute is "html (hypertext markup language)", the type of the control corresponding to the "name" attribute is "text (text box)", and the like. Therefore, the data sent by the server to the client also contains the types of the controls, so that the client can know which tool interface provided by the system should be called to realize the rendering of the search result presentation template.
According to the method for displaying the search results, the template matched with the attributes of the search results is preset, so that the client can render different templates to display different search results, the defect that the display style of the search results is single is overcome, and the expandability is enhanced; meanwhile, the identity identification code is used for identifying the attribute in the template, and when the template is maintained and modified, the global adjustment can be realized only by modifying the corresponding relation between the identity identification code and the attribute, so that the workload is reduced.
EXAMPLE III
Fig. 4a is a flowchart of a further embodiment of the method for displaying the search result provided by the present invention, as shown in fig. 4a, on the basis of the embodiment shown in fig. 3, the method for displaying the search result provided by the present embodiment may further include the following steps:
s401, a search request is sent to a server.
S402, receiving a search result returned by the server in response to the search request and a search result display template.
And S403, rendering the search result display template to display the search result.
Steps S401 to S403 in the embodiment of the present invention are the same as steps S301 to S303 in the embodiment shown in fig. 3, and are not repeated herein.
S404, searching the historical search result corresponding to the search word in the local historical search result.
The embodiment of the invention is suitable for the condition that the client terminal does not use the search service aiming at the same search word for the first time. Historical search results previously obtained by the client using the search service are stored in a format in a local database of the client. Therefore, after the user inputs a search word, the client can preferentially search the local historical search results for the historical search results corresponding to the search word.
S405, if the search result is found, rendering a preset local search result rendering template to display the historical search result.
When the related historical search results aiming at the search terms are found locally, a local search result rendering template which is also pre-stored locally is obtained, and the local search result rendering template is specially used for displaying the historical search results and is matched with the storage format of the historical search results.
In the embodiment of the present invention, after the user inputs the search term at the client, steps S401 to S403 and steps S404 to S405 may be performed simultaneously or sequentially. After the search result and the search result display template, the historical search result and the local search result rendering template are obtained, the client can display the search result and the historical search result in sequence in a certain order. Since the historical search results of the user have a greater reference meaning to the user, the historical search results can be placed on the first bar or the first few bars of the presentation list, and the like, so as to be conveniently viewed by the user.
Fig. 4b is a second display diagram in the embodiment of the method for displaying the search result provided by the present invention, and as shown in fig. 4b, it is assumed that the search terms of the user at the client are: yiheyuan. And the client finds the historical search result 'the Yihe garden (bus station)' corresponding to the search word in the local historical search results, and then obtains and renders a preset local search result rendering template so as to display the historical search result and display the historical search result on the first item of the display list.
According to the method for displaying the search results, when the user searches for the same search word again, on one hand, the search results and the search result display template for displaying the search results can be obtained through the server; on the other hand, historical search results and local search result rendering templates for displaying the historical search results are searched locally at the client, so that the defect that the display style of the search results is single is overcome, and the expandability is enhanced; meanwhile, the identity identification code is used for identifying the attribute in the search result display template, and when the server maintains and modifies the template, only the corresponding relation between the identity identification code and the attribute needs to be modified, so that the global adjustment can be realized, and the workload is reduced.
Example four
Fig. 5 is a schematic structural diagram of an embodiment of a device for displaying search results, which can be used to execute the method steps shown in fig. 2 a. As shown in fig. 5, the apparatus may include: a search request receiving module 51, a search result obtaining module 52, a template obtaining module 53, and a data transmitting module 54.
The search request receiving module 51 is configured to receive a search request sent by a client, where the search request at least carries a search term input by a user; the search result obtaining module 52 is configured to obtain at least one search result related to the search term, where each search result includes at least one attribute and an attribute value thereof; the template obtaining module 53 is configured to obtain, from a preset template set, a search result display template matched with an attribute of each search result; the data sending module 54 is configured to return the search result and the search result display template to the client, so that the client renders the search result display template to display the search result.
In the embodiment of the present invention, the search term may be manually input by the user through the client or may be input by voice, after the search term receiving module 51 receives the search term input by the user, the search result obtaining module 52 obtains at least one search result according to the search term, where the search result may be a search suggestion or a search query result, the search suggestion is a search keyword selected by a suggested user and retrieved based on the search term input by the user in order to guide the user to select a correct search term, and the search query result is a result queried according to the search term input by the user. That is to say, the scheme provided by the embodiment of the invention is suitable for the presentation scene of search suggestions (sug) and other query results. Each search result contains at least one attribute and its attribute value.
In the embodiment of the invention, the server is preset with the search result display template set with various styles. The template obtaining module 53 obtains a search result presentation template matching the attribute of each search result. Finally, the data sending module 54 returns the search result and the search result display template to the client, so that the client renders the search result display template to display the search result.
Further, in the embodiment of the present invention, the search result presentation template includes at least one control, and each control corresponds to an identification code (ID), on one hand, the data sending module 54 may be configured to associate the attribute of the search result with the ID of the control of the search result presentation template according to a preset corresponding relationship between the attribute of the search result and the ID of the control of the search result presentation template, and then return the associated attribute of the search result and the ID of the control of the search result presentation template to the client. When the template is maintained or modified in the later period, if the attribute displayed in the template is required to be modified, only the corresponding relation between the ID and the attribute is required to be modified.
On the other hand, the data sending module 54 may also be configured to obtain the ID of the control of the search result presentation template corresponding to the attribute of the search result in the correspondence between the attribute of the preset search result and the ID of the control of the search result presentation template, write the attribute value of the attribute into the search result presentation template as the value of the control corresponding to the ID in the search result presentation template, and then return the search result presentation template to the client.
According to the search result display device provided by the embodiment of the invention, the search result display template matched with the attribute of the search result is preset, so that the client can render different templates to display different search results, the defect of single display style of the search results is overcome, and the expandability is enhanced; meanwhile, the identity identification code is used for identifying the attribute in the template, and when the template is maintained and modified, the global adjustment can be realized only by modifying the corresponding relation between the identity identification code and the attribute, so that the workload is reduced.
EXAMPLE five
Fig. 6 is a schematic structural diagram of another embodiment of a device for displaying search results provided by the present invention, which can be used to execute the method steps shown in fig. 3 and fig. 4 a. As shown in fig. 6, the apparatus may include: a search request transmitting module 61, a data receiving module 62, and a rendering module 63.
The search request sending module 61 is configured to send a search request to a server, where the search request at least carries a search term input by a user; the data receiving module 62 is configured to receive a search result and a search result display template returned by the server in response to the search request, where the search result includes at least one attribute and an attribute value thereof, and the search result display template is matched with the attribute of the search result; the rendering module 63 is configured to render the search result display template to display the search result.
In the embodiment of the invention, the user can input the search word manually through the client or can input the search word by voice. And the attribute of the search result returned by the server has an association relation with the ID of the control of the search result display template. Specifically, the rendering module 63 may be configured to obtain an ID of a control of the search result presentation template corresponding to the attribute of the search result; and rendering the search result display template by taking the attribute value of the attribute of the search result as the value of the control corresponding to the ID in the search result display template so as to display the search result.
Layout data about the IDs is stored in the client in advance, and for different IDs, there may be different display positions, display pictures, display fonts, display colors, and the like. And rendering the search result according to the ID in the search result display template and layout data of the relevant ID pre-stored in the client after the client receives the search result and the search result display template.
In addition, in the embodiment of the present invention, the value of the control in the search result display template returned by the server is the attribute value of the attribute corresponding to the ID of the control in the search result, and therefore, the rendering module 63 may also be configured to, when rendering the search result display template, use the value corresponding to the ID of the control of the template as the attribute value of the attribute of the search result. In embodiments of the present invention, different properties may be exposed with different types of controls. Therefore, the data sent by the server to the client also contains the types of the controls, so that the client can know which tool interface provided by the system should be called to realize the rendering of the search result presentation template.
Further, when the client does not use the search service for the same search word for the first time, the historical search results previously obtained by the client using the search service are stored in a local database of the client in a certain format. Therefore, after the user inputs a search word, the client can preferentially search the local historical search results for the historical search results corresponding to the search word. Therefore, the apparatus for displaying search results provided in the embodiment of the present invention may further include: a lookup module 64. The searching module 64 may be configured to search a local historical search result for a historical search result corresponding to the search term; at this time, the rendering module 63 is further configured to render a preset local search result rendering template when the search module 64 finds the historical search result, so as to display the historical search result.
According to the search result display device provided by the embodiment of the invention, when the user searches for the same search word again, on one hand, the search result and the search result display template for displaying the search result can be obtained through the server; on the other hand, historical search results and local search result rendering templates for displaying the historical search results are searched locally at the client, so that the defect that the display style of the search results is single is overcome, and the expandability is enhanced; meanwhile, the identity identification code is used for identifying the attribute in the search result display template, and when the server maintains and modifies the template, only the corresponding relation between the identity identification code and the attribute needs to be modified, so that the global adjustment can be realized, and the workload is reduced.
EXAMPLE six
The internal functions and structure of the search result presentation apparatus, which can be implemented as an electronic device, are described above. Fig. 7 is a schematic structural diagram of an embodiment of an electronic device provided in the present invention. As shown in fig. 7, the electronic device includes a memory 71 and a processor 72.
The memory 71 stores programs. In addition to the above-described programs, the memory 71 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 71 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.
A processor 72, coupled to the memory 71, that executes programs stored by the memory 71 to:
receiving a search request sent by a client, wherein the search request at least carries search words input by a user;
obtaining at least one search result related to the search terms, wherein each search result comprises at least one attribute and an attribute value thereof;
acquiring a search result display template matched with the attribute of each search result from a preset template set;
and returning the search result and the search result display template to the client, and rendering the search result display template by the client to display the search result.
Further, as shown in fig. 7, the electronic device may further include: communication components 73, power components 74, audio components 75, a display 76, and the like. Only some of the components are schematically shown in fig. 7, and the electronic device is not meant to include only the components shown in fig. 7.
The communication component 73 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device 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 73 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 73 further includes a Near Field Communication (NFC) module to facilitate short-range communication. 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.
A power supply component 74 provides power to the various components of the electronic device. The power components 74 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for an electronic device.
The audio component 75 is configured to output and/or input audio signals. For example, the audio component 75 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory 71 or transmitted via a communication component 73. In some embodiments, audio assembly 75 also includes a speaker for outputting audio signals.
The display 76 includes a screen, which 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.
EXAMPLE seven
The internal functions and structure of the search result presentation apparatus, which can be implemented as an electronic device, are described above. Fig. 8 is a schematic structural diagram of an embodiment of an electronic device provided in the present invention. As shown in fig. 8, the electronic device includes a memory 81 and a processor 82.
The memory 81 stores programs. In addition to the above-described programs, the memory 81 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 81 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.
A processor 82, coupled to the memory 81, for executing programs stored in the memory 81 for:
sending a search request to a server, wherein the search request at least carries search words input by a user;
receiving a search result returned by the server in response to the search request and a search result display template, wherein the search result comprises at least one attribute and an attribute value thereof, and the search result display template is matched with the attribute of the search result;
and rendering the search result display template to display the search result.
Further, as shown in fig. 8, the electronic device may further include: communication components 83, power components 84, audio components 85, a display 86, and the like. Only some of the components are schematically shown in fig. 8, and the electronic device is not meant to include only the components shown in fig. 8.
The communication component 83 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device 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 83 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 83 further includes a Near Field Communication (NFC) module to facilitate short-range communication. 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.
A power supply component 84 provides power to the various components of the electronic device. The power components 84 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for an electronic device.
The audio component 85 is configured to output and/or input audio signals. For example, the audio component 85 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 81 or transmitted via the communication component 83. In some embodiments, audio assembly 85 also includes a speaker for outputting audio signals.
The display 86 includes a screen, which 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.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (16)

1. A method for displaying search results is characterized by comprising the following steps:
receiving a search request sent by a client, wherein the search request at least carries search words input by a user;
obtaining at least one search result related to the search term, wherein each search result comprises at least one attribute and an attribute value thereof;
acquiring a search result display template matched with the attribute of each search result from a preset template set;
and returning the search result and the search result display template to the client, and rendering the search result display template by the client to display the search result.
2. The method for displaying search results according to claim 1, wherein the search result display template includes at least one control, each control corresponds to an id, and returning the search results and the search result display template to the client comprises:
and according to the preset corresponding relation between the attribute of the search result and the identification code of the control of the search result display template, associating the attribute of the search result with the identification code of the control of the search result display template and then returning the associated attribute of the search result to the client.
3. The method for displaying search results according to claim 1, wherein the search result display template includes at least one control, each control corresponds to an id, and returning the search results and the search result display template to the client comprises:
and acquiring the identity identification code of the control of the search result display template corresponding to the attribute of the search result in the corresponding relation between the preset attribute of the search result and the identity identification code of the control of the search result display template, writing the attribute value of the attribute into the search result display template as the value of the control corresponding to the identity identification code in the search result display template, and returning the search result display template to the client.
4. A method for displaying search results is characterized by comprising the following steps:
sending a search request to a server, wherein the search request at least carries search words input by a user;
receiving a search result returned by the server in response to the search request and a search result display template, wherein the search result comprises at least one attribute and an attribute value thereof, and the search result display template is matched with the attribute of the search result;
and rendering the search result display template to display the search result.
5. The method for displaying the search result according to claim 4, wherein the attribute of the search result returned by the server has an association relationship with the id of the control of the search result display template, and the rendering the search result display template to display the search result comprises:
acquiring the identity identification code of the control of the search result display template corresponding to the attribute of the search result;
and rendering the search result display template by taking the attribute value of the attribute of the search result as the value of the control corresponding to the identification code in the search result display template.
6. The method according to claim 4, wherein the rendering of the search result presentation template to present the search result includes:
and when the search result display template is rendered, the value corresponding to the identification code of the control of the template is the attribute value of the attribute of the search result.
7. The method for displaying search results according to any one of claims 4 to 6, further comprising:
searching a historical search result corresponding to the search word in a local historical search result;
and if the historical search result is found, rendering a preset local search result rendering template to display the historical search result.
8. An apparatus for presenting search results, comprising:
the search request receiving module is used for receiving a search request sent by a client, wherein the search request at least carries search words input by a user;
a search result acquisition module for acquiring at least one search result related to the search term, each search result including at least one attribute and an attribute value thereof;
the template acquisition module is used for acquiring a search result display template matched with the attribute of each search result from a preset template set;
and the data sending module is used for returning the search result and the search result display template to the client, so that the client renders the search result display template to display the search result.
9. The apparatus for displaying search results according to claim 8, wherein the template for displaying search results comprises at least one control, each control corresponding to an identification code,
and the data sending module is used for associating the attribute of the search result with the identity identification code of the control of the search result display template and then returning the associated attribute of the search result to the client according to the preset corresponding relation between the attribute of the search result and the identity identification code of the control of the search result display template.
10. The apparatus for displaying search results according to claim 8, wherein the template for displaying search results comprises at least one control, each control corresponding to an identification code,
the data sending module is used for acquiring the identity identification code of the control of the search result display template corresponding to the attribute of the search result in the corresponding relation between the attribute of the search result and the identity identification code of the control of the search result display template, writing the attribute value of the attribute into the search result display template as the value of the control corresponding to the identity identification code in the search result display template, and returning the search result display template to the client.
11. An apparatus for presenting search results, comprising:
the search request sending module is used for sending a search request to the server, wherein the search request at least carries search words input by a user;
the data receiving module is used for receiving a search result returned by the server in response to the search request and a search result display template, wherein the search result comprises at least one attribute and an attribute value thereof, and the search result display template is matched with the attribute of the search result;
and the rendering module is used for rendering the search result display template so as to display the search result.
12. The apparatus for displaying search results according to claim 11, wherein the attributes of the search results returned by the server have an association relationship with the id of the control of the search result display template,
the rendering module is used for acquiring the identity identification code of the control of the search result display template corresponding to the attribute of the search result; and rendering the search result display template by taking the attribute value of the attribute of the search result as the value of the control corresponding to the identification code in the search result display template.
13. The apparatus for displaying search results according to claim 11, wherein the values of the controls in the search result display template returned by the server are attribute values of attributes corresponding to the ids of the controls in the search results,
and the rendering module is used for rendering the search result display template, wherein the value corresponding to the identification code of the control of the template is the attribute value of the attribute of the search result.
14. The apparatus for displaying search results according to any one of claims 11 to 13, further comprising:
the searching module is used for searching a historical searching result corresponding to the searching word in a local historical searching result;
the rendering module is further configured to render a preset local search result rendering template when the search module finds the historical search result, so as to display the historical search result.
15. An electronic device, comprising:
a memory for storing a program;
a processor for executing the program stored in the memory for:
receiving a search request sent by a client, wherein the search request at least carries search words input by a user;
obtaining at least one search result related to the search term, wherein each search result comprises at least one attribute and an attribute value thereof;
acquiring a search result display template matched with the attribute of each search result from a preset template set;
and returning the search result and the search result display template to the client, and rendering the search result display template by the client to display the search result.
16. An electronic device, comprising:
a memory for storing a program;
a processor for executing the program stored in the memory for:
sending a search request to a server, wherein the search request at least carries search words input by a user;
receiving a search result returned by the server in response to the search request and a search result display template, wherein the search result comprises at least one attribute and an attribute value thereof, and the search result display template is matched with the attribute of the search result;
and rendering the search result display template to display the search result.
CN201810737630.5A 2018-07-06 2018-07-06 Search result display method and device and electronic equipment Pending CN110750705A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810737630.5A CN110750705A (en) 2018-07-06 2018-07-06 Search result display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810737630.5A CN110750705A (en) 2018-07-06 2018-07-06 Search result display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN110750705A true CN110750705A (en) 2020-02-04

Family

ID=69274756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810737630.5A Pending CN110750705A (en) 2018-07-06 2018-07-06 Search result display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110750705A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782947A (en) * 2020-06-29 2020-10-16 北京达佳互联信息技术有限公司 Search content display method and device, electronic equipment and storage medium
CN113592586A (en) * 2021-07-14 2021-11-02 杭州数跑科技有限公司 Vehicle attribute information display method and device, computer equipment and storage medium
CN113645062A (en) * 2021-07-13 2021-11-12 阿里巴巴新加坡控股有限公司 Page data processing method and device and electronic equipment
CN114117090A (en) * 2020-08-31 2022-03-01 北京达佳互联信息技术有限公司 Resource display method and device and server
CN114461944A (en) * 2022-01-19 2022-05-10 北京百度网讯科技有限公司 Search result display method and device and electronic equipment
WO2023207451A1 (en) * 2022-04-29 2023-11-02 北京字节跳动网络技术有限公司 Search result display method and device, and search request processing method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120144315A1 (en) * 2009-02-17 2012-06-07 Tagle Information Technology Inc. Ad-hoc electronic file attribute definition
CN102622219A (en) * 2011-01-31 2012-08-01 富士通株式会社 Method, device and system for rendering execution result of dynamic transfer service
CN103902535A (en) * 2012-12-24 2014-07-02 腾讯科技(深圳)有限公司 Method, device and system for obtaining associational word
CN104462262A (en) * 2014-11-21 2015-03-25 北京奇虎科技有限公司 Method and device for achieving voice search and browser client side
US20150169533A1 (en) * 2011-01-11 2015-06-18 Google Inc. Server-less HTML Templates
CN104899285A (en) * 2015-06-04 2015-09-09 百度在线网络技术(北京)有限公司 Display method and apparatus for search result
CN105378710A (en) * 2013-05-03 2016-03-02 微软技术许可有限责任公司 Identifying search matches and altered search results
CN105893564A (en) * 2016-03-31 2016-08-24 百度在线网络技术(北京)有限公司 Search method and device based on search engine client
CN106775770A (en) * 2017-01-16 2017-05-31 兴唐通信科技有限公司 The lookup method of query statement is built based on category information
CN107220374A (en) * 2017-06-20 2017-09-29 阿里巴巴集团控股有限公司 Searching method, client, server and searcher

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120144315A1 (en) * 2009-02-17 2012-06-07 Tagle Information Technology Inc. Ad-hoc electronic file attribute definition
US20150169533A1 (en) * 2011-01-11 2015-06-18 Google Inc. Server-less HTML Templates
CN102622219A (en) * 2011-01-31 2012-08-01 富士通株式会社 Method, device and system for rendering execution result of dynamic transfer service
CN103902535A (en) * 2012-12-24 2014-07-02 腾讯科技(深圳)有限公司 Method, device and system for obtaining associational word
CN105378710A (en) * 2013-05-03 2016-03-02 微软技术许可有限责任公司 Identifying search matches and altered search results
CN104462262A (en) * 2014-11-21 2015-03-25 北京奇虎科技有限公司 Method and device for achieving voice search and browser client side
CN104899285A (en) * 2015-06-04 2015-09-09 百度在线网络技术(北京)有限公司 Display method and apparatus for search result
CN105893564A (en) * 2016-03-31 2016-08-24 百度在线网络技术(北京)有限公司 Search method and device based on search engine client
CN106775770A (en) * 2017-01-16 2017-05-31 兴唐通信科技有限公司 The lookup method of query statement is built based on category information
CN107220374A (en) * 2017-06-20 2017-09-29 阿里巴巴集团控股有限公司 Searching method, client, server and searcher

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782947A (en) * 2020-06-29 2020-10-16 北京达佳互联信息技术有限公司 Search content display method and device, electronic equipment and storage medium
WO2022000935A3 (en) * 2020-06-29 2022-11-24 北京达佳互联信息技术有限公司 Search result content display method and apparatus, electronic device, and storage medium
CN114117090A (en) * 2020-08-31 2022-03-01 北京达佳互联信息技术有限公司 Resource display method and device and server
CN113645062A (en) * 2021-07-13 2021-11-12 阿里巴巴新加坡控股有限公司 Page data processing method and device and electronic equipment
CN113592586A (en) * 2021-07-14 2021-11-02 杭州数跑科技有限公司 Vehicle attribute information display method and device, computer equipment and storage medium
CN114461944A (en) * 2022-01-19 2022-05-10 北京百度网讯科技有限公司 Search result display method and device and electronic equipment
WO2023207451A1 (en) * 2022-04-29 2023-11-02 北京字节跳动网络技术有限公司 Search result display method and device, and search request processing method and device

Similar Documents

Publication Publication Date Title
CN110750705A (en) Search result display method and device and electronic equipment
TWI393860B (en) Navigation method and system of geo-locations by identifying web pages
US20200326197A1 (en) Method, apparatus, computer device and storage medium for determining poi alias
US20050278371A1 (en) Method and system for georeferential blogging, bookmarking a location, and advanced off-board data processing for mobile systems
US20120101716A1 (en) Navigation device, navigation system, and method of operating the same
CN105260431A (en) Electronic map based information acquisition method and apparatus
CN104135716A (en) Push method and system of interest point information
CN103543902A (en) Map display method for short message address
US20180089869A1 (en) System and Method For Previewing Indoor Views Using Augmented Reality
CN104166645A (en) Interest point and path information obtaining method and vehicle-mounted electronic equipment
JP5079673B2 (en) Point-related information providing device, point-related information providing method, and program
KR102233867B1 (en) Extracting similar group elements
CN106682006B (en) Information prompting method and device about communication content
CN106055998A (en) Method and device for carrying out screen capturing at mobile terminal
CN109783589B (en) Method, device and storage medium for resolving address of electronic map
JP2013122379A (en) Navigation device
JP2013127399A (en) Navigation device
US20140180577A1 (en) Method and system for navigation and electronic device thereof
CN106323306B (en) Navigation information processing method and electronic equipment
CN112015845B (en) Method, device, equipment and storage medium for map retrieval test
US8751609B2 (en) Destination planning method
JP5749057B2 (en) Navigation device
KR100885567B1 (en) Method for searching of index data in a navigation system
KR20130112492A (en) Indoor map authoring device and method thereof
JP5746911B2 (en) Facility search system along route and facility search method along route

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200204

RJ01 Rejection of invention patent application after publication