CN115422307A - Search result display method, device, equipment and medium - Google Patents
Search result display method, device, equipment and medium Download PDFInfo
- Publication number
- CN115422307A CN115422307A CN202210785688.3A CN202210785688A CN115422307A CN 115422307 A CN115422307 A CN 115422307A CN 202210785688 A CN202210785688 A CN 202210785688A CN 115422307 A CN115422307 A CN 115422307A
- Authority
- CN
- China
- Prior art keywords
- search result
- information
- map
- search
- list 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000004590 computer program Methods 0.000 claims description 11
- 238000012163 sequencing technique Methods 0.000 claims 1
- 230000003749 cleanliness Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 230000004044 response Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9537—Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9538—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Remote Sensing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the disclosure relates to a display method, a device, equipment and a medium of search results, wherein the method comprises the following steps: determining a first search result on a currently displayed search result list page and corresponding first position information; acquiring a map image area corresponding to the first position information, and acquiring label information of the first search result on a search result list page; and displaying a map image area in a preset map display area, and displaying corresponding label information on the first position information. Therefore, the label information of the search result on the map image area associated with the search result on the search result list page is displayed, so that the guide information displayed on the map is consistent with the search result actually contained on the search result list page, the interference of other search results and the map area is avoided, the simplicity and the cleanliness of the map guide service are ensured, and the user experience is improved.
Description
Technical Field
The present disclosure relates to the field of computer application technologies, and in particular, to a method, an apparatus, a device, and a medium for displaying search results.
Background
With the progress of computer technology, it is becoming more common to provide a route guidance service based on a map, such as a user searching for a gas station in a map, implementing a route guidance service of a gas station based on a map, and the like.
In the related art, after a plurality of search results corresponding to a search word are acquired in response to the search word input by a user, all the acquired search results are displayed on a map. As shown in fig. 1, when the search word input by the user is "gas station", if a plurality of gas stations are acquired, a map area covered by all the gas stations is displayed, and icons of all the gas stations are displayed on the map area.
However, when the number of search results is large, displaying all the current search results on the map may cause page confusion, and it is difficult for the user to clearly understand each search result, and the guidance service quality of the map is not high.
Disclosure of Invention
In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a method, an apparatus, a device, and a medium for displaying a search result, so as to solve the problem in the prior art that when there are many search results, it is difficult for a user to clearly know a desired search result due to display confusion.
The embodiment of the disclosure provides a display method of search results, which comprises the following steps: determining a first search result on a currently displayed search result list page and first position information corresponding to the first search result; acquiring a map image area corresponding to the first position information, and acquiring label information of the first search result on the search result list page; and displaying the map image area in a preset map display area, and displaying the corresponding label information on the first position information.
The embodiment of the present disclosure also provides a display device of search results, the device includes: the system comprises a determining module, a searching module and a display module, wherein the determining module is used for determining a first searching result on a currently displayed searching result list page and first position information corresponding to the first searching result; the acquisition module is used for acquiring a map image area corresponding to the first position information and acquiring label information of the first search result on the search result list page; and the display processing module is used for displaying the map image area in a preset map display area and displaying the corresponding label information on the first position information.
An embodiment of the present disclosure further provides an electronic device, which includes: a processor; a memory for storing the processor-executable instructions; the processor is used for reading the executable instructions from the memory and executing the instructions to realize the display method of the search result provided by the embodiment of the disclosure.
The embodiment of the present disclosure also provides a computer-readable storage medium, which stores a computer program for executing the display method of the search result provided by the embodiment of the present disclosure.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
according to the display scheme of the search results, the first search result on the currently displayed search result list page and the first position information corresponding to the first search result are determined, the map image area corresponding to the first position information is further acquired, and the label information of the first search result on the search result list page is acquired, so that the map image area is displayed in the preset map display area, and the corresponding label information is displayed on the first position information. Therefore, the label information of the search result on the map image area associated with the search result on the search result list page is displayed, so that the guide information displayed on the map is consistent with the search result actually contained on the search result list page, the interference of other search results and the map area is avoided, the simplicity and the cleanliness of the map guide service are ensured, and the user experience is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic view of a display scene of a search result in the prior art according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a display scenario of a search result according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a method for displaying search results according to an embodiment of the present disclosure;
fig. 4 (a) is a schematic view of a display scenario of another search result provided by the embodiment of the present disclosure;
fig. 4 (b) is a schematic view of a display scenario of another search result provided by the embodiment of the present disclosure;
fig. 5 is a schematic view of a display scenario of another search result provided in the embodiment of the present disclosure;
fig. 6 is a flowchart illustrating another method for displaying search results according to an embodiment of the present disclosure;
fig. 7 is a schematic view of a display scenario of another search result provided by the embodiment of the present disclosure;
fig. 8 is a schematic view of a display scenario of another search result provided by the embodiment of the present disclosure;
fig. 9 is a flowchart illustrating another method for displaying search results according to an embodiment of the present disclosure;
fig. 10 is a schematic view of a display scenario of another search result provided by the embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of a display device for search results according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
In order to solve the above problem, an embodiment of the present disclosure provides a method for displaying search results, where in the method, the number of search results displayed each time is limited, and a corresponding map area is displayed by limiting to a corresponding number of search results, so that problems of unclear positions of the search results and disordered pages due to a large number of search results caused by an excessively large displayed map area are avoided, and the service quality of map guidance of the search results is greatly improved.
For example, as shown in fig. 2, in this embodiment, if search results of 100 gas stations are obtained, only five gas stations may be displayed during displaying, and the areas where the 5 gas stations are located are displayed, so that simplicity of page display is ensured, and service quality is improved.
The method is described below with reference to specific examples.
Fig. 3 is a flowchart illustrating a method for displaying search results according to an embodiment of the present disclosure, where the method may be performed by a device for displaying search results, where the device may be implemented by software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 3, the method includes:
It will be appreciated that, in order to determine which of the currently displayed search results are, in this embodiment, a first search result, which may be a plurality of first search results, included on the current search results list page is determined. The currently displayed search result list page is an area on the interface of the map application, which contains at least part of the search results, and typically in the map application, the search results are displayed in a list form, and the search result list page may be displayed in any area of the map application, for example, as shown in fig. 4 (a), in a "gourmet" search result scene, the corresponding search results may be displayed in an upper area of the map page, or as shown in fig. 4 (b), may be displayed in a left area of the map page, and so on.
In addition, the search result corresponding to the search result list page should at least include a name of the search object, for example, when the search term is "food", the search result should at least include a name of a restaurant, and not, when the search term is "gas station", the search result should at least include a name of a gas station, of course, in an actual execution process, the search result may also include other related information of the search object, for example, continuously refer to fig. 4 (a) and 4 (b), and may also include a distance from the search object to the user, address information, rating information, per-capita consumption information, and the like, and the search result may also include a trigger control of a "map" and, after the user triggers the control, the map application generates a route navigation path according to the current location of the user and the address of the corresponding search object, so as to provide a navigation service for the user according to the navigation path selected by the user, and the like.
As described above, the currently displayed search result list page generally displays a limited number of search results, and therefore, in this embodiment, a map display may be performed according to the first search result included in the currently displayed search result list page, so as to ensure the clarity and simplicity of map guidance. The display mode can also ensure the consistency of the search result list displayed on the map page and the map area, and further improves the service quality of map guidance.
In this embodiment, after determining the first search result on the currently displayed search result list page, first location information corresponding to the first search result may also be acquired, where the first location information is a coordinate location or a pixel location of a search object corresponding to the first search result on the map.
In one embodiment of the present disclosure, in order to ensure that the map image area of the first search result is displayed on the map and avoid interference of other unrelated map image areas, the map image area corresponding to the first position information is acquired. That is, in this embodiment, the map image area corresponding to the first position information is segmented to perform the display of the first search result, where a determination manner of the map image area corresponding to the first position information will be described in the subsequent embodiments, and will not be described herein again.
Further, after the map image area is determined, in order to more clearly display the first search result on the map, the tag information of the first search result on the search result list page is obtained, that is, the tag information is derived from the display content on the search result list page, and since the search result list and the map image area are simultaneously displayed on the map interface, the user can visually check the first search result in the list page according to the tag information displayed on the map image area.
In different application scenarios, the tag information is different, for example, the number of the first search result displayed on the search result list page may be used, and for example, the color information of the first search result displayed on the search result list page may be used. For example, as shown in fig. 5, when the number of the first search result is displayed on the search result list page, the number of the first search result displayed on the search result list page may be obtained, and the number may be determined to be the tag information.
In order to further enrich the information of the displayed search results, the tag information may be displayed as a "middle point" icon, and other search results included in the map image area may be displayed as a "small point" icon. Where the "middle point" may be an icon that is the same shape as the "small dot" icon, but has a larger icon size relative to the "small dot".
The preset region display area may be an area where a map can be currently displayed in the map application, that is, a remaining display area on the search result list in the map application interface.
In this embodiment, after a map image area is displayed in a preset map display area, corresponding tag information is displayed on the first position information, and the display mode of the tag information is different in different application scenarios, which is not limited herein.
For example, with continued reference to fig. 5, the corresponding number information may be displayed at the first location information in the form of a "midpoint". The "middle point" in this embodiment may be understood as a circular icon with a relatively large area.
In this embodiment, in order to further meet the requirement of the user for understanding the search result, after the tag information of the corresponding first search result is displayed, if an operation instruction of the user on the target tag information in the map image is detected, for example, the user clicks the corresponding target tag information, the detail information of the first search result corresponding to the target tag information is obtained, and the detail information contains richer other details relative to the content displayed on the list page, for example, the detail information further includes phone information of the search object, a control such as "search periphery", and the like (not shown in the figure).
Displaying the detail information in a preset display area, for example, displaying the corresponding detail information in a pop-up window manner in the upper left corner of the map interface, if the preset display area coincides with the display area of the search result list page, the corresponding search result list page may be closed when the detail information is displayed, and the corresponding search result list page may be displayed when the user closes the detail information, as shown in fig. 5.
In order to indicate that the target tag is in the selected state, in this embodiment, the target tag information is further displayed according to preset display parameters, for example, when the tag information is displayed in a "midpoint" form, the "midpoint" may be modified to be "red", or the shape of the "midpoint" may be modified to be "large point", where the "large point" is a circular icon with a larger area, and the like, so that the user may intuitively know which search result is currently selected.
In summary, the search result display method according to the embodiment of the disclosure determines a first search result on a currently displayed search result list page and first location information corresponding to the first search result, and further acquires a map image area corresponding to the first location information and acquires tag information of the first search result on the search result list page, so that the map image area is displayed in a preset map display area and the corresponding tag information is displayed on the first location information. Therefore, the label information of the search result on the map image area associated with the search result on the search result list page is displayed, so that the guide information displayed on the map is consistent with the search result actually contained on the search result list page, the interference of other search results and the map area is avoided, the simplicity and the cleanliness of the map guide service are ensured, and the user experience is improved.
How to acquire the map image area corresponding to the first position information is explained below with reference to the embodiment.
In one embodiment of the present disclosure, as shown in fig. 6, acquiring a map image area corresponding to first position information includes:
In this embodiment, the object shape information of the map display area is obtained, and the object shape information may be determined by identifying an area that is not covered by the search result page in the map layer displaying the map. The object shape information includes, in addition to the shape type, the ratio of each side of the shape, for example, the ratio of the length and width of the rectangle.
In this embodiment, if the first location information is multiple, that is, the tag information of multiple first search results is currently to be displayed, a smallest bounding box including multiple first location information is generated on a preset map according to the target shape information, where the shape of the bounding box is matched with the target shape information, and an image area corresponding to the smallest bounding box is determined to be a map image area.
In some possible embodiments, the first position information of the target at the most edge in each piece of first position information may be obtained, a candidate bounding box may be generated based on the first position information of the target at the most edge, and the candidate bounding box may be expanded according to a preset expansion size to generate a plurality of smallest bounding boxes of the first position information, where the expansion size may be calibrated according to experimental data, and presentation of partial position information, i.e., peripheral position information, of the first position information may be ensured based on the expansion size, so that a user may know the first position information.
For example, as shown in fig. 7, if the object shape information is a rectangle and the first position information corresponds to "1", "2", "3", "4" and "5" in the map, if the object shape information is a rectangle, and the first position information corresponds to "1", "2", "3", "4" and "5" in the map, if the object shape information is a rectangle according to "1", "2", "3", "4" and "5", since "1" and "5" are located at the positions of the extreme edges, the candidate bounding box a can be generated according to "1" and "5", in order to avoid the problem that the display of the position information of "1" and "5" is not complete due to the map image area being generated directly based on the candidate bounding box a, and further, if the preset expansion size is L, the bounding box obtained by expanding L outward on the basis of the candidate bounding box a is used as the minimum bounding box.
In one embodiment of the present disclosure, if the first position information is one, the image area corresponding to the target shape information is acquired as the map area with the first position information as the center. For example, the corresponding image area is determined as a map image area according to the minimum area corresponding to the target shape information with the first position information as the center.
In another embodiment of the present disclosure, the map may be divided into a plurality of unit areas in advance, all the unit areas covered by the first position information may be determined, the candidate area may be composed from all the covered unit areas, and the bounding box surrounding the candidate area may be generated from the object shape information as the map image area.
For example, as shown in fig. 8, if the object shape information is a rectangle, the first position information corresponds to "1", "2", "3", "4", and "5" in the map, and the unit regions into which the "1", "2", "3", "4", and "5" are located include S1, S2, S3, and S4 as shown in the figure, a bounding box surrounding S1, S2, S3, and S4 is generated as the map image region (the shape of the rectangle formed by S1, S2, S3, and S4 in the figure matches the rectangular shape corresponding to the object shape information).
Further, after the map image area is determined, the area ratio of the map image area to the map display area is calculated, the map image area is zoomed according to the area ratio, and the zoomed map image area is displayed in the map display area, so that the displayed map image area can more clearly display the position information of the first search result relative to the map area containing all the search results.
In summary, the method for displaying the search result according to the embodiment of the disclosure may flexibly determine the map image area corresponding to the first location information according to the scene needs, and no map including all the search results is displayed any more, thereby improving the definition of displaying the first search result and ensuring the quality of the map-based search result guidance service.
As is apparent from the above-described embodiments, if the first search result is not all of the search results, the user may switch the currently displayed search result by performing a switching operation, for example, a vertical sliding operation, on the currently displayed search result page, and the actual map area changes along with the switching operation, thereby further improving the flexibility of the location guidance service based on the map search result.
In one embodiment of the present disclosure, as shown in fig. 9, before determining the first search result on the currently displayed search result list page, the method includes:
In this embodiment, in response to a search request carrying a search term input by a user, the search term may be a service entity type such as "food", "gas station", and the like, and further, a plurality of second search results corresponding to the search term are obtained, and score information corresponding to the second search results is obtained, where the obtaining of the corresponding second search results and score information based on the search term is implemented by the prior art, and is not described herein again.
And step 902, sorting the plurality of second search results according to the plurality of scoring information to generate a sorting result.
After the plurality of scoring information is obtained, the plurality of second search results are sorted according to the ranking information from high to low to generate a sorting result.
Of course, in practical applications, the plurality of second search results may also be sorted according to other reference information, and the scoring information is only one of the second search results.
The preset number is determined according to the area of a list display area preset in the current interface, the displayed fonts and the like.
A preset number of second search results may be determined based on the ranking results and displayed on a search results list page, which is now the initially displayed search results list page. When the first search result in the present embodiment corresponds to the initial search result list page, the first search result and the second search result are the same.
In another embodiment of the present disclosure, after the search result list page is displayed, in response to a switching operation of the user on the search result list page, such as a vertical sliding operation, a third search result to be switched and displayed is obtained according to the sorting result, where the third search result to be switched and displayed may be completely different from the second search result or partially the same, and whether the same portion exists may be determined according to a length of a trajectory when the user performs the switching operation, or may be preset by the system.
Further, the search result list page is updated according to the third search result page to obtain an updated search result list page, so that the search result included in the updated search result list page is the first search result in the currently displayed search result list page, and thus, the display processing of the search result in the above embodiment is performed according to the first search result.
For example, if the search term input by the user is "food", the obtained search results are ranked according to the score information, the obtained ranking results are a (4.9 points), B (4.8 points), C (4.8 points), D (4.7 points), E (4.6 points), F (4.5 points), and G (4.4 points), and the preset number is 3, then as shown in fig. 10, the first search results displayed on the initially displayed search result list page are a (4.9 points), B (4.8 points), and C (4.8 points), and the map image area displayed by performing the above display processing on the first search results corresponds to the area where a (4.9 points), B (4.8 points), and C (4.8 points) are located.
If the switching operation of the user is detected, D (4.7 points), E (4.6 points) and F (4.5 points) are displayed on the current search result list page, and the displayed map image areas correspond to the areas where D (4.7 points), E (4.6 points) and F (4.5 points) are located.
In summary, the method for displaying the search result according to the embodiment of the present disclosure further improves the clarity of guidance of the search result along with switching the displayed map image area along with the change of the search result displayed on the search result list page, so that the user can quickly determine the search result of interest, and the user experience is improved.
In order to realize the embodiment, the disclosure further provides a display device of the search result.
Fig. 11 is a schematic structural diagram of a display apparatus for search results according to an embodiment of the present disclosure, where the display apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device for displaying search results. As shown in fig. 11, the apparatus includes: a determination module 1110, an acquisition module 1120, and a display processing module 1130, wherein,
a determining module 1110, configured to determine a first search result on a currently displayed search result list page and first location information corresponding to the first search result;
an obtaining module 1120, configured to obtain a map image area corresponding to the first location information, and obtain tag information of the first search result on the search result list page;
the display processing module 1130 is configured to display a map image area in a preset map display area, and display corresponding tag information on the first position information.
In an embodiment of the present disclosure, the obtaining module 1120 obtains the object shape information of the map display area, and if the first position information is, generates a minimum bounding box containing the first position information on the preset map according to the object shape information, and determines that the image area corresponding to the minimum Bao Weikuang is the map image area. In this embodiment, if there is one first position information, the obtaining module 1120 obtains an image area corresponding to the target shape information as a map area with the first position information as a center.
In one embodiment of the present disclosure, the display processing module 1130 calculates an area ratio of the map image area and the map display area, scales the map image area according to the area ratio, and displays the scaled map image area in the map display area.
In an embodiment of the disclosure, the obtaining module 1120 obtains the number of the first search result displayed on the search result list page, and determines the number as the tag information.
In one embodiment of the present disclosure, the search result display device acquires the detail information of the first search result corresponding to the target tag information if the user is detected to trigger the target tag information in the map image, and acquires the detail information of the first search result corresponding to the target tag information if the user is detected to trigger the target tag information in the map image
In an embodiment of the present disclosure, the display processing module 1130, in response to a search request carrying a search word, acquires a second search result corresponding to the search word and score information corresponding to the second search result, sorts the second search result according to the score information to generate a sorted result, and determines a preset number of second search results according to the sorted result and displays the second search results on a search result list page.
In an embodiment of the present disclosure, the search result display device responds to a switching operation of a user on the search result list page, obtains a third search result to be switched and displayed according to the sorting result, and updates the search result list page according to the third search result to obtain an updated search result list page.
The display device for the search results provided by the embodiment of the disclosure can execute the display method for the search results provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
In order to implement the above embodiments, the present disclosure also proposes a computer program product comprising a computer program/instructions which, when executed by a processor, implement the display method of the search results in the above embodiments.
Fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Referring now specifically to fig. 12, a schematic diagram of an electronic device 1200 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device 1200 in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 12 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 12, the electronic device 1200 may include a processor (e.g., a central processing unit, a graphic processor, etc.) 1201, which may perform various processes corresponding to display of search results according to a program stored in a Read Only Memory (ROM) 1202 or a program loaded from a memory 1208 into a Random Access Memory (RAM) 1203. In the RAM1203, various programs and data necessary for the operation of the electronic apparatus 1200 are also stored. The processor 1201, the ROM 1202, and the RAM1203 are connected to each other by a bus 1204. An input/output (I/O) interface 1205 is also connected to bus 1204.
Generally, the following devices may be connected to the I/O interface 1205: input devices 1206 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; output devices 1207 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, or the like; memory 1208 including, for example, magnetic tape, hard disk, etc.; and a communication device 1209. The communication device 1209 may allow the electronic apparatus 1200 to communicate wirelessly or by wire with other apparatuses to exchange data. While fig. 12 illustrates an electronic device 1200 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 1209, or installed from the memory 1208, or installed from the ROM 1202. The computer program, when executed by the processor 1201, performs the above-described functions defined in the display method of search results of the embodiment of the present disclosure.
The computer readable medium may be embodied in the electronic device; or may be separate and not incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the method comprises the steps of determining a first search result on a currently displayed search result list page and first position information corresponding to the first search result, further obtaining a map image area corresponding to the first position information, and obtaining label information of the first search result on the search result list page, so that the map image area is displayed in a preset map display area, and the corresponding label information is displayed on the first position information. Therefore, the label information of the search result on the map image area associated with the search result on the search result list page is displayed, so that the guide information displayed on the map is consistent with the search result actually contained on the search result list page, the interference of other search results and the map area is avoided, the simplicity and the cleanliness of the map guide service are ensured, and the user experience is improved.
The electronic device may write computer program code for performing the operations of the present disclosure in one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C + +, including conventional procedural programming languages, such as the "C" programming language or similar programming languages, or a combination thereof. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, a block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims (11)
1. A method for displaying search results, comprising the steps of:
determining a first search result on a currently displayed search result list page and first position information corresponding to the first search result;
acquiring a map image area corresponding to the first position information, and acquiring label information of the first search result on the search result list page;
and displaying the map image area in a preset map display area, and displaying corresponding label information on the first position information.
2. The method of claim 1, wherein said obtaining a map image area corresponding to the first location information comprises:
acquiring target shape information of the map display area;
if the first position information is multiple, generating a minimum bounding box containing the first position information according to the target shape information on a preset map;
and determining the image area corresponding to the minimum bounding box as the map image area.
3. The method of claim 2, further comprising:
if the first position information is one, acquiring an image area corresponding to the target shape information as the map area by taking the first position information as a center.
4. The method of any one of claims 1-3, wherein displaying the map image area in a predetermined map display area comprises:
calculating the area ratio of the map image area and the map display area;
and zooming the map image area according to the area ratio, and displaying the zoomed map image area in the map display area.
5. The method of any of claims 1-3, wherein said obtaining tag information for the first search result on the search result list page comprises:
acquiring a number corresponding to the first search result on the search result list page;
and determining the number as the label information.
6. The method of claim 1, further comprising:
if an operation instruction of a user on target label information in the map image is detected, detail information of a first search result corresponding to the target label information is obtained;
and displaying the detail information in a preset display area, and displaying the target label information according to preset display parameters to indicate that the target label information is in a selected state.
7. The method of claim 1, prior to said determining at least one first search result on the currently displayed search result list page, comprising:
responding to a search request carrying a search word, and acquiring a plurality of second search results corresponding to the search word and a plurality of grading information corresponding to the plurality of second search results;
sorting the second search results according to the scoring information to generate sorted results;
and determining at least one second search result as the first search result according to the sorting result, and displaying the first search result on a currently displayed search result list page.
8. The method of claim 7, further comprising:
responding to the switching operation of the user on the search result list page, and acquiring a third search result to be switched and displayed according to the sequencing result;
and updating the search result list page according to the third search result to obtain an updated search result list page.
9. A display device for search results, comprising:
the system comprises a determining module, a searching module and a display module, wherein the determining module is used for determining a first searching result on a currently displayed searching result list page and first position information corresponding to the first searching result;
the acquisition module is used for acquiring a map image area corresponding to the first position information and acquiring label information of the first search result on the search result list page;
and the display processing module is used for displaying the map image area in a preset map display area and displaying the corresponding label information on the first position information.
10. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing the processor-executable instructions;
the processor is used for reading the executable instructions from the memory and executing the executable instructions to realize the display method of the search result in any one of the claims 1 to 8.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of displaying search results according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210785688.3A CN115422307A (en) | 2022-07-04 | 2022-07-04 | Search result display method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210785688.3A CN115422307A (en) | 2022-07-04 | 2022-07-04 | Search result display method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115422307A true CN115422307A (en) | 2022-12-02 |
Family
ID=84197165
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210785688.3A Pending CN115422307A (en) | 2022-07-04 | 2022-07-04 | Search result display method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115422307A (en) |
-
2022
- 2022-07-04 CN CN202210785688.3A patent/CN115422307A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109976620B (en) | Method, device, equipment and storage medium for determining list item display attribute information | |
CN111190520A (en) | Menu item selection method and device, readable medium and electronic equipment | |
CN109558470B (en) | Trajectory data visualization method and device | |
CN110188299B (en) | Response type page processing method and device and electronic equipment | |
JP2022535917A (en) | Table information display method, device, equipment and storage medium | |
CN110609878A (en) | Interest point information display method, device, server and storage medium | |
US7990400B2 (en) | Method for displaying images on display screen | |
CN111273830A (en) | Data display method and device, electronic equipment and computer readable medium | |
CN113377365A (en) | Code display method, device, equipment, computer readable storage medium and product | |
CN111796825B (en) | Bullet screen drawing method, bullet screen drawing device, bullet screen drawing equipment and storage medium | |
CN112132654A (en) | Method, device and storage medium for displaying house source information | |
JP5310729B2 (en) | Avatar display method, avatar display device and program | |
CN110969159B (en) | Image recognition method and device and electronic equipment | |
CN112487871A (en) | Handwriting data processing method and device and electronic equipment | |
US20160062601A1 (en) | Electronic device with touch screen and method for moving application functional interface | |
CN113238688B (en) | Form display method, device, equipment and medium | |
WO2024088209A1 (en) | Position information acquisition method and apparatus | |
CN116071377A (en) | Map labeling method and device and map labeling device | |
CN109683726B (en) | Character input method, character input device, electronic equipment and storage medium | |
CN110619028A (en) | Map display method, device, terminal equipment and medium for house source detail page | |
CN108920065B (en) | Split screen window adjusting method and device, storage medium and electronic equipment | |
CN115422307A (en) | Search result display method, device, equipment and medium | |
CN112395519A (en) | Method and device for generating interest points in road information | |
CN112947818A (en) | List-based information display method, system, device and storage medium | |
KR20090000107A (en) | Representation method on map for video image taken by mobile camera |
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 |