WO2019179208A1 - Drop-down suggestion list - Google Patents

Drop-down suggestion list Download PDF

Info

Publication number
WO2019179208A1
WO2019179208A1 PCT/CN2019/070047 CN2019070047W WO2019179208A1 WO 2019179208 A1 WO2019179208 A1 WO 2019179208A1 CN 2019070047 W CN2019070047 W CN 2019070047W WO 2019179208 A1 WO2019179208 A1 WO 2019179208A1
Authority
WO
WIPO (PCT)
Prior art keywords
index
attribute
search
pull
establishing
Prior art date
Application number
PCT/CN2019/070047
Other languages
French (fr)
Chinese (zh)
Inventor
张晓明
魏宏
饶星
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019179208A1 publication Critical patent/WO2019179208A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/335Filtering based on additional data, e.g. user or group profiles

Definitions

  • the embodiments of the present specification relate to the field of search engines, and more particularly, to a method for establishing a pull-down prompt index, and a method and apparatus for a pull-down prompt on a server side and a user terminal APP end.
  • a plurality of search boxes corresponding to respective services are usually set.
  • the user When the user enters the query content in the search box, the user usually displays a drop-down prompt entry.
  • the technical solutions of the current drop-down prompt mainly include: a pull-down prompt system based on the trie tree, and a drop-down prompt system for loading multiple different drop-down prompt indexes to support multiple services.
  • a pull-down prompt system based on the trie tree
  • new requirements for drop-down prompts have emerged. For example, in new business scenarios such as O2O, it is necessary to use other complex recall and filtering conditions such as geographic location, as well as complex sorting strategies. Therefore, a more effective pull-down reminder scheme is needed.
  • the embodiments of the present specification aim to provide a more effective pull-down prompting method to solve the deficiencies in the prior art.
  • an aspect of the present specification provides a method for establishing a pull-down prompt index, where the pull-down prompt is used for at least one search box included in a user terminal APP, and each search box is set to a corresponding service in the APP.
  • the method is performed on the server side, including: acquiring a plurality of terms for a pull-down prompt for each service in the user terminal APP; acquiring at least one attribute of each entry; establishing a prefix index, where The prefix index includes an inverted index of each term's prefix to itself; and an attribute index is established, wherein the attribute index includes an index between each term and its respective attribute.
  • the at least one attribute includes at least one of the following: a service type, a number of queries, a number of results, a number of clicks, a click-through rate, a geographic location, a city, and an address.
  • the establishing an attribute index includes establishing a positive index of the first entry to the first attribute thereof.
  • the establishing an attribute index includes establishing an inverted index of the second attribute of the second term to the second term.
  • the establishing a prefix index includes establishing a prefix index offline; and the establishing the attribute index includes establishing an attribute index offline.
  • the establishing a first entry to a positive index of the first attribute includes: setting a plurality of word sub-documents for the first entry, The first entry to the positive index of the first attribute in different cities is respectively established.
  • the establishing a prefix index includes: acquiring a maximum semantic granularity word included in the third entry, and establishing the maximum semantic granularity word and its respective prefix to the The inverted index of the third term.
  • the other aspect of the present specification provides a search method for a pull-down prompt, where the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP.
  • the method is performed on the server side, including: receiving, from the user terminal APP, the query content input by the user in the search box; receiving at least one attribute related to the user terminal, the user terminal APP, or the user from the user terminal APP; acquiring the search box with the search box a search condition of the corresponding service; searching for a plurality of terms corresponding to the query content by using the prefix index obtained by the method for indexing as described above; and establishing an index according to the above according to the search condition and the at least one attribute
  • the method obtains an attribute index, and filters the plurality of terms to obtain a search result.
  • the search method for the pull-down prompt further includes: after obtaining the search result, acquiring a sorting method of the service corresponding to the search box; and sorting the search result by the sorting method .
  • the at least one attribute includes at least one of the following: a search box service type, a user terminal geographic location, a user terminal city, and a user query time.
  • filtering the plurality of terms according to the search condition and the at least one attribute by using an attribute index obtained according to the method for establishing an index includes: filtering out the entry that does not belong to the search box service type according to the search condition that defines the entry service type as the search box service type.
  • Another aspect of the present specification provides a drop-down prompting method for at least one search box included in a user terminal APP, where each search box is set in a corresponding service in the APP, and the method is in a user.
  • Executing in the terminal APP including: acquiring the query content input by the user in the search box; acquiring at least one first attribute related to the user terminal, the user terminal APP, or the user; sending the query content and the at least one first attribute Giving the server side; receiving, from the server side, the search result obtained by the search method according to the above; and displaying the search result at the drop-down prompt position of the search box.
  • the pull-down prompting method further includes: after receiving the search result obtained by the searching method according to the foregoing search method, acquiring at least one second attribute related to the user, and acquiring a service corresponding to the search box. a sorting method, and sorting the search results by the sorting method according to the at least one second attribute.
  • the at least one second attribute includes at least one of the following: user age, gender, consumption preference, and spending power.
  • the other aspect of the present disclosure provides an apparatus for establishing a pull-down prompt index, where the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP
  • the device is implemented on the server side, and includes: an entry obtaining unit, configured to acquire a plurality of terms for a pull-down prompt for each service in the user terminal APP; and an attribute obtaining unit configured to acquire each entry At least one attribute; a prefix index establishing unit configured to: establish a prefix index, wherein the prefix index includes an inverted index of each term prefix to itself; and an attribute index establishing unit configured to establish an attribute index, wherein The attribute index includes an index between each term and its respective attributes.
  • the other aspect of the present specification provides a search device for a pull-down prompt, where the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP.
  • the device is implemented on the server side, and includes: a query content receiving unit, configured to receive, from the user terminal APP, the query content input by the user in the search box; the attribute receiving unit is configured to receive the user terminal and the user terminal from the user terminal APP At least one attribute related to the APP or the user; the obtaining unit is configured to acquire a search condition of the service corresponding to the search box;
  • a first search unit configured to: search for a plurality of terms corresponding to the query content by using a prefix index obtained by the method for indexing; and a second search unit configured to: according to the search condition and the At least one attribute, the plurality of terms are filtered by an attribute index obtained according to the method for indexing as described above, thereby obtaining a search result.
  • the other aspect of the present specification provides a pull-down prompting device, where the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP, and the device is in the user.
  • the implementation in the terminal APP includes: a query content obtaining unit configured to acquire the query content input by the user in the search box; and an attribute obtaining unit configured to acquire at least one first attribute related to the user terminal, the user terminal APP, or the user a sending unit configured to: send the query content and the at least one first attribute to a server; the receiving unit is configured to receive, from the server, a search result obtained by the searching method according to the foregoing search method; and a display unit, configured The search result is displayed at a drop-down prompt position of the search box.
  • the pull-down prompting system is implemented by using the technology in the search engine, and the plurality of pull-down prompting services are supported by a set of universal pull-down prompting system, thereby saving labor and resource costs and improving the iterative efficiency. And there is enough flexibility to support different performance needs of different businesses.
  • FIG. 1 shows a schematic diagram of a pull-down prompt system in accordance with an embodiment of the present specification
  • Figure 2 illustrates a method of establishing a drop-down hint index
  • FIG. 3 illustrates a search method for a pull-down prompt according to an embodiment of the present specification
  • Figure 4 schematically illustrates a search process
  • Figure 5 shows a drop down prompt method
  • FIG. 6 is a schematic view showing a pull-down prompt effect according to an embodiment of the present specification.
  • Figure 7 shows an apparatus 700 for establishing a pull-down hint index
  • Figure 8 illustrates a search device 800 for a pull-down prompt
  • FIG. 9 shows a pull down prompting device 900.
  • FIG. 1 shows a schematic diagram of a pull-down prompt system in accordance with an embodiment of the present specification.
  • the system includes a client (101, 102, 103) and a server 104.
  • the client may be a user terminal APP, and may include at least one search box in the APP, and different search boxes correspond to different services.
  • the client 101 is using a search box corresponding to the service 1 in the APP
  • the client 102 is using a search box corresponding to the service 2 in the APP
  • the client 103 is using the search box corresponding to the service 3 in the APP. .
  • the pull-down prompting system provides a pull-down prompt service through the search instance 11 in the server side 104.
  • the search instance 11 includes a prefix index 111, an attribute index 112, and a sorting plug-in 113.
  • the prefix index refers to a prefix word or a word included in the entry or a pinyin index of the pinyin to the term
  • the prefix index 111 includes a term of all services in the APP.
  • the attribute index includes an index between each term and its respective attributes.
  • the above related attributes include the service type, and the service type is determined by the service in which the search box input by the user is located.
  • the server side 104 acquires the search condition set for the service type and transmits it to the search instance 11 along with the query content and related attributes.
  • the search instance 11 searches for the terms related to the query content according to the prefix index 111, and filters the searched terms according to the attribute index 112 according to the search condition, thereby obtaining the search result.
  • the search condition includes searching only the terms of the business type, so that the entries that do not belong to the business type are filtered out according to the index between the terms and the business type attribute.
  • the search example 11 further includes a sorting plug-in 113 in which a sorting method suitable for each service is set, thereby sorting the search results in a sorting method corresponding to the business type.
  • the server side 104 further includes a database 12 in which entries of respective services and attributes related to the terms are stored, and the search instance 11 establishes a prefix index 111 and an attribute index 112 by acquiring data from the database 12.
  • Figure 2 illustrates a method of establishing a drop-down hint index.
  • the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP.
  • the method is performed on the server side, more specifically, as shown in FIG. 1, in the search instance 11 of the server side 104.
  • the method includes the following steps: in step S21, acquiring a plurality of terms for a pull-down prompt for each service in the user terminal APP; and acquiring at least one attribute of each entry in step S22; Establishing a prefix index, wherein the prefix index includes an inverted index of each term prefix to itself; and in step S24, establishing an attribute index, wherein the attribute index includes between each term and each attribute thereof index.
  • a plurality of terms for a pull-down prompt for each service in the user terminal APP are acquired.
  • Alipay APP including word of mouth business, wealth business, and so on.
  • Each of these services includes a corresponding database on the server side for storing business-related data, some of which can be used as entries for drop-down prompts.
  • business-related data includes business type, store name, dish name, store address, store location, number of clicks, number of queries, and the like.
  • the store name and the dish name can be used as entries for the drop-down prompt.
  • the fund name can be used as a drop-down prompt.
  • the search instance 11 can obtain terms that can be used for pull-down prompts in each service.
  • At step S22 at least one attribute of each vocabulary is obtained.
  • Terms of different business have attributes corresponding to the business.
  • the terms of the word-of-mouth business include: business type (word of mouth), store address, store location, city, number of results, number of clicks, click-through rate, number of queries, and so on.
  • the wealth business includes attributes such as business type (wealth), number of results, total clicks, total click-through rate, number of clicks in different cities, and click-through rates in different cities. These attributes can be represented separately in different fields.
  • the service type is represented by the field "type”.
  • attribute data are submitted by the store, such as shop address, store location, city, etc.
  • Some attribute data is received by the server from the APP, such as the number of clicks, the number of queries, and the like.
  • the server side stores these attributes in association with the terms in the database 12, so that the search instance 11 can obtain at least one attribute of each entry by reading the database 12.
  • a prefix index is established, wherein the prefix index includes a prefix of each entry to its own inverted index.
  • the prefix of the entry is a single word or multiple consecutive words before the end of the included term.
  • the prefix “Nongfu Spring” includes “farm”, “farmer”, “Nongfu Mountain”, “Fu”, “Fushan” and “Mountain”.
  • the inverted index of "farm”, “farmer”, “Nongfu Mountain”, “Fu”, “Fushan” and “Mountain” to "Nongfu Spring” can be obtained.
  • all the prefixes of the terms may be obtained as the key in the index table, and the corresponding entry is used as the value corresponding to the key in the index table. Thereby establishing a prefix index common to all services.
  • the index of the pinyin to term of the above prefix is also included in the prefix index.
  • the maximum semantic granularity word included in the entry and its respective prefix to prefix index of the entry may be established.
  • the entry “Nongfu Spring is a bit sweet”
  • it can be divided into two largest semantic granular words “Nongfu Spring” and “Slightly Sweet” according to the semantic dictionary.
  • it is possible to establish an inverted index of "Nongfu Spring” and its prefixes “Nong”, “Farmer”, “Nongfu Mountain”, “Fu”, “Foshan” and “Mountain” to "Nongfu Spring”.
  • an attribute index is established, wherein the attribute index includes an index between each term and its respective attribute.
  • the index between the term and the attribute can be an inverted index of the attribute to the term, or it can be an index of the item to the attribute.
  • an inverted index of the business type to the entry is established.
  • an inverted index of geographic location to entry is established.
  • a positive index of the entry to the number of clicks is established.
  • a positive index table as shown in Table 1 can be created.
  • a dish noun in the word-of-mouth business may be related to multiple cities.
  • a plurality of sub-documents may be set for the dish noun to index their attributes in different cities.
  • the positive index table of the nouns for attributes can be as shown in Table 2.
  • the search instance 11 after the search instance 11 obtains the service data from the database 12 in the server side 104, the prefix index and the attribute index are established offline for a predetermined period of time. Typically, an offline full update of the index is performed at a time when the user is less than 2-5 am every day.
  • the search instance 11 updates the index in real time after the user real-time update data is retrieved from the database 12. For example, in the word-of-mouth business, when a store is added, or a store updates a dish name, the search instance can obtain the store change information from the database 12 in real time by subscribing to the store information, thereby performing a second-level update of the information in the index.
  • FIG. 3 illustrates a search method for a pull-down prompt in accordance with an embodiment of the present specification.
  • the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP.
  • the method is performed on the server side, and includes the following steps: receiving, in step S31, the query content input by the user in the search box from the user terminal APP; and receiving, from the user terminal APP, the user terminal, the user terminal APP, or Obtaining at least one attribute related to the user; in step S33, acquiring a search condition of the service corresponding to the search box; and in step S34, searching for a plurality of corresponding to the query content by using the prefix index obtained by the method for establishing an index a term; and in step S35, the plurality of terms are filtered by the attribute index obtained according to the method for indexing according to the search condition and the at least one attribute, thereby obtaining a search result.
  • step S31 the query content input by the user in the search box is received from the user terminal APP.
  • the query content entered by the user in a specific search box in the APP may be a single word, consecutive words, or may be pinyin.
  • the APP will synchronously send the input content to the server.
  • These attributes may be the geographic location (latitude and longitude) of the user terminal associated with the user terminal and the city, the search box service type associated with the user terminal APP, the user query time associated with the user, and the like. These attributes can be represented by fields, respectively.
  • the specific attribute received by the server from the user terminal APP is related to the search box service type. For example, when the search box service type is a word-of-mouth service, the server receives the search box service type (word-of-mouth) and the geographic location where the user terminal is located from the APP.
  • the server side receives the search box service type (wealth) and other attributes from the APP end.
  • the user queries in the search box of the Alipay APP homepage, where the search box service type is global service, that is, "type all”.
  • a search condition of a service corresponding to the search box is acquired.
  • the search conditions may include: the service type is "word of mouth", the distance to the user terminal is within a predetermined distance, and the like.
  • search criteria may include the risk level of the product at a predetermined level.
  • the corresponding search conditions are all search conditions of each service included in the APP. These search conditions can be set on the server side, and the server side obtains the search condition corresponding to the service type from its own storage location and transmits it to the search instance.
  • the search condition may be set in the user terminal APP, and the server receives the corresponding search condition from the APP according to the search box service type and transmits it to the search instance.
  • step S34 a plurality of terms corresponding to the query content are searched by the prefix index obtained according to the above method of indexing.
  • the search terms may include: Ali Film, Ali Health, Arina Pharmaceutical, Arirang, Ali Food House, Ali noodles, etc.
  • “Ali Pictures, Ali Health, Arina Pharmaceuticals” is a term belonging to the wealth business.
  • “Arirang, Ali Restaurant, Ali Noodles” is a term that belongs to the word of mouth business.
  • step S35 the plurality of terms are filtered by the attribute index obtained according to the method for establishing an index according to the search condition and the at least one attribute, thereby obtaining a search result.
  • the attribute index obtained according to the method for establishing an index according to the search condition and the at least one attribute, thereby obtaining a search result.
  • the search condition of the wealth service includes limiting the entry service type to the search box service type "wealth" .
  • the search for the term that satisfies the business type is "wealth".
  • the user inputs “Ali” in the search box of the word-of-mouth service and the attributes received by the server from the APP include the search box service type (word of mouth) and the geographic location of the user terminal, and the obtained search conditions corresponding to the word-of-mouth service include:
  • the business type of the article is word of mouth, and the geographical location of the entry is within five kilometers of the user terminal.
  • the search obtains the geographical location attribute within five kilometers from the user terminal, including “Ali Restaurant, Ali Noodle, Brazilian BBQ, KFC, Pizza Hut...”, taking the prefix index and the above two types.
  • the search condition corresponding to the word-of-mouth service may further include: for example, "the number of queries exceeds 300 times". Therefore, according to the search condition, and according to the positive index of the store entry to the query number attribute in the word-of-mouth business, the number of queries of the terms “Ali Restaurant” and “Ali Noodle” are obtained, and according to the number of queries Filter.
  • Figure 4 is a view schematically showing the above search process, in which, for the convenience of the schematic representation, in the search results, entries belonging to one business type (for example, wealth business) are represented by capital letters, and belonging to another business type in lowercase letters (for example, word of mouth business) ) the entry.
  • entries belonging to one business type for example, wealth business
  • capital letters for example, capital letters
  • lowercase letters for example, word of mouth business
  • the prefix index 41, the first attribute index 42 (eg, the service type index), and the second attribute index 43 (eg, the geographic location index) included in the search instance are all inverted indexes, and the search through the three indexes
  • the corresponding search results ⁇ A, B, C, a, b, c ⁇ , ⁇ a, b, c, d, e ⁇ and ⁇ b, c, e, f, g ⁇ can be obtained.
  • the intersection of the three search results is obtained, and the search results ⁇ b, c ⁇ are obtained.
  • the third attribute index 44 may be a positive index.
  • the number of search results obtained in step S35 above may be very large, possibly several thousand.
  • the search results may be sorted first, and then the results of the predetermined number (for example, 500) ranked first are transmitted to the user terminal APP.
  • a sorting plug-in 113 is included in the search example 11 according to an embodiment of the present specification.
  • the search instance 11 obtains a sorting method of the service corresponding to the search box from the sorting plug-in 113 before transmitting the search result to the user terminal APP, and sorts the search result by the sorting method.
  • the sorting method corresponding to the store entry in the word-of-mouth business may include: first sorting according to the distance from the geographic location attribute of the entry to the user terminal, and sorting by the attribute of the number of times of the query in the next layer of the sorting, in the next Layers, sorted by the click attribute of the entry, etc.
  • the sorting method of the entry corresponding to the wealth business may include: sorting according to the profit rate attribute of the entry, sorting according to the risk level attribute of the entry, sorting according to the click attribute of the entry, and the like.
  • FIG. 5 shows a pull-down prompting method, which is executed in a user terminal APP, the user terminal APP comprising at least one search box, each search box being arranged in a corresponding service in the APP.
  • the method includes the following steps: in step S51, acquiring query content input by a user in a search box; in step S52, acquiring at least one attribute related to a user terminal, a user terminal APP, or a user; in step S53, the query is performed The content and the at least one first attribute are sent to the server; in step S54, the search result obtained by the search method according to the above search method is received from the server; and in step S55, the search is displayed at the drop-down prompt position of the search box result.
  • step S51 the query content input by the user in the search box is acquired.
  • the APP performs this step to obtain the query content. For example, the user will input “Nongfu Spring”, and when the user inputs "farm”, the query content acquired by the APP is “farm”. When the user inputs "fu”, the query content acquired by the APP is "farmer”.
  • At step S52 at least one attribute related to the user terminal, the user terminal APP or the user is acquired.
  • At least one attribute herein may be a geographical location (latitude and longitude) of the user terminal associated with the user terminal and the city, a search box service type related to the user terminal APP, and a user query related to the user. Time and so on. These attributes can be represented by fields, respectively.
  • the specific attribute that the user terminal APP transmits to the server is related to the search box service type, and details are not described herein again.
  • the APP may obtain the attribute data through a specific application, for example, obtaining the geographic location of the user terminal by using the positioning application.
  • the attributes related to the APP can be obtained through the settings of the APP itself. For example, by setting a field for the search box of each service to define the search box service type, the corresponding service type is directly obtained from the search box.
  • the attributes related to the user different acquisition methods can be used according to different attributes. For example, the user query time can be obtained from the clock in the APP, and for example, for some personal characteristics of the user, the acquisition can be received from the server.
  • step S53 the query content and the at least one first attribute are sent to the server.
  • the user performs this step each time the user performs an input action on the search box, that is, sends the query content and related attributes. For example, when the user inputs “farm”, the APP sends the obtained query “farm” to the server. When the user inputs the "f”, the APP sends the obtained query "farmer” to the server.
  • the search result obtained by the above-described search method is received from the server side.
  • the search results are sorted results.
  • the search results can be reordered in the APP.
  • the sorting plugin can also be included in the APP for setting the sorting method corresponding to different services.
  • the ranking method is based on some sorting methods in the search instance, for example based on some user feature parameters, based on some more complex sorting models. For example, for the user's query in the word-of-mouth business, the APP may obtain the user-related consumption-related image features, such as age, gender, consumption preference, and spending power, from the server-side database, and according to the user's portrait features and corresponding ranking methods.
  • the corresponding service is a global service, that is, all services included in the APP, which also have a sorting method corresponding thereto.
  • global scores are calculated for the terms in each service according to the corresponding sorting method, and each business term in the APP is sorted according to the global score.
  • step S55 the search result is displayed at a drop-down prompt position of the search box.
  • the drop-down prompt position of the search box is generally below the search box. You can set the number of entries in the drop-down prompt, or the number of pages, so that the above sorting result is intercepted from the beginning according to the number of pages or the number of pages.
  • attributes such as the number of results, distance, address, and the like of the entry may also be displayed in the drop-down prompt.
  • Fig. 6 is a schematic view showing the effect of a pull-down prompt according to an embodiment of the present specification.
  • the search box is a search box set in the word-of-mouth business, and the query content input by the user is “farmer”.
  • the drop-down prompt for the word include the number of results, distance, address and other attributes.
  • FIG. 7 illustrates an apparatus 700 for establishing a drop down hint index.
  • the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP.
  • the device 700 is implemented on the server side, and includes: an entry obtaining unit 71, configured to acquire a plurality of terms for a pull-down prompt for each service in the user terminal APP; and the attribute obtaining unit 72 is configured to acquire At least one attribute of each term; a prefix index establishing unit 73 configured to establish a prefix index, wherein the prefix index includes an inverted index of each term prefix to itself; and an attribute index establishing unit 74, configured To establish an attribute index, wherein the attribute index includes an index between each term and its respective attribute.
  • the attribute index establishing unit 74 is further configured to establish a positive index of the first entry to its first attribute.
  • the attribute index establishing unit 74 is further configured to establish an inverted index of the second attribute of the second term to the second term.
  • the prefix index establishing unit 73 is further configured to establish a prefix index offline; and the attribute index establishing unit 74 is further configured to establish an attribute index offline.
  • the attribute index establishing unit 74 is further configured to set a plurality of word sub-documents for the first term, respectively, to establish the first A term to a positive index of the first attribute in a different city.
  • the prefix index establishing unit 73 is further configured to acquire a maximum semantic granularity word included in the third entry, and establish the maximum semantic granularity word and The respective prefixes are indexed to the inverted index of the third term.
  • FIG. 8 shows a search device 800 for a pull-down prompt.
  • the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP.
  • the device 800 is implemented on the server side, and includes: a query content receiving unit 81, configured to receive the query content input by the user in the search box from the user terminal APP, and the attribute receiving unit 82 is configured to receive the user from the user terminal APP.
  • At least one attribute related to the terminal, the user terminal APP or the user; the obtaining unit 83 is configured to acquire a search condition of the service corresponding to the search box; the first searching unit 84 is configured to obtain the method according to the foregoing method for establishing an index a prefix index, searching for a plurality of terms corresponding to the query content; and a second search unit 85 configured to, according to the search condition and the at least one attribute, an attribute index obtained by the method of establishing an index according to the foregoing And filtering the plurality of terms to obtain search results.
  • the searching apparatus 800 further includes a sorting unit configured to acquire a sorting method of the service corresponding to the search box after obtaining the search result; and sort the search result by the sorting method .
  • FIG. 9 shows a pull down prompting device 900.
  • the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP.
  • the device 900 is implemented in the user terminal APP, and includes: a query content obtaining unit 91 configured to acquire the query content input by the user in the search box; the attribute obtaining unit 92 is configured to acquire the user terminal, the user terminal APP, or The at least one first attribute related to the user; the sending unit 93 is configured to send the query content and the at least one first attribute to the server end; and the receiving unit 94 is configured to receive from the server end according to the searching method according to the foregoing The obtained search result; and the display unit 95 is configured to display the search result at a drop-down prompt position of the search box.
  • the pull-down prompting apparatus 900 further includes a sorting unit configured to acquire at least one second attribute related to the user after receiving the search result obtained according to the above-mentioned search method from the server end, and obtain the Searching for a sorting method of the business corresponding to the box, and sorting the search results by the sorting method according to the at least one second attribute.
  • a sorting unit configured to acquire at least one second attribute related to the user after receiving the search result obtained according to the above-mentioned search method from the server end, and obtain the Searching for a sorting method of the business corresponding to the box, and sorting the search results by the sorting method according to the at least one second attribute.
  • a plurality of search conditions prefix recall, geographical location, and other filtering conditions
  • a flexible sorting strategy can be better supported by implementing a pull-down prompting system using a technique in a search engine.
  • a set of universal drop-down prompt system supports multiple pull-down prompt services, wherein only one drop-down hint index data is needed, and the flexibility of the service is supported by the sub-document and the sorting plug-in scheme. This saves labor and resource costs, improves iteration efficiency, and is flexible enough to support different performance needs of different services.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein may be implemented in hardware, in a software module in a processor orbit, or in a combination of the two.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Abstract

A drop-down suggestion index establishment method and device, a search method and device applied to a dropdown suggestion list, and a dropdown suggestion method and device. The drop-down suggestion index establishment method is executed at a server end, and comprises: acquiring a plurality of entries for a drop-down suggestion list of each service in an app of a user terminal (S21); acquiring at least one attribute of each entry (S22); establishing a prefix index (S23), wherein the prefix index comprises an inverted index from a prefix of a given entry to the given entry; and establishing an attribute index (S24), wherein the attribute index comprises an index between each entry and each attribute thereof.

Description

下拉提示Drop down prompt
相关申请的交叉引用Cross-reference to related applications
本专利申请要求于2018年3月21日提交的、申请号为201810235411.7、发明名称为“一种下拉提示方法和装置”的中国专利申请的优先权,该申请的全文以引用的方式并入本文中。The present application claims priority to Chinese Patent Application No. 20110123541, filed on March 21, 20, the entire disclosure of which is incorporated herein by reference. in.
技术领域Technical field
本说明书实施例涉及搜索引擎领域,更具体地,涉及一种建立下拉提示索引的方法、以及在服务器端和用户终端APP端的用于下拉提示的方法和装置。The embodiments of the present specification relate to the field of search engines, and more particularly, to a method for establishing a pull-down prompt index, and a method and apparatus for a pull-down prompt on a server side and a user terminal APP end.
背景技术Background technique
在用户终端APP的应用中,通常会设置对应于各个业务的多个搜索框。当用户在搜索框中输入查询内容时,一般会对用户显示下拉提示词条。目前下拉提示的技术方案主要包括:基于trie树的下拉提示系统、以及加载多份不同的下拉提示索引以支持多个业务的下拉提示系统。然而,随着业务的更新,出现了对下拉提示的新的要求。例如,在O2O等新业务场景中,需要同时使用地理位置等其他复杂的召回和过滤条件,以及复杂的排序策略。因此,需要一种更有效的下拉提示方案。In the application of the user terminal APP, a plurality of search boxes corresponding to respective services are usually set. When the user enters the query content in the search box, the user usually displays a drop-down prompt entry. The technical solutions of the current drop-down prompt mainly include: a pull-down prompt system based on the trie tree, and a drop-down prompt system for loading multiple different drop-down prompt indexes to support multiple services. However, as the business is updated, new requirements for drop-down prompts have emerged. For example, in new business scenarios such as O2O, it is necessary to use other complex recall and filtering conditions such as geographic location, as well as complex sorting strategies. Therefore, a more effective pull-down reminder scheme is needed.
发明内容Summary of the invention
本说明书实施例旨在提供一种更有效的下拉提示方法,以解决现有技术中的不足。The embodiments of the present specification aim to provide a more effective pull-down prompting method to solve the deficiencies in the prior art.
为实现上述目的,本说明书一个方面提供一种建立下拉提示索引的方法,所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中,所述方法在服务器端执行,包括:获取所述用户终端APP中每个业务的用于下拉提示的多个词条;获取每个词条的至少一个属性;建立前缀索引,其中,所述前缀索引包括每个词条的前缀到其自身的倒排索引;以及建立属性索引,其中所述属性索引包括每个词条与其各个属性之间的索引。To achieve the above objective, an aspect of the present specification provides a method for establishing a pull-down prompt index, where the pull-down prompt is used for at least one search box included in a user terminal APP, and each search box is set to a corresponding service in the APP. The method is performed on the server side, including: acquiring a plurality of terms for a pull-down prompt for each service in the user terminal APP; acquiring at least one attribute of each entry; establishing a prefix index, where The prefix index includes an inverted index of each term's prefix to itself; and an attribute index is established, wherein the attribute index includes an index between each term and its respective attribute.
在一个实施例中,在上述建立下拉提示索引的方法中,所述至少一个属性包括以下至少一个:业务类型、查询次数、结果数、点击次数、点击通过率、地理位置、城市以及地 址。In one embodiment, in the method for establishing a pull-down prompt index, the at least one attribute includes at least one of the following: a service type, a number of queries, a number of results, a number of clicks, a click-through rate, a geographic location, a city, and an address.
在一个实施例中,在上述建立下拉提示索引的方法中,所述建立属性索引包括,建立第一词条到其第一属性的正排索引。In an embodiment, in the method for establishing a pull-down hint index, the establishing an attribute index includes establishing a positive index of the first entry to the first attribute thereof.
在一个实施例中,在上述建立下拉提示索引的方法中,所述建立属性索引包括,建立第二词条的第二属性到第二词条的倒排索引。In an embodiment, in the foregoing method for establishing a drop-down hint index, the establishing an attribute index includes establishing an inverted index of the second attribute of the second term to the second term.
在一个实施例中,在上述建立下拉提示索引的方法中,所述建立前缀索引包括离线建立前缀索引;以及所述建立属性索引包括离线建立属性索引。In an embodiment, in the foregoing method for establishing a pull-down hint index, the establishing a prefix index includes establishing a prefix index offline; and the establishing the attribute index includes establishing an attribute index offline.
在一个实施例中,在上述建立下拉提示索引的方法中,所述建立第一词条到其第一属性的正排索引包括,对所述第一词条设置多个词条子文档,用于分别建立所述第一词条到在不同城市的第一属性的正排索引。In an embodiment, in the method for establishing a pull-down prompt index, the establishing a first entry to a positive index of the first attribute includes: setting a plurality of word sub-documents for the first entry, The first entry to the positive index of the first attribute in different cities is respectively established.
在一个实施例中,在上述建立下拉提示索引的方法中,所述建立前缀索引包括,获取第三词条包括的最大语义粒度词,以及建立所述最大语义粒度词及其各自的前缀到所述第三词条的倒排索引。In an embodiment, in the method for establishing a pull-down hint index, the establishing a prefix index includes: acquiring a maximum semantic granularity word included in the third entry, and establishing the maximum semantic granularity word and its respective prefix to the The inverted index of the third term.
本说明书另一方面提供一种用于下拉提示的搜索方法,所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中,所述方法在服务器端执行,包括:从用户终端APP接收用户在搜索框中输入的查询内容;从用户终端APP接收与用户终端、用户终端APP或用户相关的至少一个属性;获取与所述搜索框对应的业务的搜索条件;通过根据上述建立索引的方法获得的前缀索引,搜索出与该查询内容对应的多个词条;以及根据所述搜索条件和所述至少一个属性,通过根据上述建立索引的方法获得的属性索引,对所述多个词条进行过滤,从而获得搜索结果。The other aspect of the present specification provides a search method for a pull-down prompt, where the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP. The method is performed on the server side, including: receiving, from the user terminal APP, the query content input by the user in the search box; receiving at least one attribute related to the user terminal, the user terminal APP, or the user from the user terminal APP; acquiring the search box with the search box a search condition of the corresponding service; searching for a plurality of terms corresponding to the query content by using the prefix index obtained by the method for indexing as described above; and establishing an index according to the above according to the search condition and the at least one attribute The method obtains an attribute index, and filters the plurality of terms to obtain a search result.
在一个实施例中,所述用于下拉提示的搜索方法还包括,在获得搜索结果之后,获取与所述搜索框对应的业务的排序方法;以及通过所述排序方法对所述搜索结果进行排序。In an embodiment, the search method for the pull-down prompt further includes: after obtaining the search result, acquiring a sorting method of the service corresponding to the search box; and sorting the search result by the sorting method .
在一个实施例中,在上述用于下拉提示的搜索方法中,所述至少一个属性包括以下至少一个:搜索框业务类型、用户终端地理位置、用户终端城市和用户查询时间。In an embodiment, in the above search method for the pull-down prompt, the at least one attribute includes at least one of the following: a search box service type, a user terminal geographic location, a user terminal city, and a user query time.
在一个实施例中,在上述用于下拉提示的搜索方法中,根据所述搜索条件和所述至少一个属性,通过根据上述建立索引的方法获得的属性索引,对所述多个词条进行过滤包括:根据将词条业务类型限定为所述搜索框业务类型的搜索条件,过滤掉不属于所述搜索框业务类型的词条。In an embodiment, in the above search method for a pull-down prompt, filtering the plurality of terms according to the search condition and the at least one attribute by using an attribute index obtained according to the method for establishing an index. The method includes: filtering out the entry that does not belong to the search box service type according to the search condition that defines the entry service type as the search box service type.
本说明书另一方面提供一种下拉提示方法,所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中,所述方法在用户终端APP中执行,包括:获取用户在搜索框中输入的查询内容;获取与用户终端、用户终端APP或用户相关的至少一个第一属性;将所述查询内容和所述至少一个第一属性发送给服务器端;从服务器端接收通过根据上述搜索方法获得的搜索结果;以及在所述搜索框的下拉提示位置显示所述搜索结果。Another aspect of the present specification provides a drop-down prompting method for at least one search box included in a user terminal APP, where each search box is set in a corresponding service in the APP, and the method is in a user. Executing in the terminal APP, including: acquiring the query content input by the user in the search box; acquiring at least one first attribute related to the user terminal, the user terminal APP, or the user; sending the query content and the at least one first attribute Giving the server side; receiving, from the server side, the search result obtained by the search method according to the above; and displaying the search result at the drop-down prompt position of the search box.
在一个实施例中,所述下拉提示方法还包括,在从服务器端接收通过根据上述搜索方法获得的搜索结果之后,获取与用户相关的至少一个第二属性,获取与所述搜索框对应的业务的排序方法,以及,根据所述至少一个第二属性,通过所述排序方法对所述搜索结果进行排序。In an embodiment, the pull-down prompting method further includes: after receiving the search result obtained by the searching method according to the foregoing search method, acquiring at least one second attribute related to the user, and acquiring a service corresponding to the search box. a sorting method, and sorting the search results by the sorting method according to the at least one second attribute.
在一个实施例中,在上述下拉提示方法中,所述至少一个第二属性包括以下至少一个:用户年龄、性别、消费偏好以及消费能力。In one embodiment, in the above-described pull-down prompting method, the at least one second attribute includes at least one of the following: user age, gender, consumption preference, and spending power.
本说明书另一方面提供一种建立下拉提示索引的装置,所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中,所述装置在服务器端实施,包括:词条获取单元,配置为,获取所述用户终端APP中每个业务的用于下拉提示的多个词条;属性获取单元,配置为,获取每个词条的至少一个属性;前缀索引建立单元,配置为,建立前缀索引,其中所述前缀索引包括每个词条的前缀到其自身的倒排索引;以及属性索引建立单元,配置为,建立属性索引,其中所述属性索引包括每个词条与其各个属性之间的索引。The other aspect of the present disclosure provides an apparatus for establishing a pull-down prompt index, where the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP, The device is implemented on the server side, and includes: an entry obtaining unit, configured to acquire a plurality of terms for a pull-down prompt for each service in the user terminal APP; and an attribute obtaining unit configured to acquire each entry At least one attribute; a prefix index establishing unit configured to: establish a prefix index, wherein the prefix index includes an inverted index of each term prefix to itself; and an attribute index establishing unit configured to establish an attribute index, wherein The attribute index includes an index between each term and its respective attributes.
本说明书另一方面提供一种用于下拉提示的搜索装置,所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中,所述装置在服务器端实施,包括:查询内容接收单元,配置为,从用户终端APP接收用户在搜索框中输入的查询内容;属性接收单元,配置为,从用户终端APP接收与用户终端、用户终端APP或用户相关的至少一个属性;获取单元,配置为,获取与所述搜索框对应的业务的搜索条件;The other aspect of the present specification provides a search device for a pull-down prompt, where the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP. The device is implemented on the server side, and includes: a query content receiving unit, configured to receive, from the user terminal APP, the query content input by the user in the search box; the attribute receiving unit is configured to receive the user terminal and the user terminal from the user terminal APP At least one attribute related to the APP or the user; the obtaining unit is configured to acquire a search condition of the service corresponding to the search box;
第一搜索单元,配置为,通过根据上述建立索引的方法获得的前缀索引,搜索出与该查询内容对应的多个词条;以及第二搜索单元,配置为,根据所述搜索条件和所述至少一个属性,通过根据上述建立索引的方法获得的属性索引,对所述多个词条进行过滤,从而获得搜索结果。a first search unit configured to: search for a plurality of terms corresponding to the query content by using a prefix index obtained by the method for indexing; and a second search unit configured to: according to the search condition and the At least one attribute, the plurality of terms are filtered by an attribute index obtained according to the method for indexing as described above, thereby obtaining a search result.
本说明书另一方面提供一种下拉提示装置,所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中,所述装置在用户终端APP中实施,包括:查询内容获取单元,配置为,获取用户在搜索框中输入的查询内容;属性获取单元,配置为,获取与用户终端、用户终端APP或用户相关的至少一个第一属性;发送单元,配置为,将所述查询内容和所述至少一个第一属性发送给服务器端;接收单元,配置为,从服务器端接收通过根据上述搜索方法获得的搜索结果;以及显示单元,配置为,在所述搜索框的下拉提示位置显示所述搜索结果。The other aspect of the present specification provides a pull-down prompting device, where the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP, and the device is in the user. The implementation in the terminal APP includes: a query content obtaining unit configured to acquire the query content input by the user in the search box; and an attribute obtaining unit configured to acquire at least one first attribute related to the user terminal, the user terminal APP, or the user a sending unit configured to: send the query content and the at least one first attribute to a server; the receiving unit is configured to receive, from the server, a search result obtained by the searching method according to the foregoing search method; and a display unit, configured The search result is displayed at a drop-down prompt position of the search box.
通过根据本说明书实施例的下拉提示方案,通过使用搜索引擎中的技术实现下拉提示系统,并且通过一套通用下拉提示系统支持多个下拉提示业务,节省了人力和资源成本,提高了迭代效率,并且有足够的灵活性,可以支持不同业务的不同效果需求。Through the pull-down prompting scheme according to the embodiment of the present specification, the pull-down prompting system is implemented by using the technology in the search engine, and the plurality of pull-down prompting services are supported by a set of universal pull-down prompting system, thereby saving labor and resource costs and improving the iterative efficiency. And there is enough flexibility to support different performance needs of different businesses.
附图说明DRAWINGS
通过结合附图描述本说明书实施例,可以使得本说明书实施例更加清楚:The embodiments of the present specification can be more clearly understood by describing the embodiments of the specification with reference to the accompanying drawings:
图1示出了根据本说明书实施例的下拉提示系统示意图;1 shows a schematic diagram of a pull-down prompt system in accordance with an embodiment of the present specification;
图2示出了一种建立下拉提示索引的方法;Figure 2 illustrates a method of establishing a drop-down hint index;
图3示出了根据本说明书实施例的一种用于下拉提示的搜索方法;FIG. 3 illustrates a search method for a pull-down prompt according to an embodiment of the present specification;
图4示意示出搜索过程;Figure 4 schematically illustrates a search process;
图5示出了一种下拉提示方法;Figure 5 shows a drop down prompt method;
图6示意示出了根据本说明书实施例的下拉提示效果示意图;FIG. 6 is a schematic view showing a pull-down prompt effect according to an embodiment of the present specification; FIG.
图7示出了一种建立下拉提示索引的装置700;Figure 7 shows an apparatus 700 for establishing a pull-down hint index;
图8示出一种用于下拉提示的搜索装置800;以及Figure 8 illustrates a search device 800 for a pull-down prompt;
图9示出了一种下拉提示装置900。FIG. 9 shows a pull down prompting device 900.
具体实施方式detailed description
下面将结合附图描述本说明书实施例。Embodiments of the present specification will be described below with reference to the drawings.
图1示出了根据本说明书实施例的下拉提示系统示意图。如图中所示,系统包括客户端(101、102、103)和服务器端104。客户端可以是用户终端APP,在APP中可能包括 至少一个搜索框,不同的搜索框对应于不同的业务。例如,客户端101在使用对应于APP中的业务1的搜索框,客户端102在使用对应于APP中的业务2的搜索框,以及客户端103在使用对应于APP中的业务3的搜索框。FIG. 1 shows a schematic diagram of a pull-down prompt system in accordance with an embodiment of the present specification. As shown in the figure, the system includes a client (101, 102, 103) and a server 104. The client may be a user terminal APP, and may include at least one search box in the APP, and different search boxes correspond to different services. For example, the client 101 is using a search box corresponding to the service 1 in the APP, the client 102 is using a search box corresponding to the service 2 in the APP, and the client 103 is using the search box corresponding to the service 3 in the APP. .
根据本说明书实施例的下拉提示系统通过服务器端104中的搜索实例11提供下拉提示服务。搜索实例11包括前缀索引111、属性索引112以及排序插件113。其中,前缀索引是指词条中包括的前缀字或词或其拼音到该词条的倒排索引,前缀索引111中包括APP中全部业务的词条。所述属性索引包括每个词条与其各个属性之间的索引。当用户在搜索框中输入搜索内容时,客户端(101、102、103)将查询内容及与用户终端、用户终端APP以及用户相关的属性通过网络一起发送给服务器端104。在APP中包括多个搜索框的情况中,上述相关属性中包括业务类型,通过用户输入的搜索框所在的业务确定业务类型。在服务器端104接收到查询内容和相关属性之后,服务器端104获取对业务类型设置的搜索条件,并将其与查询内容和相关属性一起传送给搜索实例11。搜索实例11根据前缀索引111搜索出与查询内容相关的词条,根据属性索引112,并依据搜索条件,对搜索出的词条进行过滤,从而获得搜索结果。例如,搜索条件中包括只搜索本业务类型的词条,从而根据词条与业务类型属性之间的索引,将不属于该业务类型的词条过滤出去。搜索实例11还包括排序插件113,排序插件113中设置有适用于各个业务的排序方法,从而以对应于业务类型的排序方法对搜索结果进行排序。服务器端104中还包括数据库12,其中存储有各个业务的词条及与词条相关的属性,搜索实例11通过从数据库12获取数据,建立前缀索引111和属性索引112。The pull-down prompting system according to an embodiment of the present specification provides a pull-down prompt service through the search instance 11 in the server side 104. The search instance 11 includes a prefix index 111, an attribute index 112, and a sorting plug-in 113. The prefix index refers to a prefix word or a word included in the entry or a pinyin index of the pinyin to the term, and the prefix index 111 includes a term of all services in the APP. The attribute index includes an index between each term and its respective attributes. When the user inputs the search content in the search box, the client (101, 102, 103) sends the query content and the attributes related to the user terminal, the user terminal APP, and the user to the server 104 through the network. In the case where the search box includes multiple search boxes, the above related attributes include the service type, and the service type is determined by the service in which the search box input by the user is located. After the server side 104 receives the query content and related attributes, the server side 104 acquires the search condition set for the service type and transmits it to the search instance 11 along with the query content and related attributes. The search instance 11 searches for the terms related to the query content according to the prefix index 111, and filters the searched terms according to the attribute index 112 according to the search condition, thereby obtaining the search result. For example, the search condition includes searching only the terms of the business type, so that the entries that do not belong to the business type are filtered out according to the index between the terms and the business type attribute. The search example 11 further includes a sorting plug-in 113 in which a sorting method suitable for each service is set, thereby sorting the search results in a sorting method corresponding to the business type. The server side 104 further includes a database 12 in which entries of respective services and attributes related to the terms are stored, and the search instance 11 establishes a prefix index 111 and an attribute index 112 by acquiring data from the database 12.
下面结合实例描述根据本说明书的下拉提示系统。The pull-down prompt system according to the present specification will be described below with reference to examples.
图2示出了一种建立下拉提示索引的方法。所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中。所述方法在服务器端执行,更具体地,如图1所示,在服务器端104的搜索实例11中执行。所述方法包括以下步骤:在步骤S21,获取所述用户终端APP中每个业务的用于下拉提示的多个词条;在步骤S22,获取每个词条的至少一个属性;在步骤S23,建立前缀索引,其中,所述前缀索引包括每个词条的前缀到其自身的倒排索引;以及在步骤S24,建立属性索引,其中所述属性索引包括每个词条与其各个属性之间的索引。Figure 2 illustrates a method of establishing a drop-down hint index. The pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP. The method is performed on the server side, more specifically, as shown in FIG. 1, in the search instance 11 of the server side 104. The method includes the following steps: in step S21, acquiring a plurality of terms for a pull-down prompt for each service in the user terminal APP; and acquiring at least one attribute of each entry in step S22; Establishing a prefix index, wherein the prefix index includes an inverted index of each term prefix to itself; and in step S24, establishing an attribute index, wherein the attribute index includes between each term and each attribute thereof index.
首先,在步骤S21,获取所述用户终端APP中每个业务的用于下拉提示的多个词条。例如,在支付宝APP中,包括口碑业务、财富业务等。其中每个业务都在服务器端包括对 应的数据库,用于存储与业务相关的数据,这些数据中的一些数据可以用作下拉提示的词条。例如,在口碑业务中,与业务相关的数据包括业务类型、店铺名、菜名、店铺地址、店铺地理位置、点击次数、查询次数等。其中,店铺名和菜名可用作下拉提示的词条。例如,在财富业务中,基金名可用作下拉提示的词条。从而,搜索实例11通过读取数据库12,可获取各个业务中可用于下拉提示的词条。First, in step S21, a plurality of terms for a pull-down prompt for each service in the user terminal APP are acquired. For example, in Alipay APP, including word of mouth business, wealth business, and so on. Each of these services includes a corresponding database on the server side for storing business-related data, some of which can be used as entries for drop-down prompts. For example, in the word-of-mouth business, business-related data includes business type, store name, dish name, store address, store location, number of clicks, number of queries, and the like. Among them, the store name and the dish name can be used as entries for the drop-down prompt. For example, in the wealth business, the fund name can be used as a drop-down prompt. Thus, by reading the database 12, the search instance 11 can obtain terms that can be used for pull-down prompts in each service.
在步骤S22,获取每个词条的至少一个属性。不同业务的词条具有与业务对应的属性。例如,口碑业务的词条包括的属性有:业务类型(口碑)、店铺地址、店铺地理位置、城市、结果数、点击次数、点击通过率、查询次数等。财富业务包括的属性有:业务类型(财富)、结果数、总点击次数、总点击通过率、不同城市的点击次数、不同城市的点击通过率等。可以以不同的字段分别表示这些属性。例如,以字段“type”表示业务类型。属于口碑业务的词条都包括“type=口碑”的属性。属于财富业务的词条都包括“type=财富”的属性。在这些属性中,有些属性数据是由店铺提交的,如店铺地址、店铺地理位置、城市等,有些属性数据是由服务器端从APP端接收获得的,例如点击次数、查询次数等。服务器端将这些属性与词条关联地存储在数据库12中,从而搜索实例11可通过读取数据库12,获取每个词条的至少一个属性。At step S22, at least one attribute of each vocabulary is obtained. Terms of different business have attributes corresponding to the business. For example, the terms of the word-of-mouth business include: business type (word of mouth), store address, store location, city, number of results, number of clicks, click-through rate, number of queries, and so on. The wealth business includes attributes such as business type (wealth), number of results, total clicks, total click-through rate, number of clicks in different cities, and click-through rates in different cities. These attributes can be represented separately in different fields. For example, the service type is represented by the field "type". The terms that belong to the word-of-mouth business include the attributes of "type=word of mouth". The terms belonging to the wealth business include the attributes of "type= wealth". Among these attributes, some attribute data are submitted by the store, such as shop address, store location, city, etc. Some attribute data is received by the server from the APP, such as the number of clicks, the number of queries, and the like. The server side stores these attributes in association with the terms in the database 12, so that the search instance 11 can obtain at least one attribute of each entry by reading the database 12.
在步骤S23,建立前缀索引,其中,所述前缀索引包括每个词条的前缀到其自身的倒排索引。词条的前缀是包括的词条尾字之前的单个字或连续多个字。例如,词条“农夫山泉”的前缀包括“农”、“农夫”、“农夫山”、“夫”、“夫山”和“山”。从而可以获取“农”、“农夫”、“农夫山”、“夫”、“夫山”和“山”到“农夫山泉”的倒排索引。In step S23, a prefix index is established, wherein the prefix index includes a prefix of each entry to its own inverted index. The prefix of the entry is a single word or multiple consecutive words before the end of the included term. For example, the prefix "Nongfu Spring" includes "farm", "farmer", "Nongfu Mountain", "Fu", "Fushan" and "Mountain". Thus, the inverted index of "farm", "farmer", "Nongfu Mountain", "Fu", "Fushan" and "Mountain" to "Nongfu Spring" can be obtained.
在获取了APP中全部业务的可用于下拉提示的词条之后,可以如上所述获取这些词条的全部前缀作为索引表中的key,以相应的词条作为索引表中与key对应的值,从而建立全部业务通用的一个前缀索引。在一个实施例中,前缀索引中还包括上述前缀的拼音到词条的索引。After obtaining the entries of all the services in the APP that can be used for the drop-down prompts, all the prefixes of the terms may be obtained as the key in the index table, and the corresponding entry is used as the value corresponding to the key in the index table. Thereby establishing a prefix index common to all services. In one embodiment, the index of the pinyin to term of the above prefix is also included in the prefix index.
在一个实施例中,可以建立词条所包括的最大语义粒度词及其各自的前缀到词条的前缀索引。例如,对于词条“农夫山泉有点甜”,可根据语义词典将其分为“农夫山泉”和“有点甜”两个最大语义粒度词。从而,可以建立“农夫山泉”及其前缀“农”、“农夫”、“农夫山”、“夫”、“夫山”和“山”到“农夫山泉有点甜”的倒排索引,还可以建立“有点甜”及其前缀“有”、“有点”和“点”到“农夫山泉有点甜”的倒排索引。In one embodiment, the maximum semantic granularity word included in the entry and its respective prefix to prefix index of the entry may be established. For example, for the entry "Nongfu Spring is a bit sweet", it can be divided into two largest semantic granular words "Nongfu Spring" and "Slightly Sweet" according to the semantic dictionary. Thus, it is possible to establish an inverted index of "Nongfu Spring" and its prefixes "Nong", "Farmer", "Nongfu Mountain", "Fu", "Foshan" and "Mountain" to "Nongfu Spring". Create an inverted index of "a bit sweet" and its prefixes "Yes", "A bit" and "Point" to "Nongfu Spring is a bit sweet".
在步骤S24,建立属性索引,其中所述属性索引包括每个词条与其各个属性之间的索引。词条与属性之间的索引可以是属性到词条的倒排索引,也可以是词条到属性正排索引。在一个实施例中,建立业务类型到词条的倒排索引。在另一个实施例中,建立地理位置到词条的倒排索引。在另一个实施例中,建立词条到点击次数的正排索引。At step S24, an attribute index is established, wherein the attribute index includes an index between each term and its respective attribute. The index between the term and the attribute can be an inverted index of the attribute to the term, or it can be an index of the item to the attribute. In one embodiment, an inverted index of the business type to the entry is established. In another embodiment, an inverted index of geographic location to entry is established. In another embodiment, a positive index of the entry to the number of clicks is established.
例如,对于口碑业务中的店铺词条可以建立如表1所示的正排索引表。For example, for a store entry in a word-of-mouth business, a positive index table as shown in Table 1 can be created.
Figure PCTCN2019070047-appb-000001
Figure PCTCN2019070047-appb-000001
表1Table 1
而口碑业务中的一个菜名词条可能与多个城市相关。在该情况中,可对该菜名词条设置多个子文档,以分别索引其在不同城市的属性。例如,菜名词条关于属性的正排索引表可以如表2所示。A dish noun in the word-of-mouth business may be related to multiple cities. In this case, a plurality of sub-documents may be set for the dish noun to index their attributes in different cities. For example, the positive index table of the nouns for attributes can be as shown in Table 2.
Figure PCTCN2019070047-appb-000002
Figure PCTCN2019070047-appb-000002
表2Table 2
在一个实施例中,如图1所示,搜索实例11在从服务器端104中的数据库12中获取业务数据之后,在预定时段离线建立前缀索引和属性索引。通常,在每天凌晨2-5点用户较少的时段,进行对索引的离线全量更新。在一个实施例中,搜索实例11在从数据库12获取用户实时更新数据之后,对索引进行实时更新。例如,在口碑业务中,当新增店铺,或者店铺更新菜名时,搜索实例通过订阅店铺信息,可以实时从数据库12获取该店铺更改信息,从而在索引中进行对信息的秒级更新。In one embodiment, as shown in FIG. 1, after the search instance 11 obtains the service data from the database 12 in the server side 104, the prefix index and the attribute index are established offline for a predetermined period of time. Typically, an offline full update of the index is performed at a time when the user is less than 2-5 am every day. In one embodiment, the search instance 11 updates the index in real time after the user real-time update data is retrieved from the database 12. For example, in the word-of-mouth business, when a store is added, or a store updates a dish name, the search instance can obtain the store change information from the database 12 in real time by subscribing to the store information, thereby performing a second-level update of the information in the index.
图3示出了根据本说明书实施例的一种用于下拉提示的搜索方法。所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中。 所述方法在服务器端执行,包括以下步骤:在步骤S31,从用户终端APP接收用户在所述搜索框中输入的查询内容;在步骤S32,从用户终端APP接收与用户终端、用户终端APP或用户相关的至少一个属性;在步骤S33,获取与所述搜索框对应的业务的搜索条件;在步骤S34,通过根据上述建立索引的方法获得的前缀索引,搜索出与该查询内容对应的多个词条;以及在步骤S35,根据所述搜索条件和所述至少一个属性,通过根据上述建立索引的方法获得的属性索引,对所述多个词条进行过滤,从而获得搜索结果。FIG. 3 illustrates a search method for a pull-down prompt in accordance with an embodiment of the present specification. The pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP. The method is performed on the server side, and includes the following steps: receiving, in step S31, the query content input by the user in the search box from the user terminal APP; and receiving, from the user terminal APP, the user terminal, the user terminal APP, or Obtaining at least one attribute related to the user; in step S33, acquiring a search condition of the service corresponding to the search box; and in step S34, searching for a plurality of corresponding to the query content by using the prefix index obtained by the method for establishing an index a term; and in step S35, the plurality of terms are filtered by the attribute index obtained according to the method for indexing according to the search condition and the at least one attribute, thereby obtaining a search result.
首先,在步骤S31,从用户终端APP接收用户在所述搜索框中输入的查询内容。用户在APP中的特定搜索框中输入的查询内容可能是单个字、连续几个字,或者可能是拼音。用户每进行一次输入动作,APP都会将这次输入的内容同步发送给服务器端。First, in step S31, the query content input by the user in the search box is received from the user terminal APP. The query content entered by the user in a specific search box in the APP may be a single word, consecutive words, or may be pinyin. Each time the user performs an input action, the APP will synchronously send the input content to the server.
在步骤S32,从用户终端APP接收与用户终端、用户终端APP或用户相关的至少一个属性。这些属性可以是与用户终端相关的用户终端所在的地理位置(经纬度)和城市、与用户终端APP相关的搜索框业务类型、与用户相关的用户查询时间等。这些属性可以分别以字段表示。服务器端从用户终端APP接收的具体属性与搜索框业务类型相关。例如,当搜索框业务类型为口碑业务时,服务器端从APP端接收搜索框业务类型(口碑)、用户终端所在的地理位置等属性。而当搜索框业务类型为财富业务时,服务器端从APP端接收搜索框业务类型(财富)等属性。其中,业务类型通过用户查询使用的搜索框在APP中的位置确定。例如,用户在支付宝APP中的口碑业务中的搜索框输入查询内容,则搜索框业务类型为“type=口碑”。在一个实施例中,用户在支付宝APP首页的搜索框中进行查询,这里的搜索框业务类型为全局业务,即“type=all”。At step S32, at least one attribute related to the user terminal, the user terminal APP or the user is received from the user terminal APP. These attributes may be the geographic location (latitude and longitude) of the user terminal associated with the user terminal and the city, the search box service type associated with the user terminal APP, the user query time associated with the user, and the like. These attributes can be represented by fields, respectively. The specific attribute received by the server from the user terminal APP is related to the search box service type. For example, when the search box service type is a word-of-mouth service, the server receives the search box service type (word-of-mouth) and the geographic location where the user terminal is located from the APP. When the search box service type is a wealth service, the server side receives the search box service type (wealth) and other attributes from the APP end. The service type is determined by the location of the search box used by the user query in the APP. For example, if the user inputs the query content in the search box in the word-of-mouth business in the Alipay APP, the search box service type is “type=word of mouth”. In one embodiment, the user queries in the search box of the Alipay APP homepage, where the search box service type is global service, that is, "type=all".
在步骤S33,获取与所述搜索框对应的业务的搜索条件。对于不同的业务,设置有相应的搜索条件。例如,对于口碑业务来说,搜索条件可能包括:业务类型为“口碑”,到用户终端距离在预定距离之内等。对于财富业务,搜索条件可能包括产品的风险等级在预定级别等。对于全局业务,其对应的搜索条件为APP包括的各个业务的全部搜索条件。这些搜索条件可以设置在服务器端,服务器端从其自身的存储位置获取与业务类型对应的搜索条件并传送给搜索实例。在一个实施例中,可以在用户终端APP中设置所述搜索条件,服务器端根据搜索框业务类型从APP接收对应的搜索条件,并将其传送给搜索实例。In step S33, a search condition of a service corresponding to the search box is acquired. For different businesses, there are corresponding search conditions. For example, for the word-of-mouth business, the search conditions may include: the service type is "word of mouth", the distance to the user terminal is within a predetermined distance, and the like. For wealth business, search criteria may include the risk level of the product at a predetermined level. For global services, the corresponding search conditions are all search conditions of each service included in the APP. These search conditions can be set on the server side, and the server side obtains the search condition corresponding to the service type from its own storage location and transmits it to the search instance. In one embodiment, the search condition may be set in the user terminal APP, and the server receives the corresponding search condition from the APP according to the search box service type and transmits it to the search instance.
在步骤S34,通过根据上述建立索引的方法获得的前缀索引,搜索出与该查询内容对应的多个词条。例如,在支付宝APP中的一个搜索框中,输入查询内容“阿里”,则根据这里的前缀索引,搜索出的词条可能包括:阿里影业、阿里健康、阿里纳制药、阿里郎、 阿里食府、阿里拌面等。其中“阿里影业、阿里健康、阿里纳制药”是属于财富业务的词条,其中“阿里郎、阿里食府、阿里拌面”是属于口碑业务的词条。In step S34, a plurality of terms corresponding to the query content are searched by the prefix index obtained according to the above method of indexing. For example, in a search box in the Alipay APP, enter the query content "Ali", according to the prefix index here, the search terms may include: Ali Film, Ali Health, Arina Pharmaceutical, Arirang, Ali Food House, Ali noodles, etc. Among them, "Ali Pictures, Ali Health, Arina Pharmaceuticals" is a term belonging to the wealth business. Among them, "Arirang, Ali Restaurant, Ali Noodles" is a term that belongs to the word of mouth business.
在步骤S35,根据所述搜索条件和所述至少一个属性,通过根据上述建立索引的方法获得的属性索引,对所述多个词条进行过滤,从而获得搜索结果。例如,在上一步骤S34中搜索获得多个词条“阿里影业、阿里健康、阿里纳制药、阿里郎、阿里食府、阿里拌面”之后,在用户在财富业务的搜索框中输入查询内容“阿里”的情况中,服务器端从APP接收的至少一个属性中包括:搜索框业务类型type=财富,而财富业务的搜索条件中包括将词条业务类型限定为搜索框业务类型“财富”。从而根据业务类型到词条的倒排索引,搜索出满足业务类型是“财富”的词条。通过取两次搜索的结果的交集,将上述通过前缀索引搜索出的词条中业务类型不是“财富”的词条过滤出去,从而获得搜索结果“阿里影业、阿里健康、阿里纳制药”。In step S35, the plurality of terms are filtered by the attribute index obtained according to the method for establishing an index according to the search condition and the at least one attribute, thereby obtaining a search result. For example, after searching for a plurality of terms "Ali Film, Ali Health, Arina Pharmaceutical, Arirang, Ali Restaurant, Ali Noodle" in the previous step S34, enter the query in the search box of the wealth business. In the case of the content "Ali", at least one attribute received by the server from the APP includes: a search box service type type= wealth, and the search condition of the wealth service includes limiting the entry service type to the search box service type "wealth" . Therefore, according to the inverted index of the business type to the entry, the search for the term that satisfies the business type is "wealth". By taking the intersection of the results of the two searches, the above-mentioned terms whose business types are not "wealth" are searched out by the prefix index search, thereby obtaining the search results "Ali Film, Ali Health, Arina Pharmaceutical".
再例如,用户在口碑业务的搜索框中输入“阿里”,服务器端从APP接收的属性包括搜索框业务类型(口碑)和用户终端的地理位置,获取的与口碑业务对应的搜索条件包括:词条的业务类型为口碑,并且词条的地理位置距离用户终端为五公里之内。在上一步骤S34中搜索获得多个词条“阿里影业、阿里健康、阿里纳制药、阿里郎、阿里食府、阿里拌面”之后,根据口碑业务的搜索条件及业务类型属性和用户地理位置属性,通过业务类型到词条的倒排索引,搜索获得符合“type=口碑”的词条包括“阿里郎、阿里食府、阿里拌面、巴贝拉、巴西烤肉…”,根据地理位置到词条的倒排索引,搜索获得地理位置属性符合距离用户终端为五公里之内词条包括“阿里食府、阿里拌面、巴西烤肉、肯德基、必胜客…”,取前缀索引和上述两种属性索引的索引结果的交集,从而达到对前缀索引结果的过滤,从而获得搜索结果“阿里食府、阿里拌面”。For another example, the user inputs “Ali” in the search box of the word-of-mouth service, and the attributes received by the server from the APP include the search box service type (word of mouth) and the geographic location of the user terminal, and the obtained search conditions corresponding to the word-of-mouth service include: The business type of the article is word of mouth, and the geographical location of the entry is within five kilometers of the user terminal. After searching for a plurality of terms "Ali Film, Ali Health, Arina Pharmaceutical, Arirang, Ali Restaurant, Ali Noodle" in the previous step S34, according to the search conditions of the word-of-mouth business and the business type attribute and user geography The location attribute, through the business type to the inverted index of the entry, the search to obtain the word "type=Word of mouth" includes "Arirang, Ali restaurant, Ali noodles, Barbera, Brazilian barbecue...", according to the geographical location To the inverted index of the entry, the search obtains the geographical location attribute within five kilometers from the user terminal, including “Ali Restaurant, Ali Noodle, Brazilian BBQ, KFC, Pizza Hut...”, taking the prefix index and the above two types. The intersection of the index results of the attribute index, thereby filtering the result of the prefix index, thereby obtaining the search result "Ali Restaurant, Ali Noodle".
在另一个例子中,对于上述搜索结果“阿里食府、阿里拌面”,口碑业务对应的搜索条件中可能还包括:例如,“查询次数超过300次”。从而,根据该搜索条件,并且根据口碑业务中的店铺词条到查询次数属性的正排索引,获取词条“阿里食府”、“阿里拌面”各自的查询次数,并根据查询次数对其进行过滤。In another example, for the above-mentioned search result "Ari Restaurant, Ali Noodle", the search condition corresponding to the word-of-mouth service may further include: for example, "the number of queries exceeds 300 times". Therefore, according to the search condition, and according to the positive index of the store entry to the query number attribute in the word-of-mouth business, the number of queries of the terms “Ali Restaurant” and “Ali Noodle” are obtained, and according to the number of queries Filter.
图4示意示出上述搜索过程,其中为了方便示意表示,在搜索结果中,以大写字母表示属于一个业务类型(例如财富业务)的词条,以小写字母表示属于另一个业务类型(例如口碑业务)的词条。在图4中,搜索实例中包括的前缀索引41、第一属性索引42(例如业务类型索引)、第二属性索引43(例如地理位置索引)都是倒排索引,通过这三个索 引的搜索,可获得其相应的搜索结果{A、B、C、a、b、c}、{a、b、c、d、e}和{b、c、e、f、g}。对三个搜索结果取交集,获得搜索结果{b、c}。在一个实施例中,可能存在与第三属性(例如查询次数)相关的搜索,第三属性索引44可以是正排索引。从而,根据搜索条件和第三属性索引44,对上述搜索结果{b、c}进行进一步正排过滤,从而获得最终的搜索结果,例如{b}。Figure 4 is a view schematically showing the above search process, in which, for the convenience of the schematic representation, in the search results, entries belonging to one business type (for example, wealth business) are represented by capital letters, and belonging to another business type in lowercase letters (for example, word of mouth business) ) the entry. In FIG. 4, the prefix index 41, the first attribute index 42 (eg, the service type index), and the second attribute index 43 (eg, the geographic location index) included in the search instance are all inverted indexes, and the search through the three indexes The corresponding search results {A, B, C, a, b, c}, {a, b, c, d, e} and {b, c, e, f, g} can be obtained. The intersection of the three search results is obtained, and the search results {b, c} are obtained. In one embodiment, there may be a search related to a third attribute (eg, number of queries), and the third attribute index 44 may be a positive index. Thus, based on the search condition and the third attribute index 44, the above search results {b, c} are further positively filtered to obtain a final search result, such as {b}.
在一个实施例中,在上述步骤S35中获得的搜索结果的数量可能非常大,可能有几千个。在该情况中,可以先对该搜索结果进行排序,然后截取排在前面的预定数目(例如500个)的结果发送给用户终端APP。In one embodiment, the number of search results obtained in step S35 above may be very large, possibly several thousand. In this case, the search results may be sorted first, and then the results of the predetermined number (for example, 500) ranked first are transmitted to the user terminal APP.
在一个实施例中,如图1所示,根据本说明书实施例的搜索实例11中包括排序插件113。在排序插件113中针对不同的业务设置有不同的排序方法。搜索实例11在将所述搜索结果发送给所述用户终端APP之前,从排序插件113获取与所述搜索框对应的业务的排序方法,并通过该排序方法对所述搜索结果进行排序。例如,对应于口碑业务中店铺词条的排序方法可以包括:首先根据词条地理位置属性到用户终端的距离进行排序,在该排序的下一层,通过词条查询次数属性进行排序,在下一层,通过词条的点击次数属性进行排序等。而对应于财富业务的词条的排序方法可以包括:根据词条的收益率属性进行排序、根据词条的风险等级属性进行排序、根据词条的点击次数属性进行排序等。In one embodiment, as shown in FIG. 1, a sorting plug-in 113 is included in the search example 11 according to an embodiment of the present specification. There are different sorting methods for the different business settings in the sorting plugin 113. The search instance 11 obtains a sorting method of the service corresponding to the search box from the sorting plug-in 113 before transmitting the search result to the user terminal APP, and sorts the search result by the sorting method. For example, the sorting method corresponding to the store entry in the word-of-mouth business may include: first sorting according to the distance from the geographic location attribute of the entry to the user terminal, and sorting by the attribute of the number of times of the query in the next layer of the sorting, in the next Layers, sorted by the click attribute of the entry, etc. The sorting method of the entry corresponding to the wealth business may include: sorting according to the profit rate attribute of the entry, sorting according to the risk level attribute of the entry, sorting according to the click attribute of the entry, and the like.
图5示出了一种下拉提示方法,所述方法在用户终端APP中执行,所述用户终端APP包括至少一个搜索框,每个搜索框设置于所述APP中的对应业务中。所述方法包括以下步骤:在步骤S51,获取用户在搜索框中输入的查询内容;在步骤S52,获取与用户终端、用户终端APP或用户相关的至少一个属性;在步骤S53,将所述查询内容和所述至少一个第一属性发送给服务器端;在步骤S54,从服务器端接收通过根据上述搜索方法获得的搜索结果;以及在步骤S55,在所述搜索框的下拉提示位置显示所述搜索结果。FIG. 5 shows a pull-down prompting method, which is executed in a user terminal APP, the user terminal APP comprising at least one search box, each search box being arranged in a corresponding service in the APP. The method includes the following steps: in step S51, acquiring query content input by a user in a search box; in step S52, acquiring at least one attribute related to a user terminal, a user terminal APP, or a user; in step S53, the query is performed The content and the at least one first attribute are sent to the server; in step S54, the search result obtained by the search method according to the above search method is received from the server; and in step S55, the search is displayed at the drop-down prompt position of the search box result.
首先,在步骤S51,获取用户在搜索框中输入的查询内容。用户每次对搜索框中进行一次输入动作,APP都会进行该步骤,获取查询内容。例如,用户将要输入“农夫山泉”,当用户输入“农”时,APP获取的查询内容为“农”。当用户再输入“夫”时,APP获取的查询内容为“农夫”。First, in step S51, the query content input by the user in the search box is acquired. Each time the user performs an input action on the search box, the APP performs this step to obtain the query content. For example, the user will input "Nongfu Spring", and when the user inputs "farm", the query content acquired by the APP is "farm". When the user inputs "fu", the query content acquired by the APP is "farmer".
在步骤S52,获取与用户终端、用户终端APP或用户相关的至少一个属性。这里的至少一个属性如上文参考图3中所述,可以是与用户终端相关的用户终端所在的地理位置(经纬度)和城市、与用户终端APP相关的搜索框业务类型、与用户相关的用户查询时间等。 这些属性可以分别以字段表示。同样地,用户终端APP对服务器端传送的具体属性与搜索框业务类型相关,在此不再赘述。对于与用户终端相关的属性,APP可通过具体应用获取这些属性数据,例如,通过定位应用获取用户终端地理位置。对于与APP相关的属性,可通过APP自身的设置获取,例如,通过对各个业务的搜索框设置字段以对搜索框业务类型进行限定,从而直接从搜索框获取其对应的业务类型。对于与用户相关的属性,根据不同的属性可采用不同的获取方法。例如用户查询时间,可从APP中的时钟获取,再例如,对于用户的一些个人特征,可从服务器接收获取。At step S52, at least one attribute related to the user terminal, the user terminal APP or the user is acquired. At least one attribute herein, as described above with reference to FIG. 3, may be a geographical location (latitude and longitude) of the user terminal associated with the user terminal and the city, a search box service type related to the user terminal APP, and a user query related to the user. Time and so on. These attributes can be represented by fields, respectively. Similarly, the specific attribute that the user terminal APP transmits to the server is related to the search box service type, and details are not described herein again. For the attributes related to the user terminal, the APP may obtain the attribute data through a specific application, for example, obtaining the geographic location of the user terminal by using the positioning application. The attributes related to the APP can be obtained through the settings of the APP itself. For example, by setting a field for the search box of each service to define the search box service type, the corresponding service type is directly obtained from the search box. For the attributes related to the user, different acquisition methods can be used according to different attributes. For example, the user query time can be obtained from the clock in the APP, and for example, for some personal characteristics of the user, the acquisition can be received from the server.
在步骤S53,将所述查询内容和所述至少一个第一属性发送给服务器端。与步骤S51对应地,用户每次对搜索框中进行一次输入动作,APP都会进行该步骤,即,发送查询内容及相关属性。例如,当用户输入“农”时,APP将获取的查询内容“农”发送给服务器端。当用户再输入“夫”时,APP将获取的查询内容“农夫”发送给服务器端。In step S53, the query content and the at least one first attribute are sent to the server. Corresponding to step S51, the user performs this step each time the user performs an input action on the search box, that is, sends the query content and related attributes. For example, when the user inputs “farm”, the APP sends the obtained query “farm” to the server. When the user inputs the "f", the APP sends the obtained query "farmer" to the server.
在步骤S54,从服务器端接收通过根据上述搜索方法获得的搜索结果。在一个实施例中,该搜索结果是经过排序的结果。在另一个实施例中,可在APP中对该搜索结果进行二次排序。APP中也可以包括排序插件,以用于设置对应于不同业务的排序方法。该排序方法相比于搜索实例中的排序方法,例如可以基于一些用户特征参数,基于一些更复杂的排序模型。例如,对于用户在口碑业务的查询,APP可以从服务器端的数据库中获取用户的与消费相关的画像特征,例如年龄、性别、消费偏好以及消费能力等,并根据用户的画像特征及对应的排序方法,对从服务器端接收的搜索结果进行进一步排序。再例如,当搜索框位于APP首页时,对应的业务为全局业务,即,APP中包括的全部业务,其也具有与其对应的排序方法。在全局业务中,会依据对应的排序方法对各个业务中的词条计算全局分数,并依据全局分数对APP中的各个业务词条进行排序。At step S54, the search result obtained by the above-described search method is received from the server side. In one embodiment, the search results are sorted results. In another embodiment, the search results can be reordered in the APP. The sorting plugin can also be included in the APP for setting the sorting method corresponding to different services. The ranking method is based on some sorting methods in the search instance, for example based on some user feature parameters, based on some more complex sorting models. For example, for the user's query in the word-of-mouth business, the APP may obtain the user-related consumption-related image features, such as age, gender, consumption preference, and spending power, from the server-side database, and according to the user's portrait features and corresponding ranking methods. , further sorting the search results received from the server. For another example, when the search box is located on the homepage of the APP, the corresponding service is a global service, that is, all services included in the APP, which also have a sorting method corresponding thereto. In the global service, global scores are calculated for the terms in each service according to the corresponding sorting method, and each business term in the APP is sorted according to the global score.
在步骤S55,在所述搜索框的下拉提示位置显示所述搜索结果。在APP中,搜索框的下拉提示位置一般为搜索框的下方。可以设置下拉提示的词条个数、或页数,从而根据个数或页数限定,对上述排序结果从头截取。在一个实施例中,还可以在下拉提示中显示词条的结果数、距离、地址等属性。In step S55, the search result is displayed at a drop-down prompt position of the search box. In the APP, the drop-down prompt position of the search box is generally below the search box. You can set the number of entries in the drop-down prompt, or the number of pages, so that the above sorting result is intercepted from the beginning according to the number of pages or the number of pages. In one embodiment, attributes such as the number of results, distance, address, and the like of the entry may also be displayed in the drop-down prompt.
图6示意示出了根据本说明书实施例的下拉提示效果示意图。其中,搜索框为口碑业务中设置的搜索框,用户输入的查询内容为“农夫”。在对该词的下拉提示中,包括结果数、距离、地址等属性。Fig. 6 is a schematic view showing the effect of a pull-down prompt according to an embodiment of the present specification. The search box is a search box set in the word-of-mouth business, and the query content input by the user is “farmer”. In the drop-down prompt for the word, include the number of results, distance, address and other attributes.
图7示出了一种建立下拉提示索引的装置700。所述下拉提示用于用户终端APP中所 包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中。所述装置700在服务器端实施,包括:词条获取单元71,配置为,获取所述用户终端APP中每个业务的用于下拉提示的多个词条;属性获取单元72,配置为,获取每个词条的至少一个属性;前缀索引建立单元73,配置为,建立前缀索引,其中所述前缀索引包括每个词条的前缀到其自身的倒排索引;以及属性索引建立单元74,配置为,建立属性索引,其中所述属性索引包括每个词条与其各个属性之间的索引。FIG. 7 illustrates an apparatus 700 for establishing a drop down hint index. The pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP. The device 700 is implemented on the server side, and includes: an entry obtaining unit 71, configured to acquire a plurality of terms for a pull-down prompt for each service in the user terminal APP; and the attribute obtaining unit 72 is configured to acquire At least one attribute of each term; a prefix index establishing unit 73 configured to establish a prefix index, wherein the prefix index includes an inverted index of each term prefix to itself; and an attribute index establishing unit 74, configured To establish an attribute index, wherein the attribute index includes an index between each term and its respective attribute.
在一个实施例中,在所述建立下拉提示索引的装置中,所述属性索引建立单元74还配置为,建立第一词条到其第一属性的正排索引。In one embodiment, in the means for establishing a pull-down hint index, the attribute index establishing unit 74 is further configured to establish a positive index of the first entry to its first attribute.
在一个实施例中,在所述建立下拉提示索引的装置中,所述属性索引建立单元74还配置为,建立第二词条的第二属性到第二词条的倒排索引。In one embodiment, in the means for establishing a pull-down hint index, the attribute index establishing unit 74 is further configured to establish an inverted index of the second attribute of the second term to the second term.
在一个实施例中,在所述建立下拉提示索引的装置中,所述前缀索引建立单元73还配置为离线建立前缀索引;以及所述属性索引建立单元74还配置为离线建立属性索引。In one embodiment, in the means for establishing a pull-down hint index, the prefix index establishing unit 73 is further configured to establish a prefix index offline; and the attribute index establishing unit 74 is further configured to establish an attribute index offline.
在一个实施例中,在所述建立下拉提示索引的装置中,所述属性索引建立单元74还配置为,对所述第一词条设置多个词条子文档,用于分别建立所述第一词条到在不同城市的第一属性的正排索引。In an embodiment, in the device for establishing a pull-down prompt index, the attribute index establishing unit 74 is further configured to set a plurality of word sub-documents for the first term, respectively, to establish the first A term to a positive index of the first attribute in a different city.
在一个实施例中,在所述建立下拉提示索引的装置中,所述前缀索引建立单元73还配置为,获取第三词条包括的最大语义粒度词,以及建立所述最大语义粒度词及其各自的前缀到所述第三词条的倒排索引。In an embodiment, in the apparatus for establishing a pull-down prompt index, the prefix index establishing unit 73 is further configured to acquire a maximum semantic granularity word included in the third entry, and establish the maximum semantic granularity word and The respective prefixes are indexed to the inverted index of the third term.
图8示出一种用于下拉提示的搜索装置800。所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中。所述装置800在服务器端实施,包括:查询内容接收单元81,配置为,从用户终端APP接收用户在搜索框中输入的查询内容;属性接收单元82,配置为,从用户终端APP接收与用户终端、用户终端APP或用户相关的至少一个属性;获取单元83,配置为,获取与所述搜索框对应的业务的搜索条件;第一搜索单元84,配置为,通过根据上述建立索引的方法获得的前缀索引,搜索出与该查询内容对应的多个词条;以及第二搜索单元85,配置为,根据所述搜索条件和所述至少一个属性,通过根据上述建立索引的方法获得的属性索引,对所述多个词条进行过滤,从而获得搜索结果。FIG. 8 shows a search device 800 for a pull-down prompt. The pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP. The device 800 is implemented on the server side, and includes: a query content receiving unit 81, configured to receive the query content input by the user in the search box from the user terminal APP, and the attribute receiving unit 82 is configured to receive the user from the user terminal APP. At least one attribute related to the terminal, the user terminal APP or the user; the obtaining unit 83 is configured to acquire a search condition of the service corresponding to the search box; the first searching unit 84 is configured to obtain the method according to the foregoing method for establishing an index a prefix index, searching for a plurality of terms corresponding to the query content; and a second search unit 85 configured to, according to the search condition and the at least one attribute, an attribute index obtained by the method of establishing an index according to the foregoing And filtering the plurality of terms to obtain search results.
在一个实施例中,上述搜索装置800还包括排序单元,配置为,在获得搜索结果之后,获取与所述搜索框对应的业务的排序方法;以及通过所述排序方法对所述搜索结果进行排 序。In an embodiment, the searching apparatus 800 further includes a sorting unit configured to acquire a sorting method of the service corresponding to the search box after obtaining the search result; and sort the search result by the sorting method .
图9示出了一种下拉提示装置900。所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中。所述装置900在用户终端APP中实施,包括:查询内容获取单元91,配置为,获取用户在搜索框中输入的查询内容;属性获取单元92,配置为,获取与用户终端、用户终端APP或用户相关的至少一个第一属性;发送单元93,配置为,将所述查询内容和所述至少一个第一属性发送给服务器端;接收单元94,配置为,从服务器端接收通过根据上述搜索方法获得的搜索结果;以及显示单元95,配置为,在所述搜索框的下拉提示位置显示所述搜索结果。FIG. 9 shows a pull down prompting device 900. The pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP. The device 900 is implemented in the user terminal APP, and includes: a query content obtaining unit 91 configured to acquire the query content input by the user in the search box; the attribute obtaining unit 92 is configured to acquire the user terminal, the user terminal APP, or The at least one first attribute related to the user; the sending unit 93 is configured to send the query content and the at least one first attribute to the server end; and the receiving unit 94 is configured to receive from the server end according to the searching method according to the foregoing The obtained search result; and the display unit 95 is configured to display the search result at a drop-down prompt position of the search box.
在一个实施例中,上述下拉提示装置900还包括排序单元,配置为,在从服务器端接收通过根据上述搜索方法获得的搜索结果之后,获取与用户相关的至少一个第二属性,获取与所述搜索框对应的业务的排序方法,以及,根据所述至少一个第二属性,通过所述排序方法对所述搜索结果进行排序。In an embodiment, the pull-down prompting apparatus 900 further includes a sorting unit configured to acquire at least one second attribute related to the user after receiving the search result obtained according to the above-mentioned search method from the server end, and obtain the Searching for a sorting method of the business corresponding to the box, and sorting the search results by the sorting method according to the at least one second attribute.
通过根据本说明书实施例的下拉提示方案,通过使用搜索引擎中的技术实现下拉提示系统,可以更好的支持多种检索条件(前缀召回,地理位置,以及其他过滤条件)、以及灵活的排序策略(支持不同业务实现不同的排序插件)。同时,本说明书实施例中通过一套通用下拉提示系统支持多个下拉提示业务,其中只需要一份下拉提示索引数据,通过子文档和排序插件的方案,支持业务的灵活性。从而节省了人力和资源成本,提高了迭代效率,并且有足够的灵活性,可以支持不同业务的不同效果需求。Through the pull-down prompting scheme according to the embodiment of the present specification, a plurality of search conditions (prefix recall, geographical location, and other filtering conditions) and a flexible sorting strategy can be better supported by implementing a pull-down prompting system using a technique in a search engine. (Support different business implementations of different sorting plugins). At the same time, in the embodiment of the present specification, a set of universal drop-down prompt system supports multiple pull-down prompt services, wherein only one drop-down hint index data is needed, and the flexibility of the service is supported by the sub-document and the sorting plug-in scheme. This saves labor and resource costs, improves iteration efficiency, and is flexible enough to support different performance needs of different services.
本领域普通技术人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执轨道,取决于技术方案的特定应用和设计约束条件。本领域普通技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art should further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate the hardware. Interchangeability with software, the components and steps of the various examples have been generally described in terms of functionality in the above description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the solution. Different methods may be used to implement the described functionality for each particular application, but such implementation should not be considered to be beyond the scope of the application.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执轨道的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein may be implemented in hardware, in a software module in a processor orbit, or in a combination of the two. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细 说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments of the present invention have been described in detail with reference to the preferred embodiments of the present invention. All modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (28)

  1. 一种建立下拉提示索引的方法,所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中,所述方法在服务器端执行,包括:A method for establishing a pull-down prompt index, where the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP, and the method is performed on the server side. include:
    获取所述用户终端APP中每个业务的用于下拉提示的多个词条;Obtaining a plurality of terms for a pull-down prompt for each service in the user terminal APP;
    获取每个词条的至少一个属性;Obtaining at least one attribute of each entry;
    建立前缀索引,其中,所述前缀索引包括每个词条的前缀到其自身的倒排索引;以及Establishing a prefix index, wherein the prefix index includes an inverted index of each entry prefix to itself;
    建立属性索引,其中所述属性索引包括每个词条与其各个属性之间的索引。An attribute index is established, wherein the attribute index includes an index between each term and its respective attribute.
  2. 根据权利要求1所述的建立下拉提示索引的方法,其中,所述至少一个属性包括以下至少一个属性:业务类型、查询次数、结果数、点击次数、点击通过率、地理位置、城市以及地址。The method of establishing a pull-down prompt index according to claim 1, wherein the at least one attribute comprises at least one of the following: a service type, a number of queries, a number of results, a number of clicks, a click-through rate, a geographic location, a city, and an address.
  3. 根据权利要求1所述的建立下拉提示索引的方法,其中,所述建立属性索引包括,建立第一词条到其第一属性的正排索引。The method of establishing a pull-down hint index according to claim 1, wherein said establishing an attribute index comprises establishing a positive index of the first entry to its first attribute.
  4. 根据权利要求1所述的建立下拉提示索引的方法,其中,所述建立属性索引包括,建立第二词条的第二属性到第二词条的倒排索引。The method of establishing a pull-down hint index according to claim 1, wherein the establishing an attribute index comprises establishing an inverted index of the second attribute of the second term to the second term.
  5. 根据权利要求1所述的建立下拉提示索引的方法,其中,所述建立前缀索引包括离线建立前缀索引;以及所述建立属性索引包括离线建立属性索引。The method for establishing a pull-down hint index according to claim 1, wherein the establishing a prefix index comprises establishing a prefix index offline; and the establishing an attribute index comprises establishing an attribute index offline.
  6. 根据权利要求3所述的建立下拉提示索引的方法,其中,所述建立第一词条到其第一属性的正排索引包括,对所述第一词条设置多个词条子文档,用于分别建立所述第一词条到在不同城市的第一属性的正排索引。The method for establishing a pull-down hint index according to claim 3, wherein said establishing a first entry to a positive index of its first attribute comprises: setting a plurality of word sub-documents for said first entry, The first entry to the positive index of the first attribute in different cities is respectively established.
  7. 根据权利要求1所述的建立下拉提示索引的方法,其中,所述建立前缀索引包括,获取第三词条包括的最大语义粒度词,以及建立所述最大语义粒度词及其各自的前缀到所述第三词条的倒排索引。The method for establishing a pull-down hint index according to claim 1, wherein the establishing a prefix index comprises: acquiring a maximum semantic granularity word included in a third entry, and establishing the maximum semantic granularity word and its respective prefix to the location The inverted index of the third term.
  8. 一种用于下拉提示的搜索方法,所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中,所述方法在服务器端执行,包括:A search method for a pull-down prompt, the pull-down prompt is used for at least one search box included in the user terminal APP, and each search box is set in a corresponding service in the APP, and the method is executed on the server side. ,include:
    从用户终端APP接收用户在搜索框中输入的查询内容;Receiving, from the user terminal APP, the query content input by the user in the search box;
    从用户终端APP接收与用户终端、用户终端APP或用户相关的至少一个属性;Receiving at least one attribute related to the user terminal, the user terminal APP or the user from the user terminal APP;
    获取与所述搜索框对应的业务的搜索条件;Obtaining a search condition of a service corresponding to the search box;
    通过根据权利要求1-7中任一项所述的方法获得的前缀索引,搜索出与该查询内容 对应的多个词条;以及Searching for a plurality of terms corresponding to the query content by the prefix index obtained by the method according to any one of claims 1-7;
    根据所述搜索条件和所述至少一个属性,通过根据权利要求1-7中任一项所述的方法获得的属性索引,对所述多个词条进行过滤,从而获得搜索结果。The plurality of terms are filtered by the attribute index obtained by the method according to any one of claims 1 to 7 according to the search condition and the at least one attribute, thereby obtaining a search result.
  9. 根据权利要求8所述的用于下拉提示的搜索方法,还包括,在获得搜索结果之后,获取与所述搜索框对应的业务的排序方法;以及通过所述排序方法对所述搜索结果进行排序。The search method for a pull-down prompt according to claim 8, further comprising: obtaining a sorting method of the service corresponding to the search box after obtaining the search result; and sorting the search result by the sorting method .
  10. 根据权利要求8所述的用于下拉提示的搜索方法,所述至少一个属性包括以下至少一个属性:搜索框业务类型、用户终端地理位置、用户终端城市和用户查询时间。The search method for a pull-down prompt according to claim 8, wherein the at least one attribute comprises at least one of the following: a search box service type, a user terminal geographic location, a user terminal city, and a user query time.
  11. 根据权利要求10所述的用于下拉提示的搜索方法,其中,根据所述搜索条件和所述至少一个属性,通过根据权利要求1-7中任一项所述的方法获得的属性索引,对所述多个词条进行过滤包括:根据将词条业务类型限定为所述搜索框业务类型的搜索条件,过滤掉不属于所述搜索框业务类型的词条。The search method for a pull-down cues according to claim 10, wherein the attribute index obtained by the method according to any one of claims 1-7, according to the search condition and the at least one attribute, The filtering of the plurality of terms includes: filtering out the terms that are not in the search box service type according to the search condition that defines the entry service type as the search box service type.
  12. 一种下拉提示方法,所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中,所述方法在用户终端APP中执行,包括:A drop-down prompting method is used for at least one search box included in the user terminal APP, each search box is set in a corresponding service in the APP, and the method is executed in the user terminal APP, including :
    获取用户在搜索框中输入的查询内容;Get the query content entered by the user in the search box;
    获取与用户终端、用户终端APP或用户相关的至少一个第一属性;Obtaining at least one first attribute related to the user terminal, the user terminal APP, or the user;
    将所述查询内容和所述至少一个第一属性发送给服务器端;Sending the query content and the at least one first attribute to the server;
    从服务器端接收通过根据权利要求8-11中任一项所述的方法获得的搜索结果;以及Receiving, from the server side, search results obtained by the method according to any one of claims 8-11;
    在所述搜索框的下拉提示位置显示所述搜索结果。The search result is displayed at a drop-down prompt position of the search box.
  13. 根据权利要求12所述的下拉提示方法,还包括,在从服务器端接收通过根据权利要求8-11中任一项所述的方法获得的搜索结果之后,获取与用户相关的至少一个第二属性,获取与所述搜索框对应的业务的排序方法,以及,根据所述至少一个第二属性,通过所述排序方法对所述搜索结果进行排序。The pull-down prompting method according to claim 12, further comprising: acquiring at least one second attribute related to the user after receiving the search result obtained by the method according to any one of claims 8-11 from the server side Obtaining a sorting method of the service corresponding to the search box, and sorting the search results by the sorting method according to the at least one second attribute.
  14. 根据权利要求13所述的下拉提示方法,其中,所述至少一个第二属性包括以下至少一个属性:用户年龄、性别、消费偏好以及消费能力。The pull-down prompting method according to claim 13, wherein the at least one second attribute comprises at least one of the following attributes: user age, gender, consumption preference, and spending power.
  15. 一种建立下拉提示索引的装置,所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中,所述装置在服务器端实施,包括:An apparatus for establishing a pull-down prompt index, where the pull-down prompt is used for at least one search box included in the user terminal APP, where each search box is set in a corresponding service in the APP, and the device is implemented on the server side. include:
    词条获取单元,配置为,获取所述用户终端APP中每个业务的用于下拉提示的多 个词条;An entry obtaining unit, configured to acquire multiple entries for a pull-down prompt for each service in the user terminal APP;
    属性获取单元,配置为,获取每个词条的至少一个属性;An attribute obtaining unit configured to acquire at least one attribute of each entry;
    前缀索引建立单元,配置为,建立前缀索引,其中所述前缀索引包括每个词条的前缀到其自身的倒排索引;以及a prefix index establishing unit configured to establish a prefix index, wherein the prefix index includes an inverted index of each entry prefix to itself;
    属性索引建立单元,配置为,建立属性索引,其中所述属性索引包括每个词条与其各个属性之间的索引。An attribute index establishing unit is configured to establish an attribute index, wherein the attribute index includes an index between each term and each attribute thereof.
  16. 根据权利要求15所述的建立下拉提示索引的装置,其中,所述至少一个属性包括以下至少一个属性:业务类型、查询次数、结果数、点击次数、点击通过率、地理位置、城市以及地址。The apparatus for establishing a pull-down prompt index according to claim 15, wherein the at least one attribute comprises at least one of the following: a service type, a number of queries, a number of results, a number of clicks, a click-through rate, a geographical location, a city, and an address.
  17. 根据权利要求15所述的建立下拉提示索引的装置,其中,所述属性索引建立单元还配置为,建立第一词条到其第一属性的正排索引。The apparatus for establishing a pull-down hint index according to claim 15, wherein the attribute index establishing unit is further configured to establish a positive index of the first entry to its first attribute.
  18. 根据权利要求15所述的建立下拉提示索引的装置,其中,所述属性索引建立单元还配置为,建立第二词条的第二属性到第二词条的倒排索引。The apparatus for establishing a pull-down hint index according to claim 15, wherein the attribute index establishing unit is further configured to establish an inverted index of the second attribute of the second term to the second term.
  19. 根据权利要求15所述的建立下拉提示索引的装置,其中,所述前缀索引建立单元还配置为离线建立前缀索引;以及所述属性索引建立单元还配置为离线建立属性索引。The apparatus for establishing a pull-down hint index according to claim 15, wherein the prefix index establishing unit is further configured to establish a prefix index offline; and the attribute index establishing unit is further configured to establish an attribute index offline.
  20. 根据权利要求17所述的建立下拉提示索引的装置,其中,所述属性索引建立单元还配置为,对所述第一词条设置多个词条子文档,用于分别建立所述第一词条到在不同城市的第一属性的正排索引。The apparatus for establishing a pull-down prompt index according to claim 17, wherein the attribute index establishing unit is further configured to set a plurality of word sub-documents for the first entry, for respectively establishing the first word Strip to the positive index of the first attribute in different cities.
  21. 根据权利要求15所述的建立下拉提示索引的装置,其中,所述前缀索引建立单元还配置为,获取第三词条包括的最大语义粒度词,以及建立所述最大语义粒度词及其各自的前缀到所述第三词条的倒排索引。The apparatus for establishing a pull-down hint index according to claim 15, wherein the prefix index establishing unit is further configured to acquire a maximum semantic granularity word included in the third term, and establish the maximum semantic granularity word and each of the respective Prefix to the inverted index of the third term.
  22. 一种用于下拉提示的搜索装置,所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中,所述装置在服务器端实施,包括:A search device for a pull-down prompt, the pull-down prompt is used for at least one search box included in the user terminal APP, each search box is set in a corresponding service in the APP, and the device is implemented on a server side ,include:
    查询内容接收单元,配置为,从用户终端APP接收用户在搜索框中输入的查询内容;The query content receiving unit is configured to receive, from the user terminal APP, the query content input by the user in the search box;
    属性接收单元,配置为,从用户终端APP接收与用户终端、用户终端APP或用户相关的至少一个属性;An attribute receiving unit, configured to receive, from the user terminal APP, at least one attribute related to the user terminal, the user terminal APP, or the user;
    获取单元,配置为,获取与所述搜索框对应的业务的搜索条件;An obtaining unit, configured to acquire a search condition of a service corresponding to the search box;
    第一搜索单元,配置为,通过根据权利要求1-7中任一项所述的方法获得的前缀索 引,搜索出与该查询内容对应的多个词条;以及a first search unit configured to search for a plurality of terms corresponding to the query content by using a prefix index obtained by the method according to any one of claims 1-7;
    第二搜索单元,配置为,根据所述搜索条件和所述至少一个属性,通过根据权利要求1-7中任一项所述的方法获得的属性索引,对所述多个词条进行过滤,从而获得搜索结果。a second search unit configured to filter the plurality of terms by using an attribute index obtained by the method according to any one of claims 1-7 according to the search condition and the at least one attribute, Thereby obtaining search results.
  23. 根据权利要求22所述的用于下拉提示的搜索装置,还包括排序单元,配置为,在获得搜索结果之后,获取与所述搜索框对应的业务的排序方法;以及通过所述排序方法对所述搜索结果进行排序。The search device for a pull-down prompt according to claim 22, further comprising a sorting unit configured to acquire a sorting method of the service corresponding to the search box after obtaining the search result; and to perform the sorting method by the sorting method Sort the search results.
  24. 根据权利要求22所述的用于下拉提示的搜索装置,所述至少一个属性包括以下至少一个属性:搜索框业务类型、用户终端地理位置、用户终端城市和用户查询时间。The search apparatus for pull-down prompt according to claim 22, wherein the at least one attribute comprises at least one of the following attributes: a search box service type, a user terminal geographic location, a user terminal city, and a user query time.
  25. 根据权利要求24所述的用于下拉提示的搜索装置,其中,所述第二搜索单元还配置为:根据将词条业务类型限定为所述搜索框业务类型的搜索条件,过滤掉不属于所述搜索框业务类型的词条。The search device for a pull-down prompt according to claim 24, wherein the second search unit is further configured to: filter out the non-belonging according to the search condition that defines the term service type as the search box service type The terms of the search box business type.
  26. 一种下拉提示装置,所述下拉提示用于用户终端APP中所包括的至少一个搜索框,每个搜索框设置于所述APP中的对应业务中,所述装置在用户终端APP中实施,包括:a pull-down prompting device, where the pull-down prompt is used for at least one search box included in the user terminal APP, each search box is set in a corresponding service in the APP, and the device is implemented in the user terminal APP, including :
    查询内容获取单元,配置为,获取用户在搜索框中输入的查询内容;The query content obtaining unit is configured to obtain the query content input by the user in the search box;
    属性获取单元,配置为,获取与用户终端、用户终端APP或用户相关的至少一个第一属性;An attribute obtaining unit, configured to acquire at least one first attribute related to the user terminal, the user terminal APP, or the user;
    发送单元,配置为,将所述查询内容和所述至少一个第一属性发送给服务器端;a sending unit, configured to send the query content and the at least one first attribute to a server end;
    接收单元,配置为,从服务器端接收通过根据权利要求8-11中任一项所述的方法获得的搜索结果;以及a receiving unit configured to receive, from the server side, search results obtained by the method according to any one of claims 8-11;
    显示单元,配置为,在所述搜索框的下拉提示位置显示所述搜索结果。a display unit configured to display the search result at a drop-down prompt position of the search box.
  27. 根据权利要求26所述的下拉提示装置,还包括排序单元,配置为,在从服务器端接收通过根据权利要求8-11中任一项所述的方法获得的搜索结果之后,获取与用户相关的至少一个第二属性,获取与所述搜索框对应的业务的排序方法,以及,根据所述至少一个第二属性,通过所述排序方法对所述搜索结果进行排序。The pull-down prompting apparatus according to claim 26, further comprising a sorting unit configured to acquire a user-related after receiving the search result obtained by the method according to any one of claims 8-11 from the server side And at least one second attribute, obtaining a sorting method of the service corresponding to the search box, and sorting the search result by the sorting method according to the at least one second attribute.
  28. 根据权利要求27所述的下拉提示装置,其中,所述至少一个第二属性包括以下至少一个属性:用户年龄、性别、消费偏好以及消费能力。The pull-down prompting apparatus according to claim 27, wherein the at least one second attribute comprises at least one of the following attributes: user age, gender, consumption preference, and spending power.
PCT/CN2019/070047 2018-03-21 2019-01-02 Drop-down suggestion list WO2019179208A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810235411.7A CN108536763B (en) 2018-03-21 2018-03-21 Pull-down prompting method and device
CN201810235411.7 2018-03-21

Publications (1)

Publication Number Publication Date
WO2019179208A1 true WO2019179208A1 (en) 2019-09-26

Family

ID=63484509

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/070047 WO2019179208A1 (en) 2018-03-21 2019-01-02 Drop-down suggestion list

Country Status (3)

Country Link
CN (1) CN108536763B (en)
TW (1) TWI696925B (en)
WO (1) WO2019179208A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536763B (en) * 2018-03-21 2021-02-05 创新先进技术有限公司 Pull-down prompting method and device
CN110517690A (en) * 2019-08-30 2019-11-29 四川长虹电器股份有限公司 The bootstrap technique and system of voice control function
CN111522841A (en) * 2020-07-03 2020-08-11 支付宝(杭州)信息技术有限公司 Method and device for realizing enterprise insurance

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060190436A1 (en) * 2005-02-23 2006-08-24 Microsoft Corporation Dynamic client interaction for search
CN102156724A (en) * 2011-03-31 2011-08-17 北京百度网讯科技有限公司 Method and device for matching suffix of inquiry segment
CN103577426A (en) * 2012-07-24 2014-02-12 百度在线网络技术(北京)有限公司 Method, device and system for providing additional application messages of searching suggestion
CN103631929A (en) * 2013-12-09 2014-03-12 江苏金智教育信息技术有限公司 Intelligent prompt method, module and system for search
CN108536763A (en) * 2018-03-21 2018-09-14 阿里巴巴集团控股有限公司 A kind of drop-down reminding method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8990200B1 (en) * 2009-10-02 2015-03-24 Flipboard, Inc. Topical search system
CN102314439B (en) * 2010-06-30 2015-12-16 百度在线网络技术(北京)有限公司 The input method combined with application interface and equipment
CN102937976B (en) * 2012-10-17 2015-12-09 北京奇虎科技有限公司 A kind of drop-down reminding method based on input prefix and device
CN103064945B (en) * 2012-12-26 2016-01-06 吉林大学 Based on the Situational searching method of body
US20150317319A1 (en) * 2014-04-30 2015-11-05 Yahoo! Inc. Enhanced search results associated with a modular search object framework
CN104156486B (en) * 2014-08-28 2017-05-10 百度在线网络技术(北京)有限公司 Method and system for transmitting information through search engine and search engine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060190436A1 (en) * 2005-02-23 2006-08-24 Microsoft Corporation Dynamic client interaction for search
CN102156724A (en) * 2011-03-31 2011-08-17 北京百度网讯科技有限公司 Method and device for matching suffix of inquiry segment
CN103577426A (en) * 2012-07-24 2014-02-12 百度在线网络技术(北京)有限公司 Method, device and system for providing additional application messages of searching suggestion
CN103631929A (en) * 2013-12-09 2014-03-12 江苏金智教育信息技术有限公司 Intelligent prompt method, module and system for search
CN108536763A (en) * 2018-03-21 2018-09-14 阿里巴巴集团控股有限公司 A kind of drop-down reminding method and device

Also Published As

Publication number Publication date
TW201941077A (en) 2019-10-16
TWI696925B (en) 2020-06-21
CN108536763B (en) 2021-02-05
CN108536763A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
US10049166B2 (en) Geo-aware spellchecking and auto-suggest search engines
JP6388988B2 (en) Static ranking for search queries in online social networks
US10180967B2 (en) Performing application searches
JP6377807B2 (en) Rewriting search queries in online social networks
US11687968B1 (en) Serving advertisements based on partial queries
US9135350B2 (en) Computer-generated sentiment-based knowledge base
CN110532281B (en) Query suggestion template
US20170357714A1 (en) Query Understanding Pipeline
US10565255B2 (en) Method and system for selecting images based on user contextual information in response to search queries
US20160357851A1 (en) Natural Language Search With Semantic Mapping And Classification
US10521484B1 (en) Typeahead using messages of a messaging platform
US20140040371A1 (en) Systems and methods for identifying geographic locations of social media content collected over social networks
US20120331063A1 (en) Inferring topics from social networking system communications
US10606853B2 (en) Systems and methods for intelligent prospect identification using online resources and neural network processing to classify organizations based on published materials
US20180039635A1 (en) Identifying local experts for local search
WO2019179208A1 (en) Drop-down suggestion list
US20180060359A1 (en) Method and system to randomize image matching to find best images to be matched with content items
US20200293529A1 (en) Answer facts from structured content
US20230087460A1 (en) Preventing the distribution of forbidden network content using automatic variant detection
CN111160699A (en) Expert recommendation method and system
US20160019284A1 (en) Search engine using name clustering
US20160055203A1 (en) Method for record selection to avoid negatively impacting latency
US9116996B1 (en) Reverse question answering
US8868579B2 (en) Restricted web search based on user-specified source characteristics
JP2015057747A (en) Information processing method, display method, information processor, display, information processing program, and display program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19771252

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19771252

Country of ref document: EP

Kind code of ref document: A1