[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107402937A - A kind of searching method, device and electronic equipment - Google Patents

A kind of searching method, device and electronic equipment Download PDF

Info

Publication number
CN107402937A
CN107402937A CN201610342259.3A CN201610342259A CN107402937A CN 107402937 A CN107402937 A CN 107402937A CN 201610342259 A CN201610342259 A CN 201610342259A CN 107402937 A CN107402937 A CN 107402937A
Authority
CN
China
Prior art keywords
search
user
determining
target
preset
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.)
Granted
Application number
CN201610342259.3A
Other languages
Chinese (zh)
Other versions
CN107402937B (en
Inventor
孔祥来
栾艳
陈婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201610342259.3A priority Critical patent/CN107402937B/en
Publication of CN107402937A publication Critical patent/CN107402937A/en
Application granted granted Critical
Publication of CN107402937B publication Critical patent/CN107402937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to internet arena, discloses a kind of searching method, device and electronic equipment, to solve not accurate enough the technical problem of search result in the prior art.This method includes:After the search operation of user is obtained, the search purpose that the user of electronic equipment scans for can be determined first, then determine to include the first search result of M target location by the region of search corresponding to search operation and search purpose, namely, need further to refer to the search purpose of user based on search operation corresponding to obtain during search result, so reached the technique effect that more accurate search result can be provided.

Description

Searching method and device and electronic equipment
Technical Field
The present invention relates to the field of internet, and in particular, to a search method, a search device, and an electronic device.
Background
With the continuous development of science and technology, electronic technology has also gained rapid development, and the variety of electronic products is also more and more, and people also enjoy various conveniences brought by the development of science and technology. People can enjoy comfortable life brought along with the development of science and technology through various types of electronic equipment. For example, electronic devices such as smart phones and tablet computers have become an important part of people's lives, and users can listen to music, play games and the like by using the electronic devices such as the smart phones and the tablet computers, so as to relieve the pressure caused by modern fast-paced lives.
In the prior art, a search function is provided for an electronic device, and a preset type of target position within a preset distance range can be searched through the search function, where the preset type of target position includes, for example: the target positions of the preset types are provided for the user, so that the user can select the target position to be checked from the target positions, however, in the prior art, the user can expect different search results in different search scenes, and therefore, the technical problem that the provided search results are not accurate enough exists in the prior art.
Disclosure of Invention
The invention provides a searching method, a searching device and electronic equipment, and aims to solve the technical problem that a searching result is not accurate enough in the prior art.
In a first aspect, an embodiment of the present invention provides a search method, including:
obtaining a search operation of a user;
determining a searching purpose for searching by a user of the electronic equipment;
and responding to the search operation, and determining a first search result containing M target positions according to the search area corresponding to the search operation and the search purpose, wherein M is a positive integer.
Optionally, the determining a search purpose of a search performed by a user of the electronic device includes:
judging whether the search area contains a preset target position, if so, determining that the search purpose is to search the preset target position; if not, determining that the search purpose is to search a preset type of target position in the search area.
Optionally, the method further includes:
determining the preset target position based on the setting operation of the user; and/or the presence of a gas in the gas,
and determining the preset target position based on the historical operation records of the user.
Optionally, the method further includes: if the search operation is the dragging operation of the user on the map, determining the search area based on the end position of the dragging operation; or,
if the search operation is the input operation of the user, determining the search area based on the input content of the input operation; or,
and if the search operation is the clicking operation of the user on the map, determining the search area based on the position of the clicking operation.
Optionally, the determining, by the search area corresponding to the search operation and the search destination, a first search result including M target positions includes:
if the searching purpose is to search a preset target position, determining a first searching result of at least one target point comprising the preset target position; and/or determining the first search result comprising a sorting mode of at least one target point corresponding to the preset target position, wherein the sorting priority of the at least one target point in the sorting mode is higher than that of the target position in the preset category.
Optionally, the first search result including at least one target point of the predetermined target position includes: and at least one first search result of name information of the preset target position, address information of the preset target position and access information of the preset target position.
Optionally, if the search purpose is to search a preset type of target location in the search area, the first search result includes: at least one of name information of the M target positions, classification information of the M target positions, sorting information of the M target positions, and address information of the M target positions.
Optionally, the method further includes:
obtaining distance values of the M target positions from a search center position; and/or the presence of a gas in the gas,
obtaining classification information of the M target positions;
determining the ranking information based on the distance value and/or the classification information.
Optionally, the determining the sorting information based on the classification information includes:
acquiring historical operation records of the user aiming at target positions of various preset types; determining the sorting information based on the historical operation records; and/or the presence of a gas in the gas,
acquiring a historical operation record of the user for a preset type of target position contained in the search area; and determining the sorting information based on the historical operation records.
Optionally, the method further includes:
obtaining the adjustment operation of the user for the search area;
and adjusting the first search result obtained based on the search operation into a second search result in response to the adjustment operation.
Optionally, if the search operation is an input operation of the user, the determining the search area based on the input content of the input operation includes:
determining the search area based on at least one voice interaction of the electronic device with the user.
Optionally, the determining the search area based on at least one voice interaction between the electronic device and the user includes:
receiving voice information of the user;
sending the voice information to a server for semantic recognition;
and adjusting the interactive content generated by the electronic equipment based on the recognition result of the semantic recognition so as to obtain a search area.
In a second aspect, an embodiment of the present invention provides a search apparatus, including:
the first obtaining module is used for obtaining the search operation of a user;
the first determining module is used for determining the searching purpose of searching by a user of the electronic equipment;
and the first response module is used for responding to the search operation and determining a first search result containing M target positions according to the search area corresponding to the search operation and the search purpose, wherein M is a positive integer.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors includes instructions for:
obtaining a search operation of a user;
determining a searching purpose for searching by a user of the electronic equipment;
and responding to the search operation, and determining a first search result containing M target positions according to the search area corresponding to the search operation and the search purpose, wherein M is a positive integer.
The invention has the following beneficial effects:
in the embodiment of the present invention, after the search operation of the user is obtained, a search purpose for the user of the electronic device to perform a search may be determined first, and then the first search result including the M target locations is determined according to the search area and the search purpose corresponding to the search operation, that is, when the corresponding search result is obtained based on the search operation, a search purpose of the user needs to be further referred to, so that a technical effect of being able to provide a more accurate search result is achieved.
Drawings
FIG. 1 is a flow chart of a search method in an embodiment of the invention;
FIG. 2 is a schematic diagram of a setup interface for setting a predetermined target location in an embodiment of the invention;
FIG. 3 is a block diagram of a search apparatus according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating an electronic device implementing a search method in accordance with an exemplary embodiment;
fig. 5 is a schematic structural diagram of a server in an embodiment of the present invention.
Detailed Description
The invention provides a searching method, a searching device and electronic equipment, and aims to solve the technical problem that a searching result is not accurate enough in the prior art.
In order to solve the technical problems, the general idea of the embodiment of the present application is as follows:
after the search operation of the user is obtained, a search purpose for the user of the electronic device to perform the search may be determined first, and then the first search result including the M target positions is determined according to the search area and the search purpose corresponding to the search operation, that is, the search purpose of the user needs to be further referred to when the corresponding search result is obtained based on the search operation, so that a technical effect of being able to provide a more accurate search result is achieved.
In order to better understand the technical solutions of the present invention, the following detailed descriptions of the technical solutions of the present invention are provided with the accompanying drawings and the specific embodiments, and it should be understood that the specific features in the embodiments and the examples of the present invention are the detailed descriptions of the technical solutions of the present invention, and are not limitations of the technical solutions of the present invention, and the technical features in the embodiments and the examples of the present invention may be combined with each other without conflict.
In a first aspect, an embodiment of the present invention provides a search method, please refer to fig. 1, including:
step S101: obtaining a search operation of a user;
step S102: determining a searching purpose for searching by a user of the electronic equipment;
step S103: and responding to the search operation, and determining a first search result containing M target positions according to the search area corresponding to the search operation and the search purpose, wherein M is a positive integer.
For example, the method is applied to an electronic device with a search function, such as: cell phones, tablet computers, notebook computers, and the like.
In step S101, the search operation may be an accurate search operation or a fuzzy semantic search operation, where the accurate search operation is, for example: the user enters the exact search center location (e.g., XX way XX number, XX cell, etc.), and the ambiguous search operation is, for example: the user inputs a probable demand, and then performs voice analysis based on the demand of the user to obtain a corresponding search center position and a search purpose, for example: if the input content of the user is "dry pot", the search center position may be set as the current position, and the search purpose is determined as "dry pot", and if the input content of the user is "dry pot", the search center position may be set as the marquis area, and the search purpose is determined as "dry pot", for example.
The search operation may be a search operation generated in a variety of ways, such as:
the search operation is a drag operation of a user on a navigation interface of a navigation application program, wherein a navigation map can be displayed on the navigation interface, the user can place a finger on the surface of the navigation interface, then drag operation is generated for the navigation map, the end position of the drag operation can be used as a search center position, and an area included in a preset distance range (for example, 1km, 2km and the like) located in the search center position is used as a search area.
For example, after the navigation map is displayed on the navigation interface, the user can directly set a search center position on the navigation map through a clicking operation (for example, clicking a certain area on the map), and then an area included in a preset distance range located at the search center position is used as a search area.
The search operation is an input operation of a user, for example, a text input operation, a voice input operation, and the like, wherein the user may input a search center position (for example, east road of great stone, sunrise street, and the like), and then an area of a preset distance range of the search center position is used as a search area, and the like. If the input operation is a voice input operation, the user can directly input the position of the search center through the voice input operation so as to determine a search area based on the position of the search center; as an alternative embodiment, the determining the search area based on the input content of the input operation includes: determining the search area based on at least one voice interaction of the electronic device with the user. That is, when determining the search area, the search area is not based on a unilateral input operation of the user, but based on an interaction between the user and the electronic device, for example, the user and the electronic device generate the following interactions:
the user: i want to go out with friends to play;
an electronic device: asking you to visit the human landscape, the natural landscape or the food with friends?
The user: a gourmet bar;
an electronic device: there is a snack in the vicinity (brocade), how do you feel?
The user: may be used.
Furthermore, the electronic device can determine that the searching center position is a brocade based on voice interaction with the user, and then an area within a preset distance range of the brocade is used as a searching area.
When the electronic device performs at least one voice interaction with a user, the method may further include the following steps: receiving voice information of the user; sending the voice information to a server for semantic recognition; and adjusting the interactive content generated by the electronic equipment based on the recognition result of the semantic recognition so as to obtain a search area. Specifically, when the electronic device performs voice interaction with the user, the voice information generated by the electronic device can be adjusted in real time based on the difference between the voice information generated by the user, for example, the electronic device generates voice information "electronic device: asking you to visit the human landscape, the natural landscape or the food with friends? Then, if the user chooses to visit the human landscape with friends, the voice information generated by the electronic device is the voice information corresponding to the human landscape (e.g., Wuhci, Dufu grass Tang, etc.); if the user selects to take friends to visit the natural landscape, the voice information generated by the electronic equipment is the voice information corresponding to the natural landscape (such as Huaxi park, people park and the like), and if the user selects to take friends to eat the food, the voice information generated by the electronic equipment is the voice information related to the food (such as wide and narrow lanes, brocade and the like), and more accurate interaction can be carried out with the user based on the scheme.
Of course, the search operation may also be generated in other manners, and the search area may also be determined based on other principles, which are not illustrated in detail and are not limited in the embodiments of the present invention.
In step S102, the search purpose may be determined in various ways, and two of them are listed below for description, which is not limited to the following two cases in the specific implementation process.
Firstly, judging whether a preset target position is contained in the search area, if so, determining that the search purpose is to search the preset target position; if not, determining that the search purpose is to search a preset type of target position in the search area.
For example, the predetermined target positions are, for example: a location of the user's home, a location of the user's company, a place the user frequents, and so on. The preset target position may be determined in a number of ways, for example:
determining the preset target positions based on the setting operation of the user, wherein a setting interface can be provided for the user, and the user sets each preset target position respectively, for example: setting a home location, a company location, a frequent location, and the like, as shown in fig. 2, the setting interface is a schematic diagram of a setting interface, the setting interface includes three setting buttons, which are respectively the home location, the company location, and other frequent locations, if a user needs to set the home location, the user can click the button of the home location, and after the electronic device detects that the user clicks the corresponding button, an input interface can be provided, and the user inputs the home location; or, after the electronic device monitors that the user clicks the corresponding button, a navigation map can be provided, and the user sets the home position on the navigation map in a dragging and clicking mode, and the like. For setting other positions, the setting mode is similar to the position of the setting house, and the description is omitted here.
Determining the preset target position based on the historical operation record of the user, wherein the historical operation record comprises the following steps: at least one of a historical location record, a historical search record, and a historical collection record. Taking a historical positioning record as an example, the most frequent positions of users in each time period can be obtained, then a preset target position is determined based on the most frequent position of the users in each time period, under a common condition, 9: 00-17: 00 is the working time, the position with the highest occurrence frequency in the positions of the users in the time period can be taken as the position of a company, the users in the range of 20: 00-24: 00 are usually at home, the place with the highest occurrence frequency in the positions of the users in the time period can be taken as the position of the home, and the like; as another example, the most frequently visited positions of the user may be obtained based on the historical positioning records, then sorted from high to low, the positions sorted in the first few bits (e.g., 2 bits, 3 bits, etc.) are obtained, and then the types of the positions sorted in the first few bits are determined, for example: if the type of the corresponding location is a house, it may be determined that the corresponding location is a home in the preset target location, if the type of the corresponding location is an office building, it may be determined that the corresponding location is a company in the preset target location, if the type of the corresponding location is other types (e.g., dining, shopping, traffic, etc.), it may be determined that the corresponding location is a frequent location in the preset target location, and so on. Taking a historical search record as an example, under a common condition that 8: 00-10: 00 is working hours, a user often searches the position of a company in the period of time, so that a target position with the maximum number of user search times in the period of time can be used as the position of the company of the user, and under a common condition that 17: 00-19: 00 is working hours, the user often searches the position of the home in the period of time, so that the target position with the maximum number of user search times in the period of time can be used as the position of the home of the user, and the like; taking the historical collection records as an example, the user often collects the historical collection records of the home, the company and other places where the user frequently goes, so that if the user locates a certain target position in the historical collection records of the user, the target position can be determined to be a preset target position. Of course, the predetermined target position may also be determined in other ways, and embodiments of the present invention are not illustrated in detail and are not limited.
If the search area contains the preset target position, the fact that the user often wants to go to home (a company or other places where the user frequently goes) is indicated, and in this case, the search purpose can be determined to be searching the preset target position; if the search area does not contain the preset target position, the user may want to obtain some services (such as dining, shopping, transportation and the like), and in this case, the target position of the preset category in the search area can be obtained.
Secondly, judging whether input content generated by a user during search operation contains preset keywords or not; if yes, determining that the search purpose is to search a preset target position; if not, determining that the search purpose is to search a preset type of target position in the search area.
For example, the preset keywords include, for example: home, company, etc., and may also be a preset location manually set for some users, such as: restaurants in a1, office buildings a2, etc. If the user wishes to go home, the following input content "i want to go home" may be generated when the input operation is generated, wherein the preset keyword "home" is included, and then it may be determined that the search purpose is to search for a predetermined target position; for another example, if the user desires to go to a company, the following input content "go to company" may be generated, which includes a preset keyword "company", it may be determined that the search face is facing a predetermined target position for searching, and so on.
In step S103, the provided search results are different according to the different search purposes, and the description will be separately provided according to the two search purposes, which is, of course, not limited to the following two cases in the specific implementation process.
First, if the search purpose is to search for a predetermined target location, the following types of search results can be determined:
-determining a first search result for at least one target point comprising said predetermined target position.
For example, the first search result of at least one target point including the predetermined target location includes, for example: name information of the predetermined target location, address information of the predetermined target location, entrance and exit information of the predetermined target location, and the like, for example: if the predetermined target location is the user's home, the user's home is cell 1 of A3, the cell A3 includes three doors, namely a main door, a south door and a north door, and further includes a parking lot, and the specific address of the cell A3 is wuhou jin yang road 130, the name information of the predetermined target location includes: the A3 cell (or the A3 cell 1), the address information of the predetermined target position is Wuhou district Jinyang road 130 number, the entrance and exit information of the predetermined target position includes: a cell main gate A3, a cell south gate A3, a cell north gate A3, a cell parking lot A3, and so on. For another example, if the predetermined target location is a location frequently visited by the user (e.g., a restaurant in a 1), the restaurant in a1 has a gate and a parking lot, the restaurant in a1 is located in qingjiang east 13, the name information of the predetermined target location is the restaurant in a1, the address information of the predetermined target location is qingjiang east 13, and the entrance and exit information of the predetermined target location includes: restaurant gates in a1, restaurant parking lots in a1, and so on. The M target points included in the first search result may only include target positions corresponding to predetermined target positions, and may also include other target positions in the search area, for example: and searching for a preset category of target position in the area, which is not limited in the embodiment of the present invention.
For example, a search result of at least one target point including a predetermined target position may be preferentially provided to a user, and then a search result of a preset category may be provided to the user, wherein, when a preset type of search result is provided to the user, if the preset category includes a plurality of categories, the search result of the preset category may be provided to the user in different categories; search results of multiple categories may also be provided to the user after being mixed, and the embodiment of the present invention is not limited.
Determining the first search result containing a sorting mode of at least one target point corresponding to the preset target position, wherein the sorting priority of the at least one target point in the sorting mode is higher than that of the target position in the preset category.
For example, if the M target positions included in the obtained first search result include both the search result corresponding to the predetermined target position and the search result corresponding to the target position of the predetermined category, the ranking priority of the search result corresponding to the predetermined target position may be set to be higher than the ranking priority of the search result corresponding to the target position of the predetermined category, for example: and displaying the search result corresponding to the preset target position in front of the target position of the preset category, so that the search result corresponding to the preset target position is preferentially provided for the user.
Secondly, if the search purpose is to search for a preset kind of target position in the search area, the first search result comprises: at least one of name information of the M target positions, classification information of the M target positions, sorting information of the M target positions, and address information of the M target positions.
For example, assume that the predetermined types of target locations include: the traffic class, the catering class and the shopping class obtain 6 target positions shown in the table 1:
TABLE 1
The names of the respective target locations may be provided separately when the first search result is to be provided, and the bottom or one side of the name of each target location provides address information of each target location for selection by the user. In addition, the classification information of each target location may be displayed on one side of each target location, or the target locations may be directly classified into three categories, and the target locations included in the three categories are provided, for example, B1 dry pot, B3 braille, B5 snack are provided in the location of catering category, B2 mall and B6 mall are provided in the location of shopping category, B4 bus stop is provided in the location of traffic category, and the like. When the first search result including the M target positions is provided to the user, the target positions may be ranked according to ranking information and then provided to the user, and in a specific implementation process, the ranking information of the M target positions may be determined through various parameters, for example:
the first way of determining the sequencing information is as follows: obtaining distance values of the M target positions from the target position, and determining the sorting information according to the distance values, for example: in determining the first search result, the respective target locations may be ranked from low to high by distance value and then provided to the user. Taking 6 target positions shown in table 1 as an example, the sorting information is: the ordering information includes, by way of example only and not by way of limitation, B2 market, B3 dip, B6 market, B5 snack, B4 bus station, and B1 dry pot.
Determining the second mode of sequencing information: and obtaining the classification information of each target position in the M target positions, and determining the sequencing information according to the classification information.
For example, different priorities may be set for the target positions of the respective categories, wherein the priorities of the respective preset categories may be manually set by the user, for example: food and beverage class, shopping class, transportation class and the like, wherein for the target position under each class, the sequencing can be carried out according to the distance value between the target position and the target position, so that for 6 target positions shown in table 1, the sequencing information is as follows: the method comprises the following steps of (1) making a hand with B3, (B5) snack, (B1) drying pot, (B2) market, (B6) market, (B4) bus station. In a specific implementation process, the priority of each category may also be automatically determined based on the historical operation record of the user, and when the priority of each category is determined based on the historical operation record, various manners may be adopted, for example: acquiring historical operation records of the user aiming at target positions of various preset types; the sorting information is determined based on the historical operation records, specifically, during the historical use process, the user may generate some historical operation records for each preset type of target position (no requirement is made on the place where each preset type of target position is located), for example: the method includes searching records, selecting records, navigating records and the like, counting operation times of a user for target positions of various preset types, sorting the target positions of the various preset types from high to low according to the operation times, wherein priority scores of the target positions are positively correlated with the operation times, for example, sorting the preset types from high to low into a catering type and a shopping type and a transportation type according to the operation times, setting the priority score of the catering type to be 3, setting the priority score of the shopping type to be 2, setting the priority score of the transportation type to be 1 and the like, and certainly, other priority scores can be used, and the embodiment of the invention is not limited.
Acquiring a historical operation record of the user for a preset type of target position contained in a search area; and determining the sorting information based on the historical operation records. Specifically, when obtaining the history operation records, only the history operation records of the user for the preset kind of destination positions included in the search area are acquired, and then the ranking information of each category is determined based on the history operation records. The selected historical operation records can be historical operation records adopted by the user for the search area for several times, or all historical operation records adopted by the user for the search area, and taking the historical operation records adopted for the search area last time as an example, after the electronic equipment provides target positions of preset categories for the user, the user selects the target positions of catering categories from the categories (such as catering categories, shopping categories, traffic categories and the like), so that the situation that the user is interested in the target positions of the catering categories in the search area is shown, and the priority value of the catering categories can be improved; for another example, if the user selects B1 dry pans from each target location, the user is interested in B1 dry pans in the search area, the priority score of the B1 dry pans may be increased, and so on. In the scheme, the sequencing information is determined only based on the historical operation record in the search area, so that on one hand, the target position of the search is considered when the sequencing information is determined, and the determined sequencing information is more accurate; on the other hand, since the amount of data processed by the electronic device is reduced, the processing load of the electronic device can be reduced.
Of course, these two approaches can also be used in combination, for example: firstly, sorting each target position according to classification information, and sorting target positions with the same classification information according to distance values; for another example, different priorities are set for the categories, for example: the food and beverage category has a priority score of 3, the shopping category has a priority score of 2, and the transportation category has a priority score of 1, and different priority scores are respectively set for each distance range, as shown in table 2, for example:
TABLE 2
Distance range (m) <500 [500,1000) ≥1000
Priority level 3 2 1
The priority scores based on the classification information and the priority scores based on the distance values can be summed by weight values for each target position to obtain a comprehensive score value, then, the target positions are ranked from high to low according to the comprehensive score value, the ranking information of the target positions can be obtained, if the weight value of the priority score based on the classification information is 0.6, and the weight value of the priority score based on the distance value is 0.4, aiming at the catering class of the B1 griddle, which is based on the classification information having a priority score of 3, which is based on the distance value having a priority score of 1, it can be determined that its integrated score value is 3 x 0.6+1 x 0.4-2.2, although, based on the classification information and distance values of the respective target locations being different, the corresponding comprehensive score values are also different, and the embodiment of the invention is not listed in detail and is not limited.
As an alternative embodiment, the method further comprises: obtaining the adjustment operation of the user for a search area; and adjusting the first search result obtained based on the search operation into a second search result in response to the adjustment operation.
Specifically, that is, if an operation of adjusting the search area in real time by the user is detected, for example: the search area is adjusted through dragging operation, the search area is adjusted through inputting operation, the search area is adjusted through clicking operation and the like, then the M provided target positions can be refreshed in real time, a user can conveniently and clearly locate a new target position, and operation efficiency and use experience are improved.
In a second aspect, based on the same inventive concept, an embodiment of the present invention provides a search apparatus, please refer to fig. 3, including:
a first obtaining module 30, configured to obtain a search operation of a user;
a first determining module 31, configured to determine a search purpose of a search performed by a user of the electronic device;
a first response module 32, configured to respond to the search operation, determine, through a search area corresponding to the search operation and the search destination, a first search result including M target positions, where M is a positive integer.
Optionally, the first determining module 31 is configured to:
judging whether the search area contains a preset target position, if so, determining that the search purpose is to search the preset target position; if not, determining that the search purpose is to search a preset type of target position in the search area.
Optionally, the apparatus further comprises:
a second determination module, configured to determine the predetermined target location based on a setting operation of the user; and/or determining the preset target position based on the historical operation record of the user.
Optionally, the apparatus further comprises:
a third determining module, configured to determine the search area based on an end position of the dragging operation if the search operation is the dragging operation of the user on the map; or,
if the search operation is the input operation of the user, determining the search area based on the input content of the input operation; or,
and if the search operation is the clicking operation of the user on the map, determining the search area based on the position of the clicking operation.
Optionally, the first response module 32 is configured to:
if the searching purpose is to search a preset target position, determining a first searching result of at least one target point comprising the preset target position; and/or determining the first search result comprising a sorting mode of at least one target point corresponding to the preset target position, wherein the sorting priority of the at least one target point in the sorting mode is higher than that of the target position in the preset category.
Optionally, the first search result including at least one target point of the predetermined target position includes: and at least one first search result of name information of the preset target position, address information of the preset target position and access information of the preset target position.
Optionally, if the search purpose is to search a preset type of target location in the search area, the first search result includes: at least one of name information of the M target positions, classification information of the M target positions, sorting information of the M target positions, and address information of the M target positions.
Optionally, the apparatus further comprises:
a second obtaining module, configured to obtain distance values of the M target positions from a search center position; and/or obtaining classification information of the M target positions;
a third determining module for determining the sorting information based on the distance value and/or the classification information.
Optionally, the third determining module is configured to:
acquiring historical operation records of the user aiming at target positions of various preset types; determining the sorting information based on the historical operation records; and/or the presence of a gas in the gas,
acquiring a historical operation record of the user for a preset type of target position contained in the search area; and determining the sorting information based on the historical operation records.
Optionally, the apparatus further comprises:
a third obtaining module, configured to obtain an adjustment operation of the user for the search area;
and the second response module is used for responding to the adjustment operation and adjusting the first search result obtained based on the search operation into a second search result.
Optionally, if the search operation is an input operation of the user, the third determining module is configured to:
determining the search area based on at least one voice interaction of the electronic device with the user.
Optionally, the third obtaining module includes:
a receiving unit, configured to receive voice information of the user;
the sending unit is used for sending the voice information to a server for semantic recognition;
and the adjusting unit is used for adjusting the interactive content generated by the electronic equipment based on the recognition result of the semantic recognition so as to obtain a search area.
Since the apparatus described in the second aspect of the present invention is an apparatus used for implementing the search method described in the first aspect of the present invention, and based on the search method described in the first aspect of the present invention, a person skilled in the art can understand the specific structure and the modification of the apparatus described in the second aspect of the present invention, and therefore will not be described herein again, and all the apparatuses used for implementing the search method described in the first aspect of the present invention belong to the scope of the present invention to be protected.
In a third aspect, based on the same inventive concept, an embodiment of the present invention provides an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by the one or more processors, and the one or more programs include instructions for:
obtaining a search operation of a user;
determining a searching purpose for searching by a user of the electronic equipment;
and responding to the search operation, and determining a first search result containing M target positions according to the search area corresponding to the search operation and the search purpose, wherein M is a positive integer.
Since the electronic device described in the third aspect of the present invention is an electronic device used for implementing the searching method described in the first aspect of the present invention, based on the searching method described in the first aspect of the present invention, a person skilled in the art can understand a specific structure and a modification of the electronic device described in the third aspect of the present invention, and thus details are not described here, and all electronic devices used for implementing the searching method described in the first aspect of the present invention belong to the scope of the present invention.
Fig. 4 is a block diagram of an electronic device 800 illustrating a search method according to an example embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 806 provide power to the various components of the electronic device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a search method, the method comprising:
obtaining a search operation of a user;
determining a searching purpose for searching by a user of the electronic equipment;
and responding to the search operation, and determining a first search result containing M target positions according to the search area corresponding to the search operation and the search purpose, wherein M is a positive integer.
Fig. 5 is a schematic structural diagram of a server in an embodiment of the present invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
One or more embodiments of the invention have at least the following beneficial effects:
in the embodiment of the present invention, after the search operation of the user is obtained, a search purpose for the user of the electronic device to perform a search may be determined first, and then the first search result including the M target locations is determined according to the search area and the search purpose corresponding to the search operation, that is, when the corresponding search result is obtained based on the search operation, a search purpose of the user needs to be further referred to, so that a technical effect of being able to provide a more accurate search result is achieved.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (14)

1. A method of searching, comprising:
obtaining a search operation of a user;
determining a searching purpose for searching by a user of the electronic equipment;
and responding to the search operation, and determining a first search result containing M target positions according to the search area corresponding to the search operation and the search purpose, wherein M is a positive integer.
2. The method of claim 1, wherein determining a search purpose for a search by a user of the electronic device comprises:
judging whether the search area contains a preset target position, if so, determining that the search purpose is to search the preset target position; if not, determining that the search purpose is to search a preset type of target position in the search area.
3. The method of claim 2, wherein the method further comprises:
determining the preset target position based on the setting operation of the user; and/or the presence of a gas in the gas,
and determining the preset target position based on the historical operation records of the user.
4. The method of claim 2, wherein the method further comprises: if the search operation is the dragging operation of the user on the map, determining the search area based on the end position of the dragging operation; or,
if the search operation is the input operation of the user, determining the search area based on the input content of the input operation; or,
and if the search operation is the clicking operation of the user on the map, determining the search area based on the position of the clicking operation.
5. The method of claim 2, wherein determining a first search result comprising M target locations from the search area corresponding to the search operation and the search destination comprises:
if the searching purpose is to search a preset target position, determining a first searching result of at least one target point comprising the preset target position; and/or determining the first search result comprising a sorting mode of at least one target point corresponding to the preset target position, wherein the sorting priority of the at least one target point in the sorting mode is higher than that of the target position in the preset category.
6. The method of claim 5, wherein the first search result including at least one target point of the predetermined target location comprises: and at least one first search result of name information of the preset target position, address information of the preset target position and access information of the preset target position.
7. The method of claim 2, wherein if the search objective is to search for a preset category of target locations within the search area, the first search result comprises: at least one of name information of the M target positions, classification information of the M target positions, sorting information of the M target positions, and address information of the M target positions.
8. The method of claim 7, wherein the method further comprises:
obtaining distance values of the M target positions from a search center position; and/or the presence of a gas in the gas,
obtaining classification information of the M target positions;
determining the ranking information based on the distance value and/or the classification information.
9. The method of claim 8, wherein said determining said ranking information based on said classification information comprises:
acquiring historical operation records of the user aiming at target positions of various preset types; determining the sorting information based on the historical operation records; and/or the presence of a gas in the gas,
acquiring a historical operation record of the user for a preset type of target position contained in the search area; and determining the sorting information based on the historical operation records.
10. The method of any one of claims 1-9, wherein the method further comprises:
obtaining the adjustment operation of the user for the search area;
and adjusting the first search result obtained based on the search operation into a second search result in response to the adjustment operation.
11. The method of claim 4, wherein if the search operation is an input operation by the user, the determining the search area based on the input content of the input operation comprises:
determining the search area based on at least one voice interaction of the electronic device with the user.
12. The method of claim 11, wherein the determining the search area based on at least one voice interaction of the electronic device with the user comprises:
receiving voice information of the user;
sending the voice information to a server for semantic recognition;
and adjusting the interactive content generated by the electronic equipment based on the recognition result of the semantic recognition so as to obtain a search area.
13. A search apparatus, comprising:
the first obtaining module is used for obtaining the search operation of a user;
the first determining module is used for determining the searching purpose of searching by a user of the electronic equipment;
and the first response module is used for responding to the search operation and determining a first search result containing M target positions according to the search area corresponding to the search operation and the search purpose, wherein M is a positive integer.
14. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for:
obtaining a search operation of a user;
determining a searching purpose for searching by a user of the electronic equipment;
and responding to the search operation, and determining a first search result containing M target positions according to the search area corresponding to the search operation and the search purpose, wherein M is a positive integer.
CN201610342259.3A 2016-05-20 2016-05-20 Searching method and device and electronic equipment Active CN107402937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610342259.3A CN107402937B (en) 2016-05-20 2016-05-20 Searching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610342259.3A CN107402937B (en) 2016-05-20 2016-05-20 Searching method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107402937A true CN107402937A (en) 2017-11-28
CN107402937B CN107402937B (en) 2021-01-05

Family

ID=60389198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610342259.3A Active CN107402937B (en) 2016-05-20 2016-05-20 Searching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107402937B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108492836A (en) * 2018-03-29 2018-09-04 努比亚技术有限公司 A kind of voice-based searching method, mobile terminal and storage medium
CN109284447A (en) * 2018-08-13 2019-01-29 上海擎感智能科技有限公司 Search for information sorting method, system, storage medium and equipment
CN111241222A (en) * 2020-01-07 2020-06-05 珠海格力电器股份有限公司 Map information display method, storage medium and electronic equipment
CN111581245A (en) * 2020-03-26 2020-08-25 口口相传(北京)网络技术有限公司 Data searching method and device
US11263284B2 (en) 2018-04-25 2022-03-01 Wangsu Science & Technology Co., Ltd. Method and system for loading web page, and server

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060085392A1 (en) * 2004-09-30 2006-04-20 Microsoft Corporation System and method for automatic generation of search results based on local intention
CN101949707A (en) * 2009-07-10 2011-01-19 爱信艾达株式会社 The computer-readable recording medium of location retrieval device, position search method and memory location search program
CN103020069A (en) * 2011-09-22 2013-04-03 联想(北京)有限公司 Method, device and electronic equipment for searching data
CN104679801A (en) * 2013-12-03 2015-06-03 高德软件有限公司 Point of interest searching method and point of interest searching device
CN104899285A (en) * 2015-06-04 2015-09-09 百度在线网络技术(北京)有限公司 Display method and apparatus for search result
CN104915393A (en) * 2015-05-26 2015-09-16 百度在线网络技术(北京)有限公司 Directional search method and device
KR101621735B1 (en) * 2015-01-07 2016-05-17 주식회사 카카오 Recommended search word providing method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060085392A1 (en) * 2004-09-30 2006-04-20 Microsoft Corporation System and method for automatic generation of search results based on local intention
CN101949707A (en) * 2009-07-10 2011-01-19 爱信艾达株式会社 The computer-readable recording medium of location retrieval device, position search method and memory location search program
CN103020069A (en) * 2011-09-22 2013-04-03 联想(北京)有限公司 Method, device and electronic equipment for searching data
CN104679801A (en) * 2013-12-03 2015-06-03 高德软件有限公司 Point of interest searching method and point of interest searching device
KR101621735B1 (en) * 2015-01-07 2016-05-17 주식회사 카카오 Recommended search word providing method and system
CN104915393A (en) * 2015-05-26 2015-09-16 百度在线网络技术(北京)有限公司 Directional search method and device
CN104899285A (en) * 2015-06-04 2015-09-09 百度在线网络技术(北京)有限公司 Display method and apparatus for search result

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108492836A (en) * 2018-03-29 2018-09-04 努比亚技术有限公司 A kind of voice-based searching method, mobile terminal and storage medium
US11263284B2 (en) 2018-04-25 2022-03-01 Wangsu Science & Technology Co., Ltd. Method and system for loading web page, and server
CN109284447A (en) * 2018-08-13 2019-01-29 上海擎感智能科技有限公司 Search for information sorting method, system, storage medium and equipment
CN111241222A (en) * 2020-01-07 2020-06-05 珠海格力电器股份有限公司 Map information display method, storage medium and electronic equipment
CN111241222B (en) * 2020-01-07 2021-07-20 珠海格力电器股份有限公司 Map information display method, storage medium and electronic equipment
CN111581245A (en) * 2020-03-26 2020-08-25 口口相传(北京)网络技术有限公司 Data searching method and device
CN111581245B (en) * 2020-03-26 2023-10-17 口口相传(北京)网络技术有限公司 Data searching method and device

Also Published As

Publication number Publication date
CN107402937B (en) 2021-01-05

Similar Documents

Publication Publication Date Title
US8386620B2 (en) Ad hoc networking based on content and location
CN106874308B (en) Recommendation method and device and recommendation device
CN107402937B (en) Searching method and device and electronic equipment
US8200247B1 (en) Confirming a venue of user location
US10917485B2 (en) Implicit contacts in an online social network
CN104850238B (en) The method and apparatus being ranked up to candidate item caused by input method
CN107346316A (en) A kind of searching method, device and electronic equipment
CN107315487B (en) Input processing method and device and electronic equipment
CN105933863B (en) Method and device for adding friends and electronic equipment
US20160335599A1 (en) Systems and methods for exchanging information
CN107302724A (en) A kind of video playing control method, device and electronic equipment
EP2973249A2 (en) Contextual socially aware local search
CN108874827B (en) Searching method and related device
CN110020106A (en) A kind of recommended method, recommendation apparatus and the device for recommendation
CN110472158A (en) A kind of sort method and device of search entry
CN106776990B (en) Information processing method and device and electronic equipment
CN105843865B (en) Media file playing method and device
US20150350166A1 (en) Methods and systems of communicating anonymously for enhanced networking by using specific locations within a specific range of distance
CN107807929B (en) Information processing method, device and equipment
CN107515853B (en) Cell word bank pushing method and device
CN108205534B (en) Skin resource display method and device and electronic equipment
CN107436900B (en) Information processing method and device based on search engine
CN109669550B (en) Method and device for obtaining user word stock
CN110020153B (en) Searching method and device
CN107870941B (en) Webpage sorting method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant