CN107122366B - Initial search word selecting method and device - Google Patents

Initial search word selecting method and device Download PDF

Info

Publication number
CN107122366B
CN107122366B CN201610104448.7A CN201610104448A CN107122366B CN 107122366 B CN107122366 B CN 107122366B CN 201610104448 A CN201610104448 A CN 201610104448A CN 107122366 B CN107122366 B CN 107122366B
Authority
CN
China
Prior art keywords
search
search word
input box
word
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610104448.7A
Other languages
Chinese (zh)
Other versions
CN107122366A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610104448.7A priority Critical patent/CN107122366B/en
Publication of CN107122366A publication Critical patent/CN107122366A/en
Application granted granted Critical
Publication of CN107122366B publication Critical patent/CN107122366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

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 application discloses an initial search word selecting method and device, and relates to the technical field of networks. The method comprises the following steps: detecting a setting operation for a search input box; determining whether a current search word exists in the search input box; if the search input box has the current search word, determining whether the current search word meets a set condition; if the current search word meets the set condition, taking the current search word as a first initial search word of the search input box; and if the current search word does not meet the set condition, reselecting the first initial search word of the search input box meeting the set condition. The scheme can realize intelligent selection of the first initial search term.

Description

Initial search word selecting method and device
Technical Field
The present application relates to the field of network technologies, and in particular, to a method and an apparatus for selecting an initial search term.
Background
With the rapid development of mobile internet technology, Applications (APPs) applied to mobile terminals are increasing, and many applications are provided with a search function for searching information that the applications can provide, such as articles, information, commodities, place names, movies, restaurants, and the like.
The flow of the search function of the user using the application is as follows. Step 1, a user can input a search word in a search input box of an application displayed by a terminal, the terminal sends the search word input by the user to a server as a first initial search word of the search input box, and the server retrieves a recommended search word associated with the first initial search word and sends the recommended search word to the terminal; step 2, the terminal displays the received recommended search word, after the recommended search word selected by the user is detected, the recommended search word selected by the user is sent to the server as a target search word of the search input box, the server obtains a search result corresponding to the target search word and sends the search result to the terminal, and the terminal displays the search result for the user to browse; and 3, after the user browses the search result, the user may possibly click the search input box, after the terminal detects the click operation aiming at the search input box, the current search word in the search input box is used as a second initial search word of the search input box and sent to the server, and the step 1 and the step 2 are executed again.
In step 3, when the user clicks the search input box again, the current search result may be unsatisfactory, and re-search is required, at this time, the terminal directly sends the current search word of the search input box to the server as the second initial search word of the search input box, because the current search word of the search input box is recommended by the server based on the first initial search word, the length is usually long, at this time, the server is difficult to retrieve the recommended search word associated with the second initial search word, and the user may need to input the search word again, because the length of the current search word is long and the size of the search input box is small, the user needs to perform multiple sliding operations and deletion operations to completely delete the current search word, and the user experience is seriously affected. Therefore, the initial search term cannot be intelligently selected in the related art.
Disclosure of Invention
The embodiment of the application provides an initial search word selecting method and device, which are used for solving the problem that the initial search word cannot be intelligently selected in the related technology.
According to the embodiment of the application, an initial search word selecting method is provided, and is applied to a terminal, and the method comprises the following steps:
detecting a setting operation for a search input box;
determining whether a current search word exists in the search input box;
if the search input box has the current search word, determining whether the current search word meets a set condition;
if the current search word meets the set condition, taking the current search word as a first initial search word of the search input box; and if the current search word does not meet the set condition, reselecting the first initial search word of the search input box meeting the set condition.
Specifically, the setting conditions include a set length and a set number, and determining whether the current search term meets the setting conditions specifically includes:
determining whether the length of the current search word exceeds the set length;
if the length of the current search word exceeds the set length, determining that the current search word does not meet the set condition;
if the length of the current search word does not exceed the set length, performing word segmentation processing on the current search word;
determining whether the number of the participles included in the current search word exceeds the set number;
if the number of the participles included in the current search word does not exceed the set number, determining that the current search word meets the set condition; and if the number of the participles included in the current search word exceeds the set number, determining that the current search word does not meet the set condition.
Specifically, the reselecting the first initial search term of the search input box that meets the set condition specifically includes:
and selecting a historical search word from the historical search words of the search input box to obtain a first initial search word of the search input box, wherein the historical search words of the search input box all meet the set condition.
Specifically, selecting a selected search term from the historical search terms of the search input box specifically includes:
acquiring a historical search word queue of the search input box;
and selecting the latest historical search word from the historical search word queue to obtain the historical search word.
Optionally, the method further includes:
acquiring and displaying at least one recommended search word associated with the first initial search word;
obtaining a first target search word of the search input box after detecting that the user selects one recommended search word from at least one recommended search word associated with the first initial search word;
obtaining and displaying a search result corresponding to the first target search word; and the number of the first and second groups,
judging whether the first initial search word and the first target search word meet the set conditions;
and saving the first initial search word and the first target search word which meet the set condition in the historical search words of the search input box.
Specifically, still include:
if the search input box has no current search word, detecting whether a user inputs the search word in the search input box;
if the user is detected to input the search word in the search input box, obtaining a second initial search word of the search input box;
acquiring and displaying at least one recommended search word associated with the second initial search word;
obtaining a second target search word of the search input box after detecting that the user selects one recommended search word from at least one recommended search word associated with the second initial search word;
obtaining and displaying a search result corresponding to the second target search word; and the number of the first and second groups,
judging whether the second initial search word and the second target search word meet the set conditions;
and storing the second initial search word and the second target search word which meet the set condition in the historical search words of the search input box.
Optionally, the method further includes:
monitoring the storage duration of each historical search word of the search input box;
detecting whether the storage time length of each historical search word of the search input box exceeds a set life cycle;
and deleting the historical search words with the storage duration exceeding the set life cycle from the historical search words of the search input box.
According to an embodiment of the present application, there is also provided an initial search term selection apparatus, applied in a terminal, including:
a first detection unit configured to detect a setting operation for a search input box;
a first determination unit, configured to determine whether there is a current search term in the search input box;
the second determining unit is used for determining whether the current search word meets a set condition or not if the current search word exists in the search input box;
the acquisition unit is used for taking the current search word as a first initial search word of the search input box if the current search word meets the set condition; and if the current search word does not meet the set condition, reselecting the first initial search word of the search input box meeting the set condition.
Specifically, the setting conditions include a setting length and a setting number, and the second determining unit is configured to determine whether the current search term satisfies the setting conditions, and specifically configured to:
determining whether the length of the current search word exceeds the set length;
if the length of the current search word exceeds the set length, determining that the current search word does not meet the set condition;
if the length of the current search word does not exceed the set length, performing word segmentation processing on the current search word;
determining whether the number of the participles included in the current search word exceeds the set number;
if the number of the participles included in the current search word does not exceed the set number, determining that the current search word meets the set condition; and if the number of the participles included in the current search word exceeds the set number, determining that the current search word does not meet the set condition.
Specifically, the obtaining unit is configured to reselect a first initial search term of the search input box, and specifically, is configured to:
and selecting a historical search word from the historical search words of the search input box to obtain a first initial search word of the search input box, wherein the historical search words of the search input box all meet the set condition.
Specifically, the obtaining unit is configured to select a selected search term from the historical search terms in the search input box, and specifically, is configured to:
acquiring a historical search word queue of the search input box;
and selecting the latest historical search word from the historical search word queue to obtain the historical search word.
Optionally, the obtaining unit is further configured to:
acquiring and displaying at least one recommended search word associated with the first initial search word;
obtaining a first target search word of the search input box after detecting that the user selects one recommended search word from at least one recommended search word associated with the first initial search word;
obtaining and displaying a search result corresponding to the first target search word; and the number of the first and second groups,
judging whether the first initial search word and the first target search word meet the set conditions;
and saving the first initial search word and the first target search word which meet the set condition in the historical search words of the search input box.
Optionally, the apparatus further includes a second detecting unit, configured to:
if the search input box has no current search word, detecting whether a user inputs the search word in the search input box;
if the user is detected to input the search word in the search input box, obtaining a second initial search word of the search input box;
acquiring and displaying at least one recommended search word associated with the second initial search word;
obtaining a second target search word of the search input box after detecting that the user selects one recommended search word from at least one recommended search word associated with the second initial search word;
obtaining and displaying a search result corresponding to the second target search word; and the number of the first and second groups,
judging whether the second initial search word and the second target search word meet the set conditions;
and storing the second initial search word and the second target search word which meet the set condition in the historical search words of the search input box.
Optionally, the apparatus further includes a deleting unit, configured to:
monitoring the storage duration of each historical search word of the search input box;
detecting whether the storage time length of each historical search word of the search input box exceeds a set life cycle;
and deleting the historical search words with the storage duration exceeding the set life cycle from the historical search words of the search input box.
The embodiment of the application provides an initial search word selecting method and device, which are used for detecting the setting operation aiming at a search input box; determining whether a current search word exists in the search input box; if the search input box has the current search word, determining whether the current search word meets a set condition; if the current search word meets the set condition, taking the current search word as a first initial search word of the search input box; and if the current search word does not meet the set condition, reselecting the first initial search word of the search input box meeting the set condition. According to the scheme, when the current search word is detected to exist in the search input box, the current search word is not simply used as the first initial search word of the search input box, whether the current search word meets the set condition or not is judged, the current search word meeting the set condition is directly used as the first initial search word, and the first initial search word meeting the set condition is reselected for the current search word not meeting the set condition, so that the first initial search word is intelligently selected, the server can be ensured to successfully recommend the recommended search related to the first initial search word, the user is prevented from inputting the search word again, the operation steps of the user are saved, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of an initial search word selecting method in an embodiment of the present application;
FIG. 2 is a flowchart of S13 in the embodiment of the present application;
FIG. 3 is a flowchart of another initial search term selection method in an embodiment of the present application;
FIG. 4 is a flowchart of another initial search term selection method in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an initial search term selecting apparatus in an embodiment of the present application;
FIG. 6 is a schematic structural diagram of another initial search term selection apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another initial search term selection apparatus in the embodiment of the present application.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present application clearer and clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In order to solve the problem that the initial search term cannot be intelligently selected in the related art, an embodiment of the present application provides an initial search term selection method, which may be but is not limited to be applied in a terminal, and a flow of the method is shown in fig. 1, and includes the following steps:
s11: a setting operation for the search input box is detected.
When a user uses the search function of an application, if the user needs to input a search word in a search input box of the application for the first time or search again when the current search result is not satisfactory, setting operation may be executed on the search input box, and the terminal may detect the setting operation on the search input box.
The setting operation may be a click operation, a direction key selection operation, an operation gesture, and the like.
S12: it is determined whether there is a current search term in the search input box.
In order to distinguish whether the user inputs a search word in the search input box for the first time or searches again with dissatisfaction with the current search result, it may be determined whether the current search word exists in the search input box.
S13: if the search input box has the current search word, determining whether the current search word meets the set condition, and if the current search word meets the set condition, executing S14; if the current search term does not satisfy the set condition, S15 is performed.
If the search input box has the current search word, that is, the user has already searched before, it may be that the search result is unsatisfactory and needs to search again so as to perform the setting operation on the search input box, at this time, it may be further determined whether the current search word satisfies the setting condition. The setting conditions can be set according to actual needs.
S14: and taking the current search word as the first initial search word of the search input box.
S15: and reselecting the first initial search word of the search input box meeting the set condition.
There are many ways to implement this step, for example: selecting a historical search word from the historical search words of the search input box to obtain a first initial search word of the search input box, wherein the historical search words of the search input box all meet set conditions. There are many ways to store the historical search terms in the search input box, for example, the historical search terms may be stored in a queue, a list, etc., and the storage in a queue is described as an example. When the historical search terms in the search input box are stored in the form of a historical search term queue, then, one historical search term is selected from the historical search terms in the search input box, specifically, the historical search term queue of the search input box can be obtained firstly, and since the latest historical search term in the historical search term queue is probably searched by the user recently, because the user is dissatisfied with the current search result, the initially provided historical search term is probably adopted, the latest historical search term can be selected from the historical search term queue to obtain one historical search term.
According to the scheme, when the current search word is detected to exist in the search input box, the current search word is not simply used as the first initial search word of the search input box, whether the current search word meets the set condition or not is judged, the current search word meeting the set condition is directly used as the first initial search word, and the first initial search word meeting the set condition is reselected for the current search word not meeting the set condition, so that the first initial search word is intelligently selected, the server can be ensured to successfully recommend the recommended search related to the first initial search word, the user is prevented from inputting the search word again, the operation steps of the user are saved, and the user experience is improved.
Specifically, the setting conditions may be set according to actual needs in various ways, and the following description takes the setting conditions including the setting length and the setting number as an example, at this time, the implementation process of determining whether the current search term satisfies the setting conditions in S13, as shown in fig. 2, specifically includes the following steps:
s131: determining whether the length of the current search word exceeds a set length, and if the length of the current search word exceeds the set length, executing S135; if the length of the current search term does not exceed the set length, S132 is executed.
Whether the length of the current search word exceeds the set length or not can be determined, and for the current search word exceeding the set length, the server is difficult to retrieve the recommended search word again, so that the condition that the recommended search word does not meet the set condition can be directly determined; for the current search word which does not exceed the set length, the subsequent steps can be continued.
S132: and performing word segmentation processing on the current search word.
When the word segmentation processing is performed on the current search word, the processing can be performed in the existing mode, specifically, the processing can be performed according to the modes of Chinese, English and the like.
S133: determining whether the number of the participles included in the current search word exceeds a set number, and if the number of the participles included in the current search word does not exceed the set number, executing S134; if the number of the participles included in the current search word exceeds the set number, S135 is performed.
S134: and determining that the current search word meets the set condition.
S135: and determining that the current search word does not meet the set condition.
If the number of the participles included in the current search word does not exceed the set number, the server can retrieve the recommended search word based on the current search word, and at this time, the current search word can be considered to meet the set conditions; if the number of the participles included in the current search word exceeds the set number, the server is difficult to retrieve the recommended search word based on the current search word, and at this time, the current search word can be considered not to meet the set condition.
In the step, whether the current search word meets the set conditions or not can be determined at the terminal, or the current search word can be sent to the server by the terminal and determined by the server. If the server determines, the specific process is as follows: the terminal can send a request carrying the current search word to the server, and the server determines whether the current search word meets the set conditions or not and then feeds back the determined result to the terminal. Whether determined by the terminal or the server, may be implemented through S131-S135.
The set length and the set number can be set according to actual needs, for example, the set length can be set to 10, 20, 25, 30, etc., and the set number can be set to 2, 3, 4, 5, etc.
The embodiment of the present application further provides another initial search word selecting method, a flow of the method is shown in fig. 3, and the method shown in fig. 1 further includes:
s16: and acquiring and displaying at least one recommended search word associated with the first initial search word.
After determining the first initial search term, the terminal may perform a subsequent search process based on the first initial search term. The method comprises the steps that at least one recommended search word associated with a first initial search word needs to be obtained, specifically, a request can be sent to a server by a terminal, the server carries out retrieval based on the first initial search word and feeds the retrieved recommended search word back to the terminal, and the terminal can display the received recommended search word so that a user can conveniently select the recommended search word.
For example, the first initial search word may be "dress," and the obtained at least one recommended search word may be "dress," korean dress, "" summer dress, "" winter dress, or "summer dress sleeveless dress," or the like.
S17: and obtaining a first target search word of the search input box after detecting that a user selects one recommended search word from at least one recommended search word associated with the first initial search word.
If the user is interested in a certain recommended search word, the user can click the recommended search word, and the recommended search word is used as a first target search word of the search input box.
Continuing with the above example, if the user clicks the recommendation word "korean style one-piece dress", the recommendation word is the first target search word
S18: and acquiring and displaying a search result corresponding to the first target search term.
The terminal can obtain a search result corresponding to the first target search word, specifically, the terminal can send a request to the server, the server searches based on the first target search word and feeds the search result back to the terminal, and the terminal can display the received search result so as to facilitate browsing of a user.
S19: and judging whether the first initial search word and the first target search word meet set conditions.
S20: and saving the first initial search word and the first target search word which meet the set conditions in the historical search words of the search input box.
In order to enrich the historical search terms in the search input box, the first initial search term and the first target search term which meet the set conditions can be stored in the historical search terms in the search input box. The judgment process can refer to S131 to S135, which is not described herein.
S18 and S19 are not in strict sequential order, and S18 may be executed first and S19 may be executed second, S19 may be executed first and S18 may be executed first, or S18 and S19 may be executed simultaneously.
The embodiment of the present application further provides another initial search word selecting method, a flow of the method is shown in fig. 4, and on the basis of the method shown in fig. 1, the method further includes:
s21: if the search input box has no current search word, detecting whether the user inputs the search word in the search input box, and if the user inputs the search word in the search input box, executing S22; if it is detected that the user does not input the search word in the search input box, S21 is performed.
If there is no current search word in the search input box, that is, the user has not previously input a search word in the search input box of the application, it is necessary to detect whether the user has input a search word in the search input box.
S22: and obtaining a second initial search word of the search input box.
And if the user is detected to input the search word in the search input box, obtaining a second initial search word.
S23: and acquiring and displaying at least one recommended search word associated with the second initial search word.
The process of obtaining at least one recommended search term associated with the second initial search term is referred to as S16, and will not be described herein.
S24: and obtaining a second target search word of the search input box after detecting that the user selects one recommended search word from the at least one recommended search word associated with the second initial search word.
If the user is interested in a certain recommended search word, the user can click the recommended search word, and the recommended search word is used as a second target search word of the search input box.
S25: and acquiring a search result corresponding to the second target search word.
The process of obtaining the search result corresponding to the second target search term is referred to as S18, and is not described herein.
S26: and judging whether the second initial search word and the second target search word meet set conditions.
S27: and storing the second initial search word and the second target search word which meet the set conditions in the historical search words of the search input box.
In order to enrich the historical search terms in the search input box, the second initial search term and the second target search term which meet the set conditions can be stored in the historical search terms in the search input box. The judgment process can refer to S131 to S135, which is not described herein.
S25 and S26 are not in strict sequential order, and S25 may be executed first and S26 may be executed second, S26 may be executed first and S25 may be executed first, or S25 and S26 may be executed simultaneously.
Since the storage space in the terminal is limited and the possibility that the history search word in the search input box for a long time is used again is very low, the history search word in the search input box can be further managed as follows: monitoring the storage time length of each historical search word of the search input box, detecting whether the storage time length of each historical search word of the search input box exceeds a set life cycle, and deleting the historical search words of which the storage time length exceeds the set life cycle from the historical search words of the search input box. The number of the historical search terms of the search input box can be managed by deleting the historical search terms with the storage time length exceeding the set life cycle, so that the optimal historical search terms of the search input box are ensured, and the storage space of the terminal is saved. The set life cycle may be set according to actual needs, and may be set to 10 hours, 15 hours, 24 hours, 30 hours, and the like, for example.
Based on the same inventive concept, the present application further provides an initial search word selecting apparatus, which may be but is not limited to be applied in a terminal, and the apparatus has a structure as shown in fig. 5, and includes a first detecting unit 51, a first determining unit 52, a second determining unit 53, and an obtaining unit 54, where:
the first detection unit 51 described above, configured to detect a setting operation for the search input box;
the first determining unit 52 is configured to determine whether there is a current search term in the search input box;
the second determining unit 53 is configured to determine whether the current search word satisfies a set condition if the current search word exists in the search input box;
the obtaining unit 54 is configured to, if the current search term meets the set condition, use the current search term as a first initial search term of the search input box; and if the current search word does not meet the set condition, reselecting the first initial search word of the search input box meeting the set condition.
According to the scheme, when the current search word is detected to exist in the search input box, the current search word is not simply used as the first initial search word of the search input box, whether the current search word meets the set condition or not is judged, the current search word meeting the set condition is directly used as the first initial search word, and the first initial search word meeting the set condition is reselected for the current search word not meeting the set condition, so that the first initial search word is intelligently selected, the server can be ensured to successfully recommend the recommended search related to the first initial search word, the user is prevented from inputting the search word again, the operation steps of the user are saved, and the user experience is improved.
Specifically, the setting conditions include a setting length and a setting number, and the second determining unit 53 is configured to determine whether the current search word of the search input box satisfies the setting conditions, and specifically, to:
determining whether the length of the current search word exceeds a set length;
if the length of the current search word exceeds the set length, determining that the current search word does not meet the set condition;
if the length of the current search word does not exceed the set length, performing word segmentation processing on the current search word;
determining whether the number of the participles included in the current search word exceeds a set number;
if the number of the participles included in the current search word does not exceed the set number, determining that the current search word meets the set conditions; and if the number of the participles included in the current search word exceeds the set number, determining that the current search word does not meet the set condition.
Specifically, the obtaining unit 54 is configured to reselect the first initial search term of the search input box that meets the set condition, and specifically configured to:
selecting a historical search word from the historical search words of the search input box to obtain a first initial search word of the search input box, wherein the historical search words of the search input box all meet set conditions.
Specifically, the obtaining unit 54 is configured to select a selected search term from the historical search terms in the search input box, and specifically configured to:
acquiring a historical search word queue of a search input box;
and selecting the latest historical search word from the historical search word queue to obtain a historical search word.
Optionally, the obtaining unit 54 is further configured to:
acquiring and displaying at least one recommended search word associated with the first initial search word;
obtaining a first target search word of a search input box after detecting that a user selects one recommended search word from at least one recommended search word associated with the first initial search word;
obtaining and displaying a search result corresponding to the first target search word; and the number of the first and second groups,
judging whether the first initial search word and the first target search word meet set conditions or not;
and saving the first initial search word and the first target search word which meet the set conditions in the historical search words of the search input box.
The embodiment of the present application further provides another initial search word selecting apparatus, where the same elements as those in the apparatus shown in fig. 5 are omitted, and the apparatus is configured as shown in fig. 6, and further includes a second detecting unit 55, configured to:
if the search input box has no current search word, detecting whether the user inputs the search word in the search input box;
if the user is detected to input the search word in the search input box, obtaining a second initial search word of the search input box;
acquiring and displaying at least one recommended search word associated with the second initial search word;
after detecting that a recommended search word is selected by the user from at least one recommended search word associated with the second initial search word, obtaining a second target search word of the search input box;
obtaining and displaying a search result corresponding to the second target search word; and the number of the first and second groups,
judging whether the second initial search word and the second target search word meet set conditions or not;
and storing the second initial search word and the second target search word which meet the set conditions in the historical search words of the search input box.
The embodiment of the present application further provides another initial search word selecting apparatus, where the same elements as those in the apparatus shown in fig. 5 are omitted, the apparatus is configured as shown in fig. 7, and further includes a deleting unit 56, configured to:
monitoring the storage time length of each historical search word of the search input box;
detecting whether the storage time length of each historical search word of the search input box exceeds a set life cycle;
and deleting the historical search words with the storage time length exceeding the set life cycle from the historical search words in the search input box.
The foregoing description shows and describes the preferred embodiments of the present application, but as aforementioned, it is to be understood that the application is not limited to the forms disclosed herein, but is not to be construed as excluding other embodiments and is capable of use in various other combinations, modifications, and environments and is capable of changes within the scope of the inventive concept as expressed herein, commensurate with the above teachings, or the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the application, which is to be protected by the claims appended hereto.

Claims (12)

1. An initial search word selecting method applied to a terminal is characterized by comprising the following steps:
detecting a setting operation for a search input box;
determining whether a current search word exists in the search input box;
if the search input box has the current search word, determining whether the current search word meets a set condition;
if the current search word meets the set condition, taking the current search word as a first initial search word of the search input box; if the current search word does not meet the set condition, reselecting the first initial search word of the search input box meeting the set condition;
acquiring and displaying at least one recommended search word associated with the first initial search word;
obtaining a first target search word of the search input box after detecting that a user selects one recommended search word from at least one recommended search word associated with the first initial search word;
obtaining and displaying a search result corresponding to the first target search word; and the number of the first and second groups,
judging whether the first initial search word and the first target search word meet the set conditions;
and saving the first initial search word and the first target search word which meet the set condition in the historical search words of the search input box.
2. The method according to claim 1, wherein the setting condition includes a setting length and a setting number, and determining whether the current search term satisfies the setting condition specifically includes:
determining whether the length of the current search word exceeds the set length;
if the length of the current search word exceeds the set length, determining that the current search word does not meet the set condition;
if the length of the current search word does not exceed the set length, performing word segmentation processing on the current search word;
determining whether the number of the participles included in the current search word exceeds the set number;
if the number of the participles included in the current search word does not exceed the set number, determining that the current search word meets the set condition; and if the number of the participles included in the current search word exceeds the set number, determining that the current search word does not meet the set condition.
3. The method of claim 1, wherein reselecting the first initial search term of the search input box that satisfies the set condition comprises:
and selecting a historical search word from the historical search words of the search input box to obtain a first initial search word of the search input box, wherein the historical search words of the search input box all meet the set condition.
4. The method of claim 3, wherein selecting a selected search term from the historical search terms of the search input box comprises:
acquiring a historical search word queue of the search input box;
and selecting the latest historical search word from the historical search word queue to obtain the historical search word.
5. The method of any of claims 1-4, further comprising:
if the search input box has no current search word, detecting whether a user inputs the search word in the search input box;
if the user is detected to input the search word in the search input box, obtaining a second initial search word of the search input box;
acquiring and displaying at least one recommended search word associated with the second initial search word;
obtaining a second target search word of the search input box after detecting that the user selects one recommended search word from at least one recommended search word associated with the second initial search word;
obtaining and displaying a search result corresponding to the second target search word; and the number of the first and second groups,
judging whether the second initial search word and the second target search word meet the set conditions;
and storing the second initial search word and the second target search word which meet the set condition in the historical search words of the search input box.
6. The method of any of claims 1-4, further comprising:
monitoring the storage duration of each historical search word of the search input box;
detecting whether the storage time length of each historical search word of the search input box exceeds a set life cycle;
and deleting the historical search words with the storage duration exceeding the set life cycle from the historical search words of the search input box.
7. An initial search term selection device applied to a terminal is characterized by comprising:
a first detection unit configured to detect a setting operation for a search input box;
a first determination unit, configured to determine whether there is a current search term in the search input box;
the second determining unit is used for determining whether the current search word meets a set condition or not if the current search word exists in the search input box;
the acquisition unit is used for taking the current search word as a first initial search word of the search input box if the current search word meets the set condition; if the current search word does not meet the set condition, reselecting the first initial search word of the search input box meeting the set condition;
acquiring and displaying at least one recommended search word associated with the first initial search word;
obtaining a first target search word of the search input box after detecting that a user selects one recommended search word from at least one recommended search word associated with the first initial search word;
obtaining and displaying a search result corresponding to the first target search word; and the number of the first and second groups,
judging whether the first initial search word and the first target search word meet the set conditions;
and saving the first initial search word and the first target search word which meet the set condition in the historical search words of the search input box.
8. The apparatus according to claim 7, wherein the setting condition includes a setting length and a setting number, and the second determining unit is configured to determine whether the current search term satisfies the setting condition, and is specifically configured to:
determining whether the length of the current search word exceeds the set length;
if the length of the current search word exceeds the set length, determining that the current search word does not meet the set condition;
if the length of the current search word does not exceed the set length, performing word segmentation processing on the current search word;
determining whether the number of the participles included in the current search word exceeds the set number;
if the number of the participles included in the current search word does not exceed the set number, determining that the current search word meets the set condition; and if the number of the participles included in the current search word exceeds the set number, determining that the current search word does not meet the set condition.
9. The apparatus according to claim 7, wherein the obtaining unit is configured to reselect the first initial search term of the search input box that satisfies the setting condition, and is specifically configured to:
and selecting a historical search word from the historical search words of the search input box to obtain a first initial search word of the search input box, wherein the historical search words of the search input box all meet the set condition.
10. The apparatus of claim 9, wherein the obtaining unit is configured to select a selected search term from the historical search terms in the search input box, and is specifically configured to:
acquiring a historical search word queue of the search input box;
and selecting the latest historical search word from the historical search word queue to obtain the historical search word.
11. The apparatus of any of claims 7-10, further comprising a second detection unit to:
if the search input box has no current search word, detecting whether a user inputs the search word in the search input box;
if the user is detected to input the search word in the search input box, obtaining a second initial search word of the search input box;
acquiring and displaying at least one recommended search word associated with the second initial search word;
obtaining a second target search word of the search input box after detecting that the user selects one recommended search word from at least one recommended search word associated with the second initial search word;
obtaining and displaying a search result corresponding to the second target search word; and the number of the first and second groups,
judging whether the second initial search word and the second target search word meet the set conditions;
and storing the second initial search word and the second target search word which meet the set condition in the historical search words of the search input box.
12. The apparatus according to any one of claims 7-10, further comprising a deletion unit for:
monitoring the storage duration of each historical search word of the search input box;
detecting whether the storage time length of each historical search word of the search input box exceeds a set life cycle;
and deleting the historical search words with the storage duration exceeding the set life cycle from the historical search words of the search input box.
CN201610104448.7A 2016-02-25 2016-02-25 Initial search word selecting method and device Active CN107122366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610104448.7A CN107122366B (en) 2016-02-25 2016-02-25 Initial search word selecting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610104448.7A CN107122366B (en) 2016-02-25 2016-02-25 Initial search word selecting method and device

Publications (2)

Publication Number Publication Date
CN107122366A CN107122366A (en) 2017-09-01
CN107122366B true CN107122366B (en) 2020-12-08

Family

ID=59717000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610104448.7A Active CN107122366B (en) 2016-02-25 2016-02-25 Initial search word selecting method and device

Country Status (1)

Country Link
CN (1) CN107122366B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8874541B1 (en) * 2012-01-31 2014-10-28 Intuit Inc. Social search engine optimizer enhancer for online information resources

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060080292A1 (en) * 2004-10-08 2006-04-13 Alanzi Faisal Saud M Enhanced interface utility for web-based searching
CN102184224A (en) * 2011-05-09 2011-09-14 李郁文 System and method for screening search results
CN103064853B (en) * 2011-10-20 2017-02-08 北京百度网讯科技有限公司 Search suggestion generation method, device and system
CN104537122A (en) * 2015-01-26 2015-04-22 北京奇艺世纪科技有限公司 Keyword determination method and keyword determination device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8874541B1 (en) * 2012-01-31 2014-10-28 Intuit Inc. Social search engine optimizer enhancer for online information resources

Also Published As

Publication number Publication date
CN107122366A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
CN107660284B (en) Search improvement based on machine learning
CN109426428B (en) Method for providing operation guidance information of terminal and terminal equipment
AU2011261662B2 (en) Providing content items selected based on context
US11543942B1 (en) Providing trending information to users
US20180260081A1 (en) Task switching or task launching based on a ranked list of tasks
CN108306956B (en) Information pushing method and device, server and computer readable medium
US20170041257A1 (en) Information Processing Method, Apparatus and System Based on Instant Messaging
US20160306804A1 (en) Discovery of news-related content
US10565262B2 (en) Methods for refining search results in an application
US20190057072A1 (en) Method, device and electronic equipment for switching name of desktop icon folder
US20170316112A1 (en) Intelligent searching method and system based on mobile device
CN110633438B (en) News event processing method, terminal, server and storage medium
KR20130059738A (en) System and method for recommending application using contents analysis
CN103995601A (en) Method and device for achieving input method
WO2014056361A1 (en) A method and a device for prompting webpage address
US9075866B2 (en) System and method for providing search keyword list
CN112306256B (en) Application program switching processing method and device and electronic equipment
CN106033433B (en) Information searching method and device
CN106844572B (en) Search result processing method and device for search result processing
CN106446186A (en) Associative word searching method and device and terminal
US20190164193A1 (en) Predictive search context system for targeted recommendations
CN107122366B (en) Initial search word selecting method and device
CN105096162A (en) Content item display method and apparatus
JP2020074215A (en) Retrieval device, method, and program
US20190163832A1 (en) Predictive search context system for location intercept

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