Searching method and related device

文档序号:1543588 发布日期:2020-01-17 浏览:5次 中文

阅读说明:本技术 一种搜索方法及相关装置 (Searching method and related device ) 是由 陈小帅 张扬 马尔胡甫 于 2018-07-09 设计创作,主要内容包括:本申请提供了一种搜索方法及相关装置,所述搜索方法包括响应于用户的触屏操作,获得所述触屏操作对应的压力值;若所述触屏操作对应的压力值位于第一预设区间,确定所述触屏操作为搜索操作;获得所述触屏操作的轨迹信息,识别所述轨迹信息对应的输入内容;根据所述输入内容,获得所述搜索操作对应的搜索结果。可见,本申请实施例中,用户可以直接通过触屏操作输入需要搜索的内容,而且通过控制触屏力度与滑动、点击、拖拽等触屏常规操作相区分,因此能够快速地实现搜索功能,因此缩短了用户的搜索时间,提高了用户体验。(The application provides a searching method and a related device, wherein the searching method comprises the steps of responding to a touch screen operation of a user and obtaining a pressure value corresponding to the touch screen operation; if the pressure value corresponding to the touch screen operation is located in a first preset interval, determining that the touch screen operation is a search operation; acquiring track information of the touch screen operation, and identifying input content corresponding to the track information; and obtaining a search result corresponding to the search operation according to the input content. Therefore, in the embodiment of the application, the user can directly input the content to be searched through touch screen operation, and the touch screen strength is controlled to be distinguished from the conventional touch screen operations such as sliding, clicking and dragging, so that the search function can be quickly realized, the search time of the user is shortened, and the user experience is improved.)

1. A method of searching, comprising:

responding to a touch screen operation of a user, and acquiring a pressure value corresponding to the touch screen operation;

if the pressure value corresponding to the touch screen operation is located in a first preset interval, determining that the touch screen operation is a search operation;

acquiring track information of the touch screen operation, and identifying input content corresponding to the track information;

and obtaining a search result corresponding to the search operation according to the input content.

2. The method of claim 1, further comprising:

if the pressure value corresponding to the touch screen operation is located in a second preset interval, determining that the touch screen operation is a conventional touch screen operation;

triggering a function corresponding to the conventional touch screen operation; wherein the conventional touch screen operations include any one or more of: a sliding operation, a clicking operation, and a dragging operation.

3. The method of claim 1, wherein obtaining a search result corresponding to the search operation according to the input content comprises:

obtaining an index item matched with the input content;

acquiring an index relation between an index item and an index result;

and obtaining an index result corresponding to the matched index item according to the index relation, and taking the index result as a search result corresponding to the search operation.

4. The method of claim 3, further comprising:

obtaining the use probability of the search result;

and screening and/or sorting the matched search results according to the using probability.

5. The method of claim 4, wherein obtaining the probability of use of the search result comprises:

obtaining the use probability of the search result according to any one or more of the following information:

the using time of the search result, the using frequency of the search result, the latest using time of the search result, the matching degree of the common using time of the search result and the current time, the attribute information of the search result and the occurrence condition of the search result in the message bar.

6. The method of claim 1, wherein the responding to a user's touch screen operation comprises: responding to a plurality of touch screen operations meeting preset conditions, wherein the preset conditions comprise: and the operation time interval of the adjacent touch screen operation is less than the preset time interval.

7. The method of claim 1, further comprising:

and displaying the input track corresponding to the track information.

8. A search apparatus, comprising:

the pressure value obtaining module is used for responding to touch screen operation of a user and obtaining a pressure value corresponding to the touch screen operation;

the determining module is used for determining that the touch screen operation is a search operation if the pressure value corresponding to the touch screen operation is in a first preset interval;

the identification module is used for acquiring track information of the touch screen operation and identifying input content corresponding to the track information;

and the result obtaining module is used for obtaining a search result corresponding to the search operation according to the input content.

9. An apparatus for searching, 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 the one or more processors, the one or more programs comprising instructions for:

responding to a touch screen operation of a user, and obtaining a pressure value corresponding to the touch screen operation;

if the pressure value corresponding to the touch screen operation is located in a first preset interval, determining that the touch screen operation is a search operation;

acquiring track information of the touch screen operation, and identifying input content corresponding to the track information;

and obtaining a search result corresponding to the search operation according to the input content.

10. A machine-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform a search method as recited in one or more of claims 1-7.

Technical Field

The present application relates to the field of internet, and in particular, to a search method and related apparatus.

Background

With the rapid development of the intellectualization of the mobile terminal, more and more information is stored on the mobile terminal by a user. Therefore, how to quickly search for information required by a user from a large amount of information is a technical problem to be solved at present.

Because the size of the screen of the mobile terminal is limited, the user is usually required to perform a plurality of sliding operations to perform operations such as page turning, pull-up or pull-down, and search for information required by the user. Taking a search Application (APP for short), when there are many APPs installed, the APP is usually displayed in a multi-page manner, and when a user searches for an APP, the user needs to perform a sliding operation on a touch screen to turn a page. However, when the number of pages of the APP is large, the user is required to continuously perform the sliding operation to turn pages, even if the user classifies and discharges the APP, the classification set of the APP needs to be opened first, and then the search is performed from the classification set, so that the search process is time-consuming, and the user experience is poor.

Disclosure of Invention

The technical problem to be solved by the application is to provide a searching method and a related device, so that the searching time of a user is shortened, and the user experience is improved.

Therefore, the technical scheme for solving the technical problem is as follows:

the application provides a search method, which comprises the following steps:

responding to a touch screen operation of a user, and obtaining a pressure value corresponding to the touch screen operation;

if the pressure value corresponding to the touch screen operation is located in a first preset interval, determining that the touch screen operation is a search operation;

acquiring track information of the touch screen operation, and identifying input content corresponding to the track information;

and obtaining a search result corresponding to the search operation according to the input content.

Optionally, the method further includes:

if the pressure value corresponding to the touch screen operation is located in a second preset interval, determining that the touch screen operation is a conventional touch screen operation;

triggering a function corresponding to the conventional touch screen operation; wherein the conventional touch screen operations include any one or more of: a sliding operation, a clicking operation, and a dragging operation.

Optionally, obtaining a search result corresponding to the search operation according to the input content includes:

obtaining an index item matched with the input content;

obtaining an index relation between an index item and an index result;

and obtaining an index result corresponding to the matched index item according to the index relation, and taking the index result as a search result corresponding to the search operation.

Optionally, the method further includes:

obtaining a usage probability of the search result;

and screening and/or sorting the matched search results according to the using probability.

Optionally, obtaining the usage probability of the search result includes:

obtaining a probability of use of the search result based on any one or more of:

the using time of the search result, the using frequency of the search result, the latest using time of the search result, the matching degree of the common using time of the search result and the current time, the attribute information of the search result and the occurrence condition of the search result in the message bar.

Optionally, the responding to the touch screen operation of the user includes: responding to a plurality of touch screen operations meeting preset conditions, wherein the preset conditions comprise: and the operation time interval of the adjacent touch screen operation is less than the preset time interval.

Optionally, the method further includes:

and displaying the input track corresponding to the track information.

The application provides a search apparatus, including:

the pressure value obtaining module is used for responding to touch screen operation of a user and obtaining a pressure value corresponding to the touch screen operation;

the determining module is used for determining that the touch screen operation is a search operation if the pressure value corresponding to the touch screen operation is in a first preset interval;

the identification module is used for acquiring track information of the touch screen operation and identifying input content corresponding to the track information;

and the result obtaining module is used for obtaining a search result corresponding to the search operation according to the input content.

Optionally, a trigger module is included;

the determining module is further configured to determine that the touch screen operation is a conventional touch screen operation if the pressure value corresponding to the touch screen operation is in a second preset interval;

the triggering module is used for triggering a function corresponding to the conventional touch screen operation; wherein the conventional touch screen operations include any one or more of: a sliding operation, a clicking operation, and a dragging operation.

Optionally, the result obtaining module includes:

a first obtaining sub-module, configured to obtain an index item matching the input content;

the second obtaining submodule is used for obtaining an index relation between the index item and the index result;

and the third obtaining submodule is used for obtaining an index result corresponding to the matched index item according to the index relation and taking the index result as a search result corresponding to the search operation.

Optionally, the method further includes:

a probability obtaining module for obtaining the use probability of the search result;

and the result processing module is used for screening and/or sequencing the matched search results according to the use probability.

Optionally, the probability obtaining module is specifically configured to obtain the usage probability of the search result according to any one or more of the following information:

the using time of the search result, the using frequency of the search result, the latest using time of the search result, the matching degree of the common using time of the search result and the current time, the attribute information of the search result and the occurrence condition of the search result in the message bar.

Optionally, when responding to a touch screen operation of a user, the pressure value obtaining module is specifically configured to respond to a plurality of touch screen operations meeting a preset condition, where the preset condition includes: and the operation time interval of the adjacent touch screen operation is less than the preset time interval.

Optionally, the method further includes:

and the display module is used for displaying the input track corresponding to the track information.

An apparatus for searching is provided that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:

responding to a touch screen operation of a user, and obtaining a pressure value corresponding to the touch screen operation;

if the pressure value corresponding to the touch screen operation is located in a first preset interval, determining that the touch screen operation is a search operation;

acquiring track information of the touch screen operation, and identifying input content corresponding to the track information;

and obtaining a search result corresponding to the search operation according to the input content.

Embodiments of the present application provide a machine-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform any one of the above-described search methods.

According to the technical scheme, after the terminal device detects the touch screen operation, whether the touch screen operation is the search operation or not is judged according to the pressure value of the touch screen operation, the pressure value can reflect the touch screen strength, if yes, the input content corresponding to the track information of the touch screen operation is identified, the search result corresponding to the search operation is obtained according to the input content, and if not, the functions corresponding to the conventional touch screen operations such as sliding, clicking and dragging can be triggered. Therefore, in the embodiment of the application, the user can directly input the content to be searched through touch screen operation, and the touch screen strength is controlled to be distinguished from the conventional touch screen operations such as sliding, clicking and dragging, so that the search function can be quickly realized, the search time of the user is shortened, and the user experience is improved.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art according to the drawings.

Fig. 1 is a schematic flow chart of an embodiment of a method provided in an embodiment of the present application;

FIG. 2 is a schematic flow chart diagram illustrating an embodiment of an apparatus according to the present disclosure;

FIG. 3 is a block diagram illustrating an apparatus 300 for searching according to an example embodiment;

fig. 4 is a schematic structural diagram of a server in an embodiment of the present invention.

Detailed Description

In order to quickly search the APP needed to be used by the user from the installed APPs, one search method includes: after detecting the gesture operation of a user on the touch screen, judging whether the gesture operation is a character input operation or a sliding operation according to the track information of the gesture operation, if the gesture operation is the character input operation, identifying the input characters, and searching for an APP (application) according to the identified characters. However, in this search method, it is necessary to determine whether the gesture operation is a text input operation or a slide operation based on the trajectory information of the gesture operation, and user operations corresponding to the text input operation or the slide operation are relatively similar to each other, so that erroneous determination of the user operation is easily caused.

Based on the technical problem, embodiments of the present invention provide a search method and a related apparatus, which may utilize a three-dimensional (3D) touch screen (touch) technology to identify a touch screen pressure value capable of reflecting a touch screen force of a user, so as to distinguish a search operation from a conventional touch screen operation according to the touch screen pressure value, and when the search operation is determined, identify a content to be searched according to trajectory information of the touch screen operation, and obtain a search result corresponding to the search operation according to the content. Therefore, a user can directly input contents to be searched through touch screen operation, and the touch screen strength is controlled to be distinguished from the conventional touch screen operations such as sliding, clicking and dragging, so that the search function can be quickly realized, the search time of the user is shortened, and the user experience is improved. In addition, the method and the device can accurately judge whether the search operation is performed or the conventional touch screen operations such as sliding, clicking and dragging are performed according to the touch screen strength, and therefore misjudgment of user operations is reduced.

In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

Referring to fig. 1, a method embodiment of a search method is provided in the present invention.

The embodiment can be applied to a terminal device, wherein the terminal device can be any mobile or portable electronic device, including but not limited to a smart phone, a mobile computer, a tablet computer, a Personal digital assistant (abbreviated as PDA), a media player, and the like.

The embodiment comprises the following steps:

s101: and responding to a touch screen operation of a user, and acquiring a pressure value corresponding to the touch screen operation.

When the user has a search requirement, a touch screen operation can be performed on the touch screen of the terminal device, for example, characters such as strokes and pinyin are input by pressing the touch screen. When the user performs the touch screen operation, the pressure value of the touch screen operation can be further controlled, and the pressure value can reflect the touch screen strength of the touch screen operation performed by the user, such as pressing the touch screen heavily or pressing the touch screen lightly. Therefore, by responding to the touch screen operation of the user and acquiring the pressure value corresponding to the touch screen operation, whether the user presses the touch screen heavily or lightly can be determined according to the pressure value. The touch operation position of the user can be unlimited in the embodiment of the application, that is, the touch operation of the user at any position of the touch screen can be responded, so that the user experience is improved.

The touch screen operation may be a single touch screen operation or a plurality of continuous touch screen operations. For example, a user needs to input a character composed of a plurality of strokes, so that a plurality of continuous touch screen operations are performed on the touch screen, and the plurality of touch screen operations meet a preset condition: the operation time interval of the adjacent touch screen operations is smaller than the preset time interval, for example, the operation intervals of the adjacent touch screen operations are smaller than 1 second, and then a plurality of continuous touch screen operations can be determined. Correspondingly, the terminal device responds to the touch screen operations meeting the preset conditions.

In this embodiment, the application program such as the mobile phone assistant may be run in the background, so as to monitor the touch screen operation of the user equipment. And after the touch screen operation of the user is monitored, responding to the touch screen operation, and acquiring a pressure value corresponding to the touch screen operation.

S102: and if the pressure value corresponding to the touch screen operation is located in a first preset interval, determining that the touch screen operation is a search operation.

After the terminal device obtains the pressure value of the touch screen operation, the interval where the pressure value is located can be judged, and when the pressure value is located in the first preset interval, the terminal device determines that the touch screen operation is a search operation. When the pressure value is in the second preset interval, the terminal device may determine that the touch screen operation is any one or more of a sliding operation, a clicking operation and a dragging operation.

The first preset interval and the second preset interval are two intervals with different pressure values, and can be used for distinguishing the magnitude of touch screen force reflected by the pressure value of touch screen operation. For example, the first preset interval may be larger than the second preset interval, so that when the pressure value corresponding to the touch screen operation is located in the first preset interval, the touch screen strength indicating the touch screen operation of the user is a heavy press, and therefore the touch screen operation is determined to be a search operation, and a search result corresponding to the search operation is obtained; when the pressure value corresponding to the touch screen operation is located in the second preset interval, the touch screen force representing the touch screen operation of the user is a tap, so that the touch screen operation is determined to be a conventional touch screen operation such as a sliding operation, a clicking operation or a dragging operation, and the function of the conventional touch screen operation is triggered. When the conventional touch screen operation is determined, which conventional touch screen operation is specifically determined according to the touch screen time, the track information, the touch screen position and the like of the touch screen operation can be detected, for example, after the sliding operation is detected according to the touch screen track information, the operations of unlocking a screen, turning a page and the like corresponding to the sliding operation can be triggered, after the clicking operation is detected according to the touch screen time, the functions of opening an APP, closing the APP and the like corresponding to the clicking operation can be triggered, and after the dragging operation is detected according to the touch screen position and the track information, the operations of moving an icon of the APP and the like can be triggered.

S103: and acquiring track information of the touch screen operation, and identifying input content corresponding to the track information.

Since it is determined that the touch screen operation of the user is a search operation, it is necessary to identify input content corresponding to the trajectory information, such as characters input by the user, such as strokes and pinyin, according to the trajectory information of the touch screen operation, so as to perform a search according to the input content.

Optionally, while the user performs the touch screen operation, or after performing the touch screen operation, an input trajectory corresponding to the trajectory information of the touch screen operation may be further displayed. For example, when the user executes the touch screen operation, the terminal device displays the input track corresponding to the track information of the touch screen operation in real time, so that the user can conveniently observe the input track of the touch screen operation in real time, and the accuracy of the input track is ensured.

S104: and obtaining a search result corresponding to the search operation according to the input content.

After the terminal device acquires the input content, the function corresponding to the search operation can be triggered, that is, local search or networking search is performed according to the search content, so that a search result corresponding to the search operation is obtained. For example, when the input content is a character such as a stroke, an APP corresponding to the character such as the stroke may be searched in the local memory of the terminal device according to the character such as the stroke; for example, when the input content is a character such as pinyin, a contact list and the like corresponding to the pinyin character can be searched in a local memory of the terminal device according to the character such as pinyin.

According to the technical scheme, the 3D touch screen technology is utilized in the embodiment of the application, the touch screen pressure value capable of reflecting the touch screen strength of the user is identified, so that the searching operation and the conventional touch screen operation are distinguished according to the touch screen pressure value, when the searching operation is performed, the user can directly input the content to be searched through the touch screen operation, therefore, the searching function can be quickly achieved, the searching time of the user is shortened, and the user experience is improved. In addition, the method and the device can accurately judge whether the search operation is performed or the conventional touch screen operations such as sliding, clicking and dragging are performed according to the touch screen strength, and therefore misjudgment of user operations is reduced.

For example, a user inputs pinyin or strokes at any position on a touch screen through touch screen operation, and when the touch screen strength of the touch screen operation is determined to be the touch stress, handwriting recognition is performed on the touch screen operation of the user to search according to the recognized pinyin or strokes input by the user, for example, search for locally stored APP; when it is determined that the touch screen strength of the touch screen operation is the tap, triggering a corresponding function, for example, triggering page turning of a display interface according to the sliding operation according to the conventional touch screen operations such as sliding, clicking, dragging and the like corresponding to the touch screen operation. The two operations are distinguished by pressing the corresponding search operation again and pressing the corresponding conventional touch screen operation lightly, so that the search time of a user is shortened, and misjudgment of the user operation is reduced. In consideration of the difference of the operation habits of the user, the user can also set the corresponding relation between the touch screen strength and the search operation and the conventional touch screen operation.

In the embodiment of the application, in order to realize the search function, the index relationship between the index items such as strokes and pinyins and the index result can be established on the terminal device or the server, so that the terminal device can search according to the input content and the index relationship. Specifically, S104 may include: obtaining an index item matched with the input content of the user; acquiring an index relation between an index item and an index result; and obtaining an index result corresponding to the matched index item according to the index relation, and taking the index result as a search result corresponding to the search operation. The search APP is described in detail below as an example.

The terminal equipment can count the installed APP information such as the name, the type information and the function description information of the APP, and establish an index relationship between the APP information and the APP.

The index relationship may be an index relationship between a pinyin of the APP information and a call icon of the APP. The APP information comprises any one or more items of information such as APP name, type information and function description information. The following description will be given taking an example in which the APP information includes an APP name. For example, the index relationship includes pinyin: "QQ" with APP: the corresponding relation between calling icons of the QQ, and the pinyin: "QQlilulanqi" is compatible with APP: and (4) corresponding relation between calling icons of the QQ browser. When the user needs to search the APP, the pinyin Q can be input by handwriting at any position of the touch screen with touch screen strength which is pressed again, the terminal device matches the pinyin Q input by handwriting with the user with the pinyin in the index relation, and the matched pinyin is obtained: and obtaining calling icons of APP corresponding to matched pinyin QQ and QQlilulanqi according to the index relation, wherein the calling icons comprise the following icons: and a calling icon of the QQ browser are used as search results. The user can click any one of the calling icons, and accordingly the APP corresponding to the calling icon is opened. When the pinyin input by the user through handwriting is matched with the pinyin in the index relationship, a complete matching mode can be adopted, namely the pinyin and the pinyin are considered to be matched when the pinyin input by the user is completely the same, and a partial matching mode can also be adopted, namely the pinyin and the pinyin are considered to be matched when the pinyin and the pinyin are partially the same or similar, so that the user can input pinyin abbreviations by handwriting without handwriting the complete pinyin of the names, the categories or the functions of the APP, calculate the probability that the pinyin abbreviations input by handwriting are the pinyin in the index relationship, and determine whether the pinyin abbreviations input by the user through handwriting are matched with the pinyin in the index relationship or not according to the probability. It should be noted that, in the above example, the search term is a pinyin of information of the APP, and the search result is a call icon of the APP, which are taken as examples for explanation, and in fact, in this embodiment, specific contents and forms of the search term and the search result are not limited.

Similarly, an index relationship between the strokes of the APP information and the calling icons of the APP can also be established. The APP information comprises any one or more items of information such as APP name, type information and function description information.

The following description will be given taking an example in which the APP information includes an APP name. For example, the index relationship includes a "WeChat" stroke and a relationship with APP: the corresponding relation between calling icons of the WeChat, the stroke of the 'microblog' and the APP: and (4) corresponding relation between calling icons of the microblogs. When the user needs to search the APP, the user can generate the length to the touch screen force of re-pressing by handwriting input strokes at any position of the touch screen, the terminal device generates the length to the strokes of the user by handwriting input, the strokes are matched with the strokes in the index relation, and the matched strokes are obtained: the strokes of the WeChat and the strokes of the microblog are obtained, and the calling icons of the APPs corresponding to the matched strokes are obtained according to the index relation: and taking the calling icon of the WeChat and the calling icon of the microblog as search results. The user can click any one of the calling icons, and accordingly the APP corresponding to the calling icon is opened. When the strokes input by the user through handwriting are matched with the strokes in the index relationship, a complete matching mode can be adopted, namely the strokes are considered to be matched when the strokes are completely identical, and a partial matching mode can also be adopted, namely the strokes are considered to be matched when the strokes are partially identical or similar, so that the user can input the first strokes, the stroke components and the like of the strokes through handwriting without handwriting, calculate the probability that the first strokes and the stroke components of the strokes input through handwriting are the strokes in the index relationship, and determine whether the first strokes, the stroke components of the strokes input by the user through handwriting are matched with the strokes in the index relationship according to the probability.

The following description will take the example that the APP information includes the function description information of the APP. When the name of the APP is relatively long and difficult to remember, the user may difficultly remember the name of the APP, and the APP can be searched through the functions of the APP and the like, so that the diversity of searched content is increased, and the user experience is improved. For example, the index relationship includes function description information: the stroke of "job" is similar to APP: and (3) corresponding relation between calling icons of 'love learning'. When the user needs to search the APP, the user can input the Chinese character 'Gansu language operation' in a handwriting mode at any position of the touch screen with the touch screen force of re-pressing, the terminal device matches the strokes of the Chinese character 'Gausi language operation' input by the user in a handwriting mode with the strokes of the function description information in the index relation, and matched function description information is obtained: and the matched function description information is obtained according to the index relation: calling icon of APP corresponding to 'operation': and calling an icon for learning love. The user can click the calling icon, so that the APP corresponding to the calling icon is opened.

It should be noted that, in the above example, the search term is a stroke of information of the APP, and the search result is a call icon of the APP, which are taken as examples, and in fact, in the embodiment of the present application, specific contents and forms of the search term and the search result are not limited.

When a plurality of search results are obtained, the plurality of index results can be further screened, so that at least one search result which best meets the requirements of the user is obtained, or the search result list can be displayed, the plurality of index results in the search result list are sorted, the index results which meet the requirements of the user are arranged in front, and the search by the user is facilitated. The screening and sorting modes are specifically described below.

Optionally, the method further includes: obtaining the use probability of the search result, wherein the use probability can reflect the possibility that the search result is used by a user; and screening and/or sorting the search results according to the using probability.

Wherein, the use probability of the search result can be obtained according to any one or more of the following items of information:

the using time of the search result, the using frequency of the search result, the latest using time of the search result, the matching degree of the common using time of the search result and the current time, the attribute information of the search result and the occurrence condition of the search result in the message bar. Each of the above parameters will be described below.

The longer the usage time of the search result is, the higher the usage frequency and the closer the latest usage time are, the greater the possibility that the user uses the search result is, that is, the greater the usage probability of the search result is. The usage duration of the search result may be the total usage duration of the search result, or the usage duration of the search result within a period of time. The frequency of use of the search results may be the total frequency of use of the search results or the frequency of use of the search results over a period of time. For example, after obtaining the call icons of multiple APPs, the call icons of the APPs may be sorted according to the usage duration, the usage frequency, or the latest usage time of the APPs.

The common usage time of the search results refers to a time period in which the usage time of the search results is long or the usage frequency is high, for example, the usage time of APP of a certain news category is long in a time period of 7:00-9:00 at night. The higher the matching degree of the common use time and the current time is, the higher the possibility that the user uses the search result at the current time is, that is, the higher the use probability of the search result is. For example, when the current time is 8:00 pm, the matching degree between the current time and the common use time of the news type APP is high, and therefore the use probability of the news type APP is high.

The attribute information of the search result may include attribute information such as a category and a score of the search result, and the attribute information may also reflect a possibility that the user uses the search result, for example, when the score of the APP is higher, or when the category of the APP matches with a category of APPs commonly used by the user, the probability of using the APP is higher.

When a search result appears in the message bar, the more likely the user is to view the search result, so that the appearance of the search result in the message bar can reflect the possibility that the user searches the search result, for example, a push message is in the message bar, and the use probability of the push message is high.

In the embodiment of the present application, the usage probability of the search result may be obtained according to any one of the above information, or the usage probability of the search result may be obtained by integrating a plurality of items of information, which is not limited in the embodiment of the present application.

Corresponding to the above method embodiments, the present application further provides corresponding apparatus embodiments, which are specifically described below.

Referring to fig. 2, the present application provides an apparatus embodiment of a search apparatus, comprising: a pressure value obtaining module 201, a determining module 202, an identifying module 203 and a result obtaining module 204.

The pressure value obtaining module 201 is configured to obtain a pressure value corresponding to a touch screen operation in response to the touch screen operation of a user.

The determining module 202 is configured to determine that the touch screen operation is a search operation if the pressure value corresponding to the touch screen operation is located in a first preset interval.

The identifying module 203 is configured to obtain track information of the touch screen operation, and identify input content corresponding to the track information.

And a result obtaining module 204, configured to obtain a search result corresponding to the search operation according to the input content.

Optionally, a trigger module is included;

the determining module is further configured to determine that the touch screen operation is a conventional touch screen operation if the pressure value corresponding to the touch screen operation is in a second preset interval;

the triggering module is used for triggering a function corresponding to the conventional touch screen operation; wherein the conventional touch screen operations include any one or more of: a sliding operation, a clicking operation, and a dragging operation.

Optionally, the result obtaining module includes:

a first obtaining sub-module, configured to obtain an index item matching the input content;

the second obtaining submodule is used for obtaining an index relation between the index item and the index result;

and the third obtaining submodule is used for obtaining an index result corresponding to the matched index item according to the index relation and taking the index result as a search result corresponding to the search operation.

Optionally, the method further includes:

a probability obtaining module for obtaining the use probability of the search result;

and the result processing module is used for screening and/or sequencing the matched search results according to the use probability.

Optionally, the probability obtaining module is specifically configured to obtain the usage probability of the search result according to any one or more of the following information:

the using time of the search result, the using frequency of the search result, the latest using time of the search result, the matching degree of the common using time of the search result and the current time, the attribute information of the search result and the occurrence condition of the search result in the message bar.

Optionally, when responding to a touch screen operation of a user, the pressure value obtaining module is specifically configured to respond to a plurality of touch screen operations meeting a preset condition, where the preset condition includes: and the operation time interval of the adjacent touch screen operation is less than the preset time interval.

Optionally, the method further includes: and the display module is used for displaying the input track corresponding to the track information.

Fig. 3 is a block diagram illustrating an apparatus 300 for searching according to an example embodiment. For example, the apparatus 300 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. 3, the apparatus 300 may include one or more of the following components: processing component 302, memory 304, power component 306, multimedia component 308, audio component 310, input/output (I/O) interface 312, sensor component 314, and communication component 316.

The processing component 302 generally controls overall operation of the device 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 302 may include one or more processors 320 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interaction between the processing component 302 and other components. For example, the processing component 302 can include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.

The memory 304 is configured to store various types of data to support operations at the device 300. Examples of such data include instructions for any application or method operating on device 300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 304 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 supply component 306 provides power to the various components of the device 300. The power components 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 300.

The multimedia component 308 includes a screen that provides an output interface between the device 300 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 308 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 300 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

The audio component 310 is configured to output and/or input audio signals. For example, audio component 310 includes a Microphone (MIC) configured to receive external audio signals when apparatus 300 is in an operating 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 304 or transmitted via the communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.

The I/O interface 312 provides an interface between the processing component 302 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 314 includes one or more sensors for providing various aspects of status assessment for the device 300. For example, sensor assembly 314 may detect an open/closed state of device 300, the relative positioning of components, such as a display and keypad of apparatus 300, the change in position of apparatus 300 or a component of apparatus 300, the presence or absence of user contact with apparatus 300, the orientation or acceleration/deceleration of apparatus 300, and the change in temperature of apparatus 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 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 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component 316 is configured to facilitate wired or wireless communication between the apparatus 300 and other devices. The device 300 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 section 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

In an exemplary embodiment, the apparatus 300 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 304 comprising instructions, executable by the processor 320 of the apparatus 300 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 having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a search method, the method comprising:

responding to a touch screen operation of a user, and obtaining a pressure value corresponding to the touch screen operation;

if the pressure value corresponding to the touch screen operation is located in a first preset interval, determining that the touch screen operation is a search operation;

acquiring track information of the touch screen operation, and identifying input content corresponding to the track information;

and obtaining a search result corresponding to the search operation according to the input content.

Fig. 4 is a schematic structural diagram of a server in an embodiment of the present invention. The server 400 may vary significantly due to configuration or performance, and may include one or more Central Processing Units (CPUs) 422 (e.g., one or more processors) and memory 432, one or more storage media 430 (e.g., one or more mass storage devices) storing applications 442 or data 444. Wherein the memory 432 and storage medium 430 may be transient or persistent storage. The program stored on the storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 422 may be arranged to communicate with the storage medium 430, and execute a series of instruction operations in the storage medium 430 on the server 400.

The server 400 may also include one or more power supplies 426, one or more wired or wireless network interfaces 450, one or more input-output interfaces 458, one or more keyboards 456, and/or one or more operating systems 441, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.

Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims

The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:显示区域调节方法及相关装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类