A search method and related apparatus
By setting search filtering tools and target filter values, search results are determined based on user preferences, solving the problem of users finding it difficult to find suitable results in search engines and improving search efficiency and experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2022-01-29
- Publication Date
- 2026-05-26
AI Technical Summary
When users search for solutions to problems on search engines, they face multiple approaches but struggle to find suitable results, leading to low search efficiency and a poor user experience. They need to constantly adjust their search terms to obtain the information they need.
The search filtering tool provides filters that match the search terms, and allows users to set target filter values to determine target search results based on their search preferences, thus narrowing the search scope and providing accurate results.
It greatly reduces the workload for users to judge search results, improves search efficiency and experience, provides more accurate search results, and saves time.
Smart Images

Figure CN116561261B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, and in particular to a search method and related apparatus. Background Technology
[0002] With the continuous development of internet technology and search engine technology, users can use search platforms to query information, such as the pronunciation and meaning of a word, a brief introduction of a person, methods or suggestions for a problem, and so on.
[0003] When users search for solutions or suggestions for problems on search engines, these problems often have more than one way to solve them. There are many methods, but they may not be suitable for the user. When browsing the results, users often need to judge for themselves whether various methods are useful to them, and may even need to constantly adjust their search terms and search again in order to get the search results they want.
[0004] This process increases the burden on users when browsing search results, wastes a lot of time, has low search efficiency, and also affects the search experience. Summary of the Invention
[0005] To address the aforementioned technical problems, this application provides a search method and related apparatus. By supplementing search terms with filter items provided in the search filtering tool and the final determined target filter item values, the search is performed according to the user's search preferences, greatly narrowing the search scope. This significantly reduces the user's workload in judging search results, providing more accurate search results, greatly reducing time consumption, and improving search efficiency and search experience.
[0006] The embodiments of this application disclose the following technical solutions:
[0007] On one hand, embodiments of this application provide a search method, the method comprising:
[0008] Based on the obtained search terms, a search filtering tool is displayed, which provides filter options that match the search terms and reflect search preferences;
[0009] Set the target filter value for the filter item;
[0010] The target search results are provided based on the search terms and the target filter values.
[0011] On one hand, embodiments of this application provide a search device, the device including a display unit, a setting unit, and a providing unit:
[0012] The display unit is used to display a search filtering tool based on the acquired search terms, wherein the search filtering tool provides filter items that match the search terms and reflect search preferences;
[0013] The setting unit is used to set the target filter value of the filter item;
[0014] The providing unit is used to provide target search results based on the search term and the target filter item value.
[0015] On one hand, embodiments of this application provide an electronic device for searching, the electronic device including a processor and a memory:
[0016] The memory is used to store program code and transmit the program code to the processor;
[0017] The processor is configured to execute the search method described above according to instructions in the program code.
[0018] In one aspect, embodiments of this application provide a computer-readable storage medium for storing program code for executing the search method described above.
[0019] On one hand, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the search method described in the foregoing aspects.
[0020] As can be seen from the above technical solution, based on the acquired search terms, a search filtering tool is displayed. This tool provides filter options that match the search terms, reflecting the user's search preferences. Then, a target filter value is set to determine the final user's search preference level. This allows for the determination of target search results that match the user's search preferences based on both the search terms and the target filter value, and the resulting search results are then provided to the user. This solution supplements the search terms with the filter options provided in the search filtering tool and the final determined target filter value, thereby searching according to the user's search preferences. This significantly narrows the search scope, greatly reducing the user's workload in judging search results and providing more accurate results. It significantly reduces time consumption and improves search efficiency and user experience. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 A schematic diagram illustrating the search process of a search method provided for related technologies;
[0023] Figure 2 An architecture diagram illustrating an application scenario of a search method provided in this application embodiment;
[0024] Figure 3 A flowchart illustrating a search method provided in an embodiment of this application;
[0025] Figure 4 A schematic diagram of a search results page provided for an embodiment of this application;
[0026] Figure 5 A schematic diagram of an interface providing a search and filtering tool, provided for an embodiment of this application;
[0027] Figure 6 This application provides a schematic diagram of the interface after selecting a target for search.
[0028] Figure 7 A schematic diagram of an interface for displaying a reminder pop-up provided in an embodiment of this application;
[0029] Figure 8 A flowchart illustrating a search method based on front-end presentation and back-end technology provided in this application embodiment;
[0030] Figure 9 A flowchart illustrating another search method provided in an embodiment of this application;
[0031] Figure 10 A structural diagram of a search method apparatus provided in an embodiment of this application;
[0032] Figure 11 A structural diagram of a terminal provided in an embodiment of this application;
[0033] Figure 12 This is a structural diagram of a server provided in an embodiment of this application. Detailed Implementation
[0034] The embodiments of this application will now be described with reference to the accompanying drawings.
[0035] When users search through search engines, they are returned a large number of search results, but these results may not be suitable for them. Users often need to judge whether various methods are useful to them when browsing the results, and may even need to constantly adjust their search terms and search again in order to get the search results they want.
[0036] like Figure 1 As shown, users searched for "how to lose weight" based on their own circumstances (e.g., ...). Figure 1 As shown in Figure 101), after browsing the search results and seeing the knowledge points that interested me, I reset the search term "the fastest way to lose weight" and was redirected to the search for "the fastest way to lose weight" (as shown in Figure 101). Figure 1 As shown in Figure 102), by understanding the importance of health through the search results, the user reset the search term "healthy weight loss" and searched again (e.g.). Figure 1 (As shown in Figure 103). In this search process, users need to distinguish each search result, and may even need to constantly adjust their search terms and search again, wasting a lot of time, resulting in low search efficiency and affecting the search experience. At the same time, it is difficult to intuitively understand key factors in weight loss such as "health," making it easy to blindly follow trends and choose inappropriate weight loss methods. This is because search engines cannot dig out the intent or search preferences behind search behavior; they can only provide simple matching based on search terms (query) and display a generic search results page.
[0037] To address the aforementioned technical problems, this application provides a search method. This method supplements search terms with filter items provided in a search filtering tool and the final determined target filter item values, thereby conducting a search according to the user's search preferences, greatly narrowing the search scope, and providing users with more accurate search results while significantly reducing the user's workload in judging search results. This greatly reduces time consumption and improves search efficiency and search experience.
[0038] It should be noted that the method provided in this application embodiment can be applied to various search scenarios based on search engines, such as various browsers. When searching through a browser's search engine, the method provided in this application embodiment can be used to determine the user's search preferences, and then provide the user with accurate search results based on those preferences.
[0039] like Figure 2 As shown, Figure 2 This diagram illustrates the architecture of an application scenario for a search method. The scenario may include a terminal 201 and a server 202. The terminal 201 may have a browser installed, and can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, in-vehicle terminal, smart TV, etc., but is not limited to these. Figure 2 In this application, the example of terminal 201 being a smartphone is used only and does not constitute a limitation on the present application. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Terminal 201 and server 202 can be directly or indirectly connected through wired or wireless communication, which is not limited herein.
[0040] Terminal 201 can obtain search terms, for example, the user can enter them in the search input box of the browser on terminal 201 (e.g. Figure 2 Enter a search term in the terminal (as shown in Figure 2011), where the search term could be "how to lose weight". After obtaining the search term, the terminal 201 can display a search filtering tool based on the search term (see Figure 2011). Figure 2 (As shown in 2012). The Search Filter Tool 2012 provides filters that match the search term "how to lose weight". These filters reflect the user's search preferences and are used to further refine the search terms, such as exercise intensity and diet control (see...). Figure 2 (As shown in 2013).
[0041] Then, terminal 201 sets the target filter value of the filter item, thereby obtaining the degree of preference of the end user's search preference, so as to determine the target search result that matches the user's search preference based on the search term and the target filter value, and provide the target search result to the user.
[0042] In some possible implementations, the filter items have corresponding initial filter item values (see...). Figure 2 As shown in Figure 2014, the initial filter values are determined based on historical search data, thereby quantitatively reflecting the degree of preference for search, that is, reflecting the user's preference for weight loss through diet control and weight loss through exercise. In this case, the target filter value can be set based on the initial filter value. It should be noted that the method provided in this application embodiment can be executed by the terminal; however, some background processing involved in this application embodiment can be executed by the server. For example, the determination of filter items and initial filter values, and the determination of target search results based on search terms and target filter values can be executed by the server. This application embodiment does not limit this.
[0043] Next, the search method provided in the embodiments of this application will be described in detail with reference to the accompanying drawings.
[0044] See Figure 3 , Figure 3 A flowchart of a search method is shown, the method comprising:
[0045] S301. Based on the acquired search terms, display a search filtering tool, which provides filter options that match the search terms and reflect search preferences.
[0046] In one possible implementation, the user can enter a search term in the browser's search box on the terminal, where the search term could be "how to lose weight." The terminal can retrieve the search term by entering it in the search box. After retrieving the search term, the terminal can display search filtering tools based on it.
[0047] In this application embodiment, the timing of displaying the search filtering tool can include several methods. The first is to display it directly after the search term is entered, thereby obtaining the final target search result based on the filter items and search term in one go. The second is to first display all search results based on the search term, and then filter the search results to obtain the final target search result.
[0048] In the second scenario, based on the search terms entered in the search input box, the search filter tool can be displayed as follows: The terminal responds to the search term input in the search input box by entering a search results page, which displays multiple search results. The search filter tool is then displayed on the search results page. It should be noted that after displaying the search results page, there can be a first preset time delay, such as a 1-second delay, before displaying the search filter tool. The search filter tool can appear anywhere on the search results page, in any form, such as automatically sliding out from the top of the search results page.
[0049] For example, when a user enters a search term such as "how to lose weight" in the search input box, the search results page can be displayed. See [link to search results page]. Figure 4 As shown, this provides users with all search results for the search term "how to lose weight". Multiple search results on the search results page can be found in [the relevant section]. Figure 4 As shown in the dashed box. Since some search results may not be suitable for the user, to avoid the user having to evaluate each result individually, a search filter tool will slide out from the top of the search results page after a 1-second delay. See [link / reference]. Figure 5 As shown in the dashed box.
[0050] The search filtering tool provides filters that reflect the user's search preferences for this search, such as... Figure 5 The search terms include exercise intensity and dietary control. In one possible scenario, the filters have corresponding initial filter values, which can be determined based on historical search data, thus quantitatively reflecting the degree of preference in the search.
[0051] In this embodiment, the magnitude of the filter item value can be displayed in various forms, such as numbers, sliders, etc. To clearly and intuitively represent the magnitude of the filter item value, in one possible implementation, the search filtering tool also provides a slider for the filter item, where the position of the slider represents the magnitude of the filter item value. In this case, the initial filter item value is represented by the initial position of the slider on the slider. See also... Figure 5 As shown, the slider can be found in [reference needed]. Figure 5 As shown by the lines to the right of the filter options, the slider on the slider bar is as follows: Figure 5 As shown by the circle on the middle line, the slider position at this time can indicate that the exercise intensity is 65, which means the user prefers a higher exercise intensity; and the diet control is 85, which means the user prefers a very strict diet control.
[0052] In one possible implementation, the search filtering tool can be displayed by determining search preferences matching the second keyword in the search terms and using a preset correspondence as filter items. The preset correspondence is the relationship between the second keyword and the search preference. Initial filter item values are determined based on pre-recorded preference scores of the search preferences, which are determined using historical search data. The preset correspondence is also pre-labeled based on historical search data. The search filtering tool is then displayed based on the determined filter items and the initial filter item values.
[0053] For example, if the search term "braised pork" is determined based on historical search data, it will simultaneously match the search preferences of "diet control" and "meat preference". During the annotation process, the preference scores of all search preferences corresponding to the search term are usually noted. For example, the preference score for "diet control" corresponding to braised pork is 25, indicating intolerance to diet control; but the preference score for "meat preference" is 80, indicating a strong liking for meat.
[0054] It's important to note that when a search term contains both a negative word and a secondary keyword, such as "the disadvantages of braised pork," where "braised pork" is the keyword and "disadvantages" is the negative word, a "difference calculation" is needed to determine the matched search preference. This involves subtracting the preset preference value from the total preference score to obtain the preference score. For example, the meat preference score for "the disadvantages of braised pork" would be: a total preference score of 100 minus "meat preference" of 80, resulting in a final preference score of 20.
[0055] The preference scores of all search preferences are recorded in the corresponding preference score database. When a user searches, the search preferences that match the second keyword in the user's search terms and the preset correspondence can be used as filter items. The previously recorded preference scores can be retrieved from the preference score database to obtain the initial filter item values.
[0056] It should be noted that, in the embodiments of this application, the acquisition and processing of historical search data are authorized and known to the object, and comply with legal requirements.
[0057] S302. Set the target filter value for the filter item.
[0058] In one possible implementation, if a filter item has a corresponding initial filter item value, the terminal can set the target filter item value based on the initial filter item value. After setting the target filter item value, the target filter item value can be displayed on the terminal. This application provides several methods for setting the target filter item value based on the initial filter item value. The first method is to directly use the initial filter item value as the target filter item value.
[0059] In some cases, users can manually adjust the position of the slider on the slider bar to adjust the value of each filter item, thus corresponding to different filter conditions. Based on this, the second method of setting the target filter item value based on the initial filter item value can be that the terminal responds to the adjustment operation of the slider and adjusts the value of the filter item based on the initial filter item value. If the slider is adjusted from the initial position to the target position, the target filter item value is set according to the value represented by the target position on the slider bar.
[0060] By manually adjusting the filter values, users can set target filter values according to their needs, thereby achieving personalized searches.
[0061] In other cases, before setting the target filter value based on the initial filter value, the search filtering tool can recommend multiple search targets. These search targets are determined by the search intent corresponding to the search term. For example, if the search term is "how to lose weight," then the search intent for that term is weight loss, and the recommended search target would be the weight loss goal. See [link to relevant documentation]. Figure 5 As shown. When the search goal is weight loss, the recommended search goals can include rapid fat loss, body shaping, improving health, fatty liver, slimming, leg slimming, boosting confidence, and waist slimming. Each search goal has a preset set of numerical filtering ranges, which serve as the recommended numerical filtering ranges for that scenario. When a user prefers a particular search goal, such as a target search goal, they can perform a selection operation on that target search goal. The terminal responds to the selection operation by displaying the corresponding numerical filtering range for the target search goal on a slider. The numerical filtering range for the target search goal can be highlighted on the slider.
[0062] For example, the search goal of "improving health" corresponds to a numerical filter range of 30-90 for exercise intensity and 30-70 for diet control. When the user selects "improving health" as the search goal (e.g., ...), ... Figure 6 (As shown), the range of values to be filtered will be displayed on the slider. Figure 6 The range indicated by the black line on the slider is the numerical filtering range for each filter item corresponding to the target search.
[0063] In this scenario, if any of the filter values previously set by the user (whether automatically calculated initial values or manually adjusted values) differ from the recommended filter range, a marker symbol is displayed within the filter range on the slider. This marker symbol indicates the recommended filter value. The marker symbol can be represented in any form; one possible implementation uses a triangle or a colored triangle. For example... Figure 6 As shown, a marker symbol is displayed on the slider corresponding to the filter item "Dietary Control", indicating that the set filter value corresponding to "Dietary Control" is not within the range of numerical filtering.
[0064] By using markers, users can clearly see the difference between the previously set filter values and the recommended filter values, making it easier for them to decide whether to adjust the previously set filter values.
[0065] When the previously set filter values are automatically calculated initial filter values, if the initial filter values are outside the filter range, the terminal can display a reminder pop-up. This pop-up prompts the user (who may be the interactive object) to adjust the filter values based on the recommended values. See [link to pop-up example] for more information on reminder pop-ups. Figure 7 As shown, since the initial filter value indicates that the diet control is too strict, a reminder pop-up window reminds the user that "a healthy body cannot function without a balanced diet; we recommend that you appropriately reduce the intensity of your diet control." The reminder pop-up window may appear after a second preset time delay following the display of the marker. The recommended filter value is determined based on a range of values, such as the average value within that range; this embodiment does not limit this approach.
[0066] Based on the aforementioned pop-up notification, users can choose to accept the suggestion to adjust the filter values based on the recommended filter values, or they can temporarily close the notification and ignore the suggestion. If the user chooses to accept the suggestion, they can confirm the adjustment in the notification pop-up. For example, if the user clicks the "Adjust Preferences" button in the notification pop-up, the terminal will respond to the confirmation by adjusting the filter values from the initial values to the recommended values, thus obtaining the target filter values. If the user closes the notification pop-up, for example, by clicking the "Think About It" button, no adjustment will be performed.
[0067] If the terminal responds to the slider adjustment operation, moving the slider from its initial position to the target position (i.e., when the previously set filter value was manually adjusted by the user), after displaying the value filter range corresponding to the target search on the slider, if the target position is outside the value filter range indicated by the slider, a reminder pop-up is displayed. This reminder pop-up prompts the interactive object (which can be the user) to adjust the filter value based on the recommended filter value, which is determined according to the value filter range. See [link to reminder pop-up] for details. Figure 7 As shown.
[0068] In this situation, users can choose to accept the suggestion to adjust the filter value based on the recommended filter value, or temporarily close the pop-up notification and ignore the suggestion. If the user chooses to accept the suggestion to adjust the filter value based on the recommended filter value, the user can confirm the adjustment in the pop-up notification. For example, if the user clicks the "Adjust Preferences" button in the pop-up notification, the target filter value can be set according to the value represented on the slider at the target location. This can be achieved by the terminal responding to the confirmation of the pop-up notification by adjusting the filter value from the value represented on the slider at the target location to the recommended filter value, thus obtaining the target filter value.
[0069] By recommending search targets, we can obtain more scientific and relevant target filter values that better match the search intent, thereby providing users with search results that are appropriate for their search intent.
[0070] S303. Provide target search results based on the search terms and the target filter values.
[0071] In this embodiment of the application, after the target filter value is set, the terminal can automatically provide target search results based on the search term and the target filter value.
[0072] In another implementation, since users may manually adjust or adjust the initial filter values based on their search goals to complete the setting of the target filter values, the search filtering tool can also provide a search result recommendation button to ensure that users complete the settings before searching, for example... Figure 4-7 The "Recommend Results for Me" button is shown in the image. In this case, the way to provide the target search results based on the search terms and target filter values is that when the user performs a trigger action on the search result recommendation button, such as when the user clicks the "Recommend Results for Me" button, the terminal responds to the trigger action on the search result recommendation button and provides the target search results based on the search terms and target filter values.
[0073] By setting up a search result recommendation button, searches can be executed based on user-initiated actions, thereby meeting user search needs and improving the search experience.
[0074] If the search filtering tool is displayed on the search results page, the way to provide target search results based on search terms and target filter values can be by filtering from multiple search results provided on the search results page.
[0075] In one possible implementation, the way to provide target search results based on search terms and target filter values could be to obtain the first keyword corresponding to the filter, and then provide target search results based on the search terms, the first keyword corresponding to the filter, and the target filter values.
[0076] It should be noted that, in this embodiment, one or more primary keywords can be pre-labeled for each filter item. For example, the primary keywords for diet control are "fat-loss meal" and "low-sugar." After obtaining the filter items and their target filter item values, the primary keywords corresponding to the filter items can be added to the search terms based on the target filter item values to obtain the target search results. Specifically, the stacking strategy for the primary keywords corresponding to the filter items can be determined based on their target filter item values. The primary keywords corresponding to filter items with higher target filter item values use a "high priority" and "include" strategy, while those corresponding to filter items with even higher target filter item values use a "low priority" and "do not include" strategy. Then, the primary keywords are added to the search terms according to the stacking strategy to provide the target search results.
[0077] For example, if the target filter value for diet control is 80 and the target filter value for exercise intensity is 25, the primary keywords for diet control are low-sugar and fat-loss meals, and the primary keywords for exercise intensity are equipment and brisk walking. Because the target filter value for diet control is higher and the target filter value for exercise intensity is lower, the overlay strategy for low-sugar and fat-loss meals is a "high priority" "include" strategy, meaning that search results for low-sugar and fat-loss meals will include related content and will be displayed first. The overlay strategy for equipment and brisk walking is a "low priority" "do not include" strategy, meaning that search results for equipment and brisk walking will not include related content, or search results that do include related content will be displayed later.
[0078] As can be seen from the above technical solution, based on the acquired search terms, a search filtering tool is displayed. This tool provides filter options that match the search terms, reflecting the user's search preferences. Then, a target filter value is set to determine the final user's search preference level. This allows for the determination of target search results that match the user's search preferences based on both the search terms and the target filter value, and the resulting search results are then provided to the user. This solution supplements the search terms with the filter options provided in the search filtering tool and the final determined target filter value, thereby searching according to the user's search preferences. This significantly narrows the search scope, greatly reducing the user's workload in judging search results and providing more accurate results. It significantly reduces time consumption and improves search efficiency and user experience.
[0079] Based on an understanding of users' search preferences and search goals, this system provides personalized filtering capabilities and guided recommendations for current searches. This saves users significant time and effectively provides them with scientifically sound knowledge guidance, significantly improving search efficiency and experience, and truly taking a solid step towards knowledge-based search.
[0080] As can be seen from the above description, to implement the search method provided in this application embodiment, it is necessary to combine both front-end presentation and back-end technology. The following mainly describes the front-end presentation and back-end technology aspects; the implementation flowchart of the search method can be found here. Figure 8 As shown. The front-end rendering process includes steps S801-S804. Based on each step of the front-end rendering, the back-end can provide corresponding front-end rendering support through back-end technical support:
[0081] S801, Obtain each user's search behavior.
[0082] When users perform daily searches, the backend needs to analyze the search preferences of each search (equivalent to historical search data), calculate the preference scores, and record them in a preference score database for future use. The method for calculating and recording search preference scores in the backend is as follows:
[0083] 1. Match search preferences using secondary keywords contained in the search terms.
[0084] Secondary keyword matching allows for the identification of search preferences, meaning the mapping between secondary keywords and search preferences is established. When a search term contains these secondary keywords, the corresponding search preference is matched. A single search term may match multiple search preferences. For example, a user's search term "braised pork" will match both "diet control" and "meat preference." The matching strength between secondary keywords and search preferences also varies, represented by numerical levels such as 1 to 10. Typically, only the first three search preferences need to be matched, with higher matching strength values indicating greater priority.
[0085] 2. Calculate preference scores for each matching search preference.
[0086] During the annotation process, the preference scores of all search preferences corresponding to the search term are usually noted. For example, the preference score for "dietary control" corresponding to the search term "braised pork" is 25, indicating intolerance to dietary control; but the corresponding "meat preference" score is 80, indicating a strong liking for meat. The preference scores of search preferences are calculated in this way.
[0087] 3. Record all preference scores into the corresponding preference score database.
[0088] Each search will yield 1 to 3 preference scores, which are then recorded in their respective preference score databases. For example, the database records the user's identifier (ID), search preferences, and preference scores. When a specific search preference is invoked, the average of all preference scores for that preference over a recent period is taken (reflecting the user's search preferences in a particular area during that time).
[0089] S802. Based on the input search term, display the search filter tool, which provides filter items, the initial filter item values corresponding to the filter items, and the search target.
[0090] When a user enters a search term, the backend can match the user's search preferences based on the current search term. Specifically, it can match search preferences using secondary keywords included in the search term. If the search term matches a specific search preference, the corresponding search preference is displayed as a filter, and the recorded preference score is retrieved as the initial filter value and displayed in the search filtering tool.
[0091] The backend determines the search target based on the search intent corresponding to the search terms. Specifically, search targets are added for each search intent through manual annotation, and a corresponding numerical filtering range is matched for each search target.
[0092] S803. Based on the selection operation of the target search, recommend the numerical filtering range corresponding to the target search.
[0093] The backend matches the target search result with the corresponding numerical filter range and displays the filter range on a slider. It then determines whether the user's previously set filter values (whether automatically calculated initial values or manually adjusted values) fall within the filter range and prompts the user to modify their settings via a pop-up window.
[0094] S804. In response to the triggering operation of the search result recommendation button, provide the target search results based on the search term, the first keyword corresponding to the filter item, and the target filter item value.
[0095] Different filter options should use different primary keywords. A layering strategy is determined based on the target filter value, and the primary keyword is used as a supplementary search term according to this strategy to complete the search result filtering. Specifically:
[0096] 1. Determine the primary keyword for each filter option.
[0097] Each filter item is labeled with one or more primary keywords, such as diet control corresponding to fat loss meals, low sugar, etc.
[0098] 2. Determine the overlay strategy for the first keyword based on the target filter value of the filter items.
[0099] By using annotation, the stacking strategy of the first keyword is determined based on the value of the target filter. Filters with high target filter values adopt the stacking strategy of "high priority" and "contains", while filters with low target filter values adopt the stacking strategy of "low priority" and "does not contain".
[0100] 3. Following the overlay strategy, add the first keyword to the search terms and search again to complete the filtering of search results.
[0101] Based on the above description, this application embodiment also provides another search method, see [link to relevant documentation]. Figure 9 The method includes:
[0102] S901: The terminal responds to the input of search terms in the search input box and displays the search results page.
[0103] S902, The search filter tool slides out from the top of the search results page.
[0104] The search filtering tool includes filter items, the initial filter item values corresponding to the filter items, and the search target.
[0105] S903. Determine the target filter value based on the initial filter value.
[0106] The specific implementation of S903 can include the following two methods, the first of which includes S9031:
[0107] S9031. Based on the user's adjustment operation on the slider, adjust the initial filter item value to obtain the target filter item value.
[0108] The second approach includes S9032-S9034:
[0109] S9032. Determine the target search objective based on the user's selection operation.
[0110] S9033, recommends the numerical filtering range of the target search, and may pop up a reminder window.
[0111] S9034. In response to the adjustment confirmation operation of the reminder pop-up, the filter item value is adjusted from the initial filter item value to the recommended filter item value to obtain the target filter item value.
[0112] S904. In response to the triggering operation of the search result recommendation button, the terminal provides the target search results based on the first keyword corresponding to the search term and the value of the target filter item.
[0113] It should be noted that, based on the implementation methods provided in the above aspects, this application can be further combined to provide more implementation methods.
[0114] based on Figure 3 Corresponding to the search method provided in the embodiments, this application also provides a search device 1000. See also Figure 10 The search device 1000 includes a display unit 1001, a setting unit 1002, and a providing unit 1003.
[0115] The display unit 1001 is used to display a search filtering tool based on the acquired search terms, wherein the search filtering tool provides filter items that match the search terms and reflect search preferences;
[0116] The setting unit 1002 is used to set the target filter item value of the filter item;
[0117] The providing unit 1003 is used to provide target search results based on the search term and the target filter item value.
[0118] In one possible implementation, the filter item has a corresponding initial filter item value, and the setting unit 1002 is used to:
[0119] Set the target filter value for the filter item based on the initial filter item value.
[0120] In one possible implementation, the search filtering tool also provides a slider for the filter items, wherein the position of the slider represents the magnitude of the filter item value;
[0121] The initial filter value is reflected by the initial position of the slider on the slider bar.
[0122] In one possible implementation, the setting unit 1002 is used to:
[0123] In response to the adjustment operation on the slider, the value of the filter item is adjusted based on the initial filter item value;
[0124] If the slider is adjusted from the initial position to the target position, the value of the target filter item is set according to the value represented by the slider on the target position.
[0125] In one possible implementation, the display unit 1001 is further configured to:
[0126] Before setting the target filter value of the filter item based on the initial filter item value, the search filter tool recommends multiple search targets, which are determined according to the search intent corresponding to the search term;
[0127] In response to the selection operation of a target search target among the plurality of search targets, the numerical filtering range corresponding to the target search target is displayed on the slider.
[0128] In one possible implementation, the display unit is further configured to:
[0129] After displaying the numerical filtering range corresponding to the target search on the slider, if the initial filter value is outside the numerical filtering range, a reminder pop-up is displayed. The reminder pop-up is used to prompt the interactive object to adjust the filter value based on the recommended filter value, which is determined according to the numerical filtering range.
[0130] The setting unit 1002 is used for:
[0131] In response to the adjustment confirmation operation of the reminder pop-up, the filter item value is adjusted from the initial filter item value to the recommended filter item value to obtain the target filter item value.
[0132] In one possible implementation, if the slider is adjusted from the initial position to the target position in response to an adjustment operation on the slider, the display unit 1001 is further configured to:
[0133] After displaying the numerical filtering range corresponding to the target search target on the slider, if the value represented by the target position on the slider is outside the numerical filtering range, a reminder pop-up is displayed. The reminder pop-up is used to prompt the interactive object to adjust the filtering item value based on the recommended filtering item value, which is determined according to the numerical filtering range.
[0134] The setting unit 1002 is used for:
[0135] In response to the adjustment confirmation operation of the reminder pop-up, the filter item value is adjusted from the value represented by the slider at the target position to the recommended filter item value, thus obtaining the target filter item value.
[0136] In one possible implementation, the display unit 1001 is further configured to:
[0137] Before the pop-up reminder window appears, a marker symbol is displayed within the numerical filtering range on the slider. The marker symbol is used to identify the numerical value of the recommended filter item.
[0138] In one possible implementation, the display unit 1001 is specifically used for:
[0139] In response to the input of the search term in the search input box, the system enters the search results page, which displays multiple search results.
[0140] The search filtering tool is displayed on the search results page;
[0141] The providing unit 1003 is specifically used for:
[0142] The target search result is obtained by filtering from the multiple search results based on the search term and the target filter value.
[0143] In one possible implementation, the providing unit 1003 is specifically used for:
[0144] Obtain the first keyword corresponding to the filter item;
[0145] The target search results are provided based on the search term, the first keyword corresponding to the filter item, and the value of the target filter item.
[0146] In one possible implementation, the providing unit 1003 is specifically used for:
[0147] Based on the target filter value of the filter item, determine the overlay strategy of the first keyword corresponding to the filter item;
[0148] The first keyword is added to the search term according to the overlay strategy to perform the search and provide the target search results.
[0149] In one possible implementation, the initial filter item value is determined based on historical search data, and the display unit 1001 is specifically used for:
[0150] Based on the second keyword included in the search terms and the preset correspondence, the search preference that matches the second keyword is determined as the filter item, and the preset correspondence is the correspondence between the second keyword and the search preference;
[0151] The initial filter item value is determined based on the preference score of the pre-recorded search preferences, wherein the preference score is determined based on the historical search data;
[0152] The search filtering tool is displayed based on the filter options and the initial filter option values.
[0153] In one possible implementation, the search filtering tool also provides a search result recommendation button, and the providing unit 1003 is specifically used for:
[0154] In response to the triggering of the search result recommendation button, target search results are provided based on the search term and the target filter value.
[0155] As can be seen from the above technical solution, based on the acquired search terms, a search filtering tool is displayed. This tool provides filter options that match the search terms, reflecting the user's search preferences. Then, a target filter value is set to determine the final user's search preference level. This allows for the determination of target search results that match the user's search preferences based on both the search terms and the target filter value, and the resulting search results are then provided to the user. This solution supplements the search terms with the filter options provided in the search filtering tool and the final determined target filter value, thereby searching according to the user's search preferences. This significantly narrows the search scope, greatly reducing the user's workload in judging search results and providing more accurate results. It significantly reduces time consumption and improves search efficiency and user experience.
[0156] This application also provides an electronic device for searching, which can be a terminal, for example, a smartphone:
[0157] Figure 11The diagram shown is a block diagram of a portion of the structure of a smartphone provided in an embodiment of this application. (Reference) Figure 11 A smartphone includes components such as a radio frequency (RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, a Wi-Fi module 1170, a processor 1180, and a power supply 1190. The input unit 1130 may include a touch panel 1131 and other input devices 1132, the display unit 1140 may include a display panel 1141, and the audio circuit 1160 may include a speaker 1161 and a microphone 1162. It is understood that... Figure 11 The smartphone structure shown does not constitute a limitation on smartphones and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0158] The memory 1120 can be used to store software programs and modules. The processor 1180 executes various functions and data processing of the smartphone by running the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the smartphone (such as audio data, phonebook, etc.). In addition, the memory 1120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0159] The processor 1180 is the control center of the smartphone, connecting various parts of the smartphone via various interfaces and lines. It performs various functions and processes data by running or executing software programs and / or modules stored in the memory 1120 and calling data stored in the memory 1120. Optionally, the processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 1180.
[0160] In this embodiment, the processor 1180 in the smartphone can perform the following steps:
[0161] Based on the obtained search terms, a search filtering tool is displayed, which provides filter options that match the search terms and reflect search preferences;
[0162] Set the target filter value for the filter item;
[0163] The target search results are provided based on the search terms and the target filter values.
[0164] This application also provides a server; please refer to [link / reference]. Figure 12 As shown, Figure 12 This is a structural diagram of a server 1200 provided in an embodiment of this application. The server 1200 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 1222 (e.g., one or more processors) and a memory 1232, and one or more storage media 1230 (e.g., one or more mass storage devices) for storing application programs 1242 or data 1244. The memory 1232 and storage media 1230 can be temporary or persistent storage. The program stored in the storage media 1230 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the server. Furthermore, the CPU 1222 may be configured to communicate with the storage media 1230 and execute the series of instruction operations in the storage media 1230 on the server 1200.
[0165] Server 1200 may also include one or more power supplies 1226, one or more wired or wireless network interfaces 1250, one or more input / output interfaces 1258, and / or one or more operating systems 1241, such as Windows Server. TM Mac OS X TM Unix TM Linux TM FreeBSD TM etc.
[0166] In this embodiment, the aforementioned steps performed by the server can be based on Figure 12 The server architecture shown is implemented.
[0167] According to one aspect of this application, a computer-readable storage medium is provided for storing program code for performing the search methods described in the foregoing embodiments.
[0168] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the above embodiments.
[0169] The descriptions of the processes or structures corresponding to the above figures each have their own emphasis. For parts of a process or structure that are not described in detail, please refer to the relevant descriptions of other processes or structures.
[0170] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0171] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0172] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0173] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0174] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0175] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A search method, characterized in that, The method includes: Based on the obtained search terms, a search filtering tool is displayed. The search filtering tool provides filter items that match the search terms and reflect search preferences. Each filter item has a corresponding initial filter item value. The search filtering tool also provides a slider for the filter items. The position of the slider on the slider represents the magnitude of the filter item value. The initial filter item value is reflected by the initial position of the slider on the slider bar; Set the target filter value for the filter item based on the initial filter item value; Provide target search results based on the search terms and the target filter values; Before setting the target filter value of the filter item based on the initial filter item value, the method further includes: The search filtering tool recommends multiple search targets, which are determined based on the search intent corresponding to the search terms. In response to the selection operation of a target search target among the plurality of search targets, the numerical filtering range corresponding to the target search target is displayed on the slider.
2. The method according to claim 1, characterized in that, Setting the target filter value based on the initial filter value includes: In response to the adjustment operation on the slider, the value of the filter item is adjusted based on the initial filter item value; If the slider is adjusted from the initial position to the target position, the value of the target filter item is set according to the value represented by the slider on the target position.
3. The method according to claim 1, characterized in that, After displaying the numerical filtering range corresponding to the target search object on the slider, the method further includes: If the initial filter item value is outside the value filtering range, a reminder pop-up window is displayed. The reminder pop-up window is used to prompt the interactive object to adjust the filter item value based on the recommended filter item value, which is determined according to the value filtering range. Setting the target filter value based on the initial filter value includes: In response to the adjustment confirmation operation of the reminder pop-up, the filter item value is adjusted from the initial filter item value to the recommended filter item value to obtain the target filter item value.
4. The method according to claim 1, characterized in that, If, in response to an adjustment operation on the slider, the slider is adjusted from the initial position to the target position, and after displaying the numerical filtering range corresponding to the target search target on the slider, the method further includes: If the value represented by the target position on the slider is outside the value filtering range, a reminder pop-up is displayed. The reminder pop-up is used to prompt the interactive object to adjust the filter item value based on the recommended filter item value, which is determined according to the value filtering range. Setting the target filter value based on the value represented by the target position on the slider includes: In response to the adjustment confirmation operation of the reminder pop-up, the filter item value is adjusted from the value represented by the slider at the target position to the recommended filter item value, thus obtaining the target filter item value.
5. The method according to claim 3 or 4, characterized in that, Before displaying the reminder pop-up, the method further includes: A marker symbol is displayed within the numerical filtering range on the slider, and the marker symbol is used to identify the numerical value of the recommended filter item.
6. The method according to any one of claims 1-4, characterized in that, The search filtering tools, based on the acquired search terms, include: In response to the input of the search term in the search input box, the system enters the search results page, which displays multiple search results; The search filtering tool is displayed on the search results page; Providing target search results based on the search term and the target filter value includes: The target search result is obtained by filtering from the multiple search results based on the search term and the target filter value.
7. The method according to any one of claims 1-4, characterized in that, Providing target search results based on the search term and the target filter value includes: Obtain the first keyword corresponding to the filter item; The target search results are provided based on the search term, the first keyword corresponding to the filter item, and the value of the target filter item.
8. The method according to claim 7, characterized in that, The provision of the target search results based on the search term, the first keyword corresponding to the filter item, and the target filter item value includes: Based on the target filter value of the filter item, determine the overlay strategy of the first keyword corresponding to the filter item; The first keyword is added to the search term according to the overlay strategy to perform the search and provide the target search results.
9. The method according to any one of claims 1-4, characterized in that, The initial filter values are determined based on historical search data, and the search filtering tool includes: Based on the second keyword included in the search terms and the preset correspondence, the search preference that matches the second keyword is determined as the filter item, and the preset correspondence is the correspondence between the second keyword and the search preference; The initial filter item value is determined based on the preference score of the pre-recorded search preferences, wherein the preference score is determined based on the historical search data; The search filtering tool is displayed based on the filter options and the initial filter option values.
10. The method according to any one of claims 1-4, characterized in that, The search filtering tool also provides a search result recommendation button, which provides target search results based on the search term and the target filter item value, including: In response to the triggering of the search result recommendation button, target search results are provided based on the search term and the target filter value.
11. A search device, characterized in that, The device includes a display unit, a setting unit, and a providing unit: The display unit is used to display a search filtering tool based on the acquired search terms. The search filtering tool provides filter items that match the search terms and reflect search preferences. Each filter item has a corresponding initial filter item value. The search filtering tool also provides a slider for the filter items. The position of the slider on the slider represents the magnitude of the filter item value. The initial filter item value is reflected by the initial position of the slider on the slider. The setting unit is used to set the target filter value of the filter item based on the initial filter item value; The providing unit is configured to provide target search results based on the search term and the target filter item value; The display unit is also used for: Before setting the target filter value of the filter item based on the initial filter item value, the search filter tool recommends multiple search targets, which are determined according to the search intent corresponding to the search term; In response to the selection operation of a target search target among the plurality of search targets, the numerical filtering range corresponding to the target search target is displayed on the slider.
12. The apparatus according to claim 11, characterized in that, The setting unit is used for: In response to the adjustment operation on the slider, the value of the filter item is adjusted based on the initial filter item value; If the slider is adjusted from the initial position to the target position, the value of the target filter item is set according to the value represented by the slider on the target position.
13. The apparatus according to claim 11, characterized in that, The display unit is also used for: After displaying the numerical filtering range corresponding to the target search on the slider, if the initial filter value is outside the numerical filtering range, a reminder pop-up is displayed. The reminder pop-up is used to prompt the interactive object to adjust the filter value based on the recommended filter value, which is determined according to the numerical filtering range. The setting unit is used for: In response to the adjustment confirmation operation of the reminder pop-up, the filter item value is adjusted from the initial filter item value to the recommended filter item value to obtain the target filter item value.
14. The apparatus according to claim 11, characterized in that, If, in response to an adjustment operation on the slider, the slider is adjusted from the initial position to the target position, the display unit is further configured to: After displaying the numerical filtering range corresponding to the target search target on the slider, if the value represented by the target position on the slider is outside the numerical filtering range, a reminder pop-up is displayed. The reminder pop-up is used to prompt the interactive object to adjust the filtering item value based on the recommended filtering item value, which is determined according to the numerical filtering range. The setting unit is used for: In response to the adjustment confirmation operation of the reminder pop-up, the filter item value is adjusted from the value represented by the slider at the target position to the recommended filter item value, thus obtaining the target filter item value.
15. The apparatus according to claim 13 or 14, characterized in that, The display unit is also used for: Before the pop-up reminder window appears, a marker symbol is displayed within the numerical filtering range on the slider. The marker symbol is used to identify the numerical value of the recommended filter item.
16. The apparatus according to any one of claims 11-14, characterized in that, The display unit is specifically used for: In response to the input of the search term in the search input box, the system enters the search results page, which displays multiple search results; The search filtering tool is displayed on the search results page; The providing unit is specifically used for: The target search result is obtained by filtering from the multiple search results based on the search term and the target filter value.
17. The apparatus according to any one of claims 11-14, characterized in that, The providing unit is specifically used for: Obtain the first keyword corresponding to the filter item; The target search results are provided based on the search term, the first keyword corresponding to the filter item, and the value of the target filter item.
18. The apparatus according to claim 17, characterized in that, The providing unit is specifically used for: Based on the target filter value of the filter item, determine the overlay strategy of the first keyword corresponding to the filter item; The first keyword is added to the search term according to the overlay strategy to perform the search and provide the target search results.
19. The apparatus according to any one of claims 11-14, characterized in that, The initial filter values are determined based on historical search data, and the display unit is specifically used for: Based on the second keyword included in the search terms and the preset correspondence, the search preference that matches the second keyword is determined as the filter item, and the preset correspondence is the correspondence between the second keyword and the search preference; The initial filter item value is determined based on the preference score of the pre-recorded search preferences, wherein the preference score is determined based on the historical search data; The search filtering tool is displayed based on the filter options and the initial filter option values.
20. The apparatus according to any one of claims 11-14, characterized in that, The search filtering tool also provides a search result recommendation button, and the providing unit is specifically used for: In response to the triggering of the search result recommendation button, target search results are provided based on the search term and the target filter value.
21. An electronic device for searching, characterized in that, The electronic device includes a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the method according to any one of claims 1-10 according to the instructions in the program code.
22. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store program code for performing the method according to any one of claims 1-10.
23. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1-10.