CN103914469A - Complete matching search prompting method and search engine - Google Patents
Complete matching search prompting method and search engine Download PDFInfo
- Publication number
- CN103914469A CN103914469A CN201210594002.9A CN201210594002A CN103914469A CN 103914469 A CN103914469 A CN 103914469A CN 201210594002 A CN201210594002 A CN 201210594002A CN 103914469 A CN103914469 A CN 103914469A
- Authority
- CN
- China
- Prior art keywords
- search
- prompt
- word
- input information
- granularity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明提出一种完整匹配的搜索提示方法和搜索引擎,其中该方法包括以下步骤:搜索引擎建立搜索词匹配库,其中,搜索词匹配库包括搜索词及搜索词的混合词粒度的切词的对应关系;搜索引擎接收用户输入的输入信息;搜索引擎以输入信息为前缀查询搜索词匹配库;搜索引擎判断输入信息与混合词粒度是否匹配;如果匹配,则搜索引擎将匹配的混合词粒度对应的搜索词加入至第一搜索提示结果;以及搜索引擎在搜索提示栏中将第一搜索提示结果插入至搜索引擎根据输入信息及输入信息对应的热度信息获得的第二搜索提示结果之前。根据本发明实施例的方法,可以使用户得到更加准确地搜索提示,提升了用户体验。
The present invention proposes a search prompt method and a search engine for complete matching, wherein the method includes the following steps: the search engine establishes a search word matching library, wherein the search word matching library includes search words and word segmentation of mixed word granularity of search words Correspondence; the search engine receives the input information entered by the user; the search engine queries the search word matching library with the input information as a prefix; the search engine judges whether the input information matches the granularity of the mixed word; if it matches, the search engine matches the granularity of the matched mixed word The search word is added to the first search prompt result; and the search engine inserts the first search prompt result in the search prompt column before the second search prompt result obtained by the search engine according to the input information and the popularity information corresponding to the input information. According to the method of the embodiment of the present invention, the user can be provided with more accurate search prompts, which improves the user experience.
Description
技术领域technical field
本发明涉及搜索技术领域,尤其涉及一种完整匹配的搜索提示方法和搜索引擎。The invention relates to the technical field of search, in particular to a complete matching search prompt method and a search engine.
背景技术Background technique
搜索引擎在用户输入搜索词时会根据搜索词为用户提供搜索提示。目前,搜索引擎在提供搜索提示时,首先通过用户输入的搜索词匹配前缀获取多个搜索提示,然后根据热度进行排序,再将排序之后的搜索提示显示给用户。When a user enters a search term, the search engine will provide the user with search hints according to the search term. At present, when a search engine provides search prompts, it first obtains multiple search prompts by matching the prefixes of the search terms input by the user, then sorts them according to popularity, and then displays the sorted search prompts to the user.
目前存在的问题是,搜索引擎处理搜索词匹配搜索提示时一般只考虑前缀、拼音、简拼等匹配方式,当户输入的前缀是一个完整的词时,搜索引擎显示给用户的也是一些热度高的搜索提示,并不完全和用户输入前缀相匹配,不符合用户需求,用户体验差。The current problem is that search engines generally only consider matching methods such as prefixes, pinyin, and simplified spelling when processing search word matching search prompts. The search prompt does not completely match the prefix entered by the user, does not meet the user's needs, and the user experience is poor.
发明内容Contents of the invention
本发明旨在至少解决上述技术问题之一。The present invention aims to solve at least one of the above-mentioned technical problems.
为此,本发明的第一个目的在于提出一种完整匹配的搜索提示方法,该方法可以使用户得到更加准确地搜索提示,提升了用户体验。Therefore, the first purpose of the present invention is to provide a complete matching search prompt method, which can enable users to obtain more accurate search prompts and improve user experience.
本发明的第二个目的在于提出一种搜索引擎。The second object of the present invention is to propose a search engine.
为了实现上述目的,本发明第一方面实施例的完整匹配的搜索提示方法,包括以下步骤:搜索引擎建立搜索词匹配库,其中,所述搜索词匹配库包括搜索词及所述搜索词的混合词粒度的切词的对应关系;所述搜索引擎接收用户输入的输入信息;所述搜索引擎以所述输入信息为前缀查询所述搜索词匹配库;所述搜索引擎判断所述输入信息与混合词粒度是否匹配;所述匹配,则所述搜索引擎将匹配的所述混合词粒度对应的搜索词加入至第一搜索提示结果;以及所述搜索引擎在搜索提示栏中将所述第一搜索提示结果插入至所述搜索引擎根据所述输入信息及所述输入信息对应的热度信息获得的第二搜索提示结果之前。In order to achieve the above object, the complete matching search prompt method of the embodiment of the first aspect of the present invention includes the following steps: the search engine establishes a search term matching database, wherein the search term matching database includes search terms and a mixture of the search terms The corresponding relationship of word segmentation of word granularity; the search engine receives the input information input by the user; the search engine queries the search word matching library with the input information as a prefix; the search engine judges the input information and the mixed Whether the word granularity matches; if it matches, the search engine will add the search word corresponding to the mixed word granularity to the first search prompt result; and the search engine will add the first search prompt in the search prompt column The prompt result is inserted before the second search prompt result obtained by the search engine according to the input information and popularity information corresponding to the input information.
根据本发明实施例的完整匹配的搜索提示方法,通过搜索引擎将根据混合粒度切词获取的第一搜索提示结果和根据现有的根据前缀和热度排序获取的第二搜索提示结果同时显示给用户,可以使用户得到更加准确地搜索提示,提升了用户体验。According to the complete matching search prompt method of the embodiment of the present invention, the first search prompt result obtained according to the mixed granularity word segmentation and the second search prompt result obtained according to the existing prefix and popularity ranking are simultaneously displayed to the user through the search engine , enabling the user to obtain a more accurate search prompt and improving the user experience.
为了实现上述目的,本发明第二方面实施例的搜索引擎,包括:建立模块,用于建立搜索词匹配库,其中,所述搜索词匹配库包括搜索词及所述搜索词的混合词粒度的切词的对应关系;接收模块,用于接收用户输入的输入信息;查询模块,用于以所述输入信息为前缀查询所述搜索词匹配库;判断模块,用于判断所述输入信息与混合词粒度是否匹配;第一加入模块,用于在所述判断模块判断匹配时,将匹配的所述混合词粒度对应的搜索词加入至第一搜索提示结果;以及显示模块,用于在搜索提示栏中将所述第一搜索提示结果插入至所述搜索引擎根据所述输入信息及所述输入信息对应的热度信息获得的第二搜索提示结果之前。In order to achieve the above object, the search engine of the second aspect of the present invention includes: a building module for building a search term matching database, wherein the search term matching database includes search terms and mixed word granularity of the search terms The corresponding relationship of word segmentation; the receiving module is used to receive the input information input by the user; the query module is used to query the search word matching library with the input information as a prefix; the judging module is used to judge the input information and the mixed Whether the word granularity matches; the first adding module is used to add the search word corresponding to the mixed word granularity of the match to the first search prompt result when the judging module judges the match; and the display module is used to search prompt Insert the first search prompt result into the column before the second search prompt result obtained by the search engine according to the input information and popularity information corresponding to the input information.
根据本发明实施例的搜索引擎,通过将根据混合粒度切词获取的第一搜索提示结果和根据现有的根据前缀和热度排序获取的第二搜索提示结果同时显示给用户,可以使用户得到更加准确地搜索提示,提升了用户体验。本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。According to the search engine of the embodiment of the present invention, by simultaneously displaying the first search prompt result obtained according to the mixed granularity word segmentation and the second search prompt result obtained according to the existing prefix and popularity ranking to the user, the user can get more Accurate search prompts improve user experience. Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中,The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein,
图1是根据本发明一个实施例的完整匹配的搜索提示方法的流程图;FIG. 1 is a flow chart of a search prompt method for a complete match according to an embodiment of the present invention;
图2是根据本发明一个具体实施例的完整匹配的搜索提示方法的流程图;Fig. 2 is a flowchart of a complete matching search prompt method according to a specific embodiment of the present invention;
图3是根据本发明一个实施例的搜索引擎的结构示意图;以及Fig. 3 is a schematic structural diagram of a search engine according to an embodiment of the present invention; and
图4是根据本发明一个具体实施例的搜索引擎的结构示意图。Fig. 4 is a schematic structural diagram of a search engine according to a specific embodiment of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。相反,本发明的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents coming within the spirit and scope of the appended claims.
在本发明的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。此外,在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the description of the present invention, it should be understood that the terms "first", "second" and so on are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance. In the description of the present invention, it should be noted that unless otherwise specified and limited, the terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral Ground connection; it can be mechanical connection or electrical connection; it can be direct connection or indirect connection through an intermediary. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention in specific situations. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.
下面参考附图描述根据本发明实施例的完整匹配的搜索提示方法和搜索引擎。The following describes the complete matching search prompt method and search engine according to the embodiments of the present invention with reference to the accompanying drawings.
一种完整匹配的搜索提示方法,包括以下步骤:搜索引擎建立搜索词匹配库,其中,搜索词匹配库包括搜索词及搜索词的混合词粒度的切词的对应关系;搜索引擎接收用户输入的输入信息;搜索引擎以输入信息为前缀查询搜索词匹配库;搜索引擎判断输入信息与混合词粒度是否匹配;如果匹配,则搜索引擎将匹配的混合词粒度对应的搜索词加入至第一搜索提示结果;以及搜索引擎在搜索提示栏中将第一搜索提示结果插入至搜索引擎根据输入信息及输入信息对应的热度信息获得的第二搜索提示结果之前。A search prompt method for complete matching, comprising the following steps: the search engine establishes a search word matching library, wherein the search word matching library includes the corresponding relationship between the search word and the word segmentation of the mixed word granularity of the search word; the search engine receives the user input Input information; the search engine searches the search term matching library with the input information as a prefix; the search engine judges whether the input information matches the granularity of the mixed word; if it matches, the search engine adds the search word corresponding to the granularity of the mixed word to the first search prompt Result; and the search engine inserts the first search prompt result in the search prompt column before the second search prompt result obtained by the search engine according to the input information and the popularity information corresponding to the input information.
图1是根据本发明一个实施例的完整匹配的搜索提示方法的流程图。FIG. 1 is a flow chart of a method for searching prompts for complete matches according to an embodiment of the present invention.
如图1所示,完整匹配的搜索提示方法,包括以下步骤:As shown in Figure 1, the complete matching search prompt method includes the following steps:
步骤S101,搜索引擎建立搜索词匹配库,其中,搜索词匹配库包括搜索词及搜索词的混合词粒度的切词的对应关系。Step S101 , the search engine builds a search word matching library, wherein the search word matching library includes correspondence between search words and segmented words of mixed word granularity of the search words.
具体地,现有技术中,在建立搜索词匹配库过程时,在建立前缀到搜索词的索引中,按照搜索词的一个一个字做前缀切分,即切字,导致获取的搜索词与前缀关联有时候关联不大。在本发明的实施例中,以混合词粒度进行切词,例如,搜索词为“周杰伦电影影评”,根据混合词粒度切词之后为“周杰伦、电影、影评”,搜索词为“周杰电影影评”,根据混合词粒度切词之后为“周杰、电影、影评”,还可以保存切词时切出的位置信息。Specifically, in the prior art, in the process of establishing a search word matching library, in the establishment of an index from a prefix to a search word, the prefix is segmented according to each word of the search word, that is, the word is cut, resulting in the obtained search word and prefix The correlation is sometimes not very relevant. In the embodiment of the present invention, word segmentation is performed at the granularity of mixed words. For example, the search term is "Jay Chou movie review", and after word segmentation according to the granularity of mixed words, it is "Jay Chou, movie, movie review", and the search word is "Jay Chou movie review". "Movie Critic", after cutting words according to the granularity of mixed words, it will be "Zhou Jie, Movie, Movie Critic", and the location information cut out when cutting words can also be saved.
步骤S102,搜索引擎接收用户输入的输入信息。Step S102, the search engine receives input information input by the user.
步骤S103,搜索引擎以输入信息为前缀查询搜索词匹配库。In step S103, the search engine queries the search word matching library with the input information as a prefix.
步骤S104,搜索引擎判断输入信息与混合词粒度是否匹配。Step S104, the search engine judges whether the granularity of the input information matches the mixed word.
步骤S105,如果匹配,则搜索引擎将匹配的混合词粒度对应的搜索词加入至第一搜索提示结果。Step S105, if they match, the search engine adds the search words corresponding to the matched mixed word granularity to the first search prompt result.
例如,用户输入“周杰”,搜索引擎根据用户输入的信息,以“周杰”为前缀在搜索词匹配库中进行查询搜索可以获取多个对应的搜索词,然后判断输入信息与混合词粒度是否匹配,例如,“周杰”与搜索词“周杰电视剧”、“周杰个人资料”、“周杰微博”的混合词粒度匹配,将这些搜索词加入至第一搜索提示结果。For example, if a user enters "Zhou Jie", the search engine will use "Zhou Jie" as a prefix to query and search in the search term matching database based on the information entered by the user, and then obtain multiple corresponding search terms, and then judge the input information and the granularity of the mixed word Whether it matches, for example, "Jie Zhou" matches the mixed word granularity of the search terms "Jie Zhou TV", "Jie Zhou's personal information", and "Jie Zhou Weibo", and these search terms are added to the first search prompt result.
步骤S106,搜索引擎在搜索提示栏中将第一搜索提示结果插入至搜索引擎根据输入信息及输入信息对应的热度信息获得的第二搜索提示结果之前。Step S106, the search engine inserts the first search prompt result in the search prompt column before the second search prompt result obtained by the search engine according to the input information and popularity information corresponding to the input information.
其中,第二搜索提示结果可以为现有技术中根据输入信息获取的搜索词。例如,根据“周杰”获取的搜索词为“周杰伦”、“周杰伦演唱会”、“周杰伦电影”等作为第二搜索提示结果。Wherein, the second search prompt result may be a search word obtained according to input information in the prior art. For example, the search words obtained according to "Jie Chou" are "Jay Chou", "Jay Chou concert", "Jay Chou movie", etc. as the second search prompt result.
在本发明的一个实施例中,在搜索提示栏中第一搜索提示结果的位置优先于第二搜索提示结果。由此,可以首先展示和用户输入完整匹配的搜索提示,搜索提示更加能符合用户搜索的语意,进一步提升了用户体验。In one embodiment of the present invention, the position of the first search prompt result in the search prompt bar takes priority over the second search prompt result. Therefore, the search prompt that completely matches the user input can be displayed first, and the search prompt can better conform to the semantics of the user's search, further improving the user experience.
在本发明的一个实施例中,搜索提示栏可以包括十个搜索提示位置,其中,前五个搜索提示位置为第一搜索提示结果,后五个搜索提示位置为第二搜索提示结果。应当理解,搜索提示栏还可以包括其他数目的搜索提示位置,第一搜索提示结果和第二搜索提示结果所占位置的数目也可以自行设置。In an embodiment of the present invention, the search prompt bar may include ten search prompt positions, wherein the first five search prompt positions are the first search prompt results, and the last five search prompt positions are the second search prompt results. It should be understood that the search prompt bar may also include other numbers of search prompt positions, and the number of positions occupied by the first search prompt result and the second search prompt result may also be set independently.
根据本发明实施例的完整匹配的搜索提示方法,通过搜索引擎将根据混合粒度切词获取的第一搜索提示结果和根据现有的第二搜索提示结果同时显示给用户,可以使用户得到更加准确地搜索提示,提升了用户体验。According to the complete matching search prompt method of the embodiment of the present invention, the first search prompt result obtained according to the mixed granularity word segmentation and the existing second search prompt result are simultaneously displayed to the user through the search engine, so that the user can get more accurate information. Local search prompts improve user experience.
图2是根据本发明一个具体实施例的完整匹配的搜索提示方法的流程图。Fig. 2 is a flow chart of a search prompt method for a complete match according to a specific embodiment of the present invention.
如图2所示,完整匹配的搜索提示方法,包括以下步骤:As shown in Figure 2, the complete matching search prompt method includes the following steps:
步骤S201,搜索引擎建立搜索词匹配库,其中,搜索词匹配库包括搜索词及搜索词的混合词粒度的切词的对应关系。In step S201, the search engine builds a search word matching library, wherein the search word matching library includes correspondence between search words and segmented words of mixed word granularity of the search words.
具体地,现有技术中,在建立搜索词匹配库过程时,在建立前缀到搜索词的索引中,按照搜索词的一个一个字做前缀切分,即切字,导致获取的搜索词与前缀关联有时候关联不大。在本发明的实施例中,以混合词粒度进行切词,例如,搜索词为“周杰伦电影影评”,根据混合词粒度切词之后为“周杰伦、电影、影评”,搜索词为“周杰电影影评”,根据混合词粒度切词之后为“周杰、电影、影评”,还可以保存切词时切出的位置信息。Specifically, in the prior art, in the process of establishing a search word matching library, in the establishment of an index from a prefix to a search word, the prefix is segmented according to each word of the search word, that is, the word is cut, resulting in the obtained search word and prefix The correlation is sometimes not very relevant. In the embodiment of the present invention, word segmentation is performed at the granularity of mixed words. For example, the search term is "Jay Chou movie review", and after word segmentation according to the granularity of mixed words, it is "Jay Chou, movie, movie review", and the search word is "Jay Chou movie review". "Movie Critic", after cutting words according to the granularity of mixed words, it will be "Zhou Jie, Movie, Movie Critic", and the location information cut out when cutting words can also be saved.
步骤S202,搜索引擎接收用户输入的输入信息。Step S202, the search engine receives input information input by the user.
步骤S203,搜索引擎以输入信息为前缀查询搜索词匹配库。In step S203, the search engine queries the search term matching library with the input information as a prefix.
步骤S204,搜索引擎判断输入信息与混合词粒度是否匹配。Step S204, the search engine judges whether the granularity of the input information matches the mixed word.
步骤S205,如果匹配,则搜索引擎将匹配的混合词粒度对应的搜索词加入至第一搜索提示结果。Step S205, if they match, the search engine adds the search word corresponding to the matched mixed word granularity to the first search prompt result.
例如,用户输入“周杰”,搜索引擎根据用户输入的信息,以“周杰”为前缀在搜索词匹配库中进行查询搜索可以获取多个对应的搜索词,包括“周杰电视剧”、“周杰个人资料”、“周杰微博”等以及“周杰伦”、“周杰伦演唱会”、“周杰伦电影”等,然后判断输入信息与混合词粒度是否匹配,例如,“周杰”与搜索词“周杰电视剧”、“周杰个人资料”、“周杰微博”的混合词粒度匹配,将这些搜索词加入至第一搜索提示结果。For example, if a user enters "Jie Zhou", the search engine will use "Jie Zhou" as a prefix to query and search in the search term matching database according to the information entered by the user, and can obtain multiple corresponding search terms, including "Jie Zhou TV series", " Jay Chou personal information", "Jay Chou Weibo", etc. and "Jay Chou", "Jay Chou concert", "Jay Chou movie", etc., and then judge whether the input information matches the granularity of the mixed word, for example, "Jie Zhou" and the search term "Jay Chou Jay TV series", "Jie Zhou personal information", "Jie Zhou Weibo" mixed word granularity matching, and add these search words to the first search prompt result.
应当理解,获取的第一搜索提示结果可为多个,在搜索词匹配库中预先对其进行排序,取其排序位于前列的搜索词即可。It should be understood that there may be multiple first search prompt results obtained, and they are pre-sorted in the search term matching library, and the search term at the top of the ranking is selected.
步骤S206,如果不匹配,则搜索引擎将不匹配的混合词粒度对应的搜索词加入至第二搜索提示结果。Step S206, if they do not match, the search engine adds the search words corresponding to the unmatched mixed word granularity to the second search prompt result.
例如,根据“周杰”获取的搜索词为“周杰伦”、“周杰伦演唱会”、“周杰伦电影”等对应的混合词粒度不匹配,可以作为第二搜索提示结果。For example, the search words obtained according to "Jie Chou" are "Jay Chou", "Jay Chou concert", "Jay Chou movie" and other mixed words whose granularity does not match, which can be used as the second search prompt result.
步骤S207,搜索引擎根据输入信息对应的热度信息对第二搜索提示结果进行过滤。Step S207, the search engine filters the second search prompt results according to the popularity information corresponding to the input information.
应当理解,获取的第二搜索提示结果可为多个,在搜索词匹配库中预先根据热度对其进行排序,取其排序位于前列的搜索词即可。It should be understood that there may be multiple second search prompt results obtained, and they are sorted in advance in the search term matching database according to popularity, and the search term at the top of the ranking can be selected.
步骤S208,搜索引擎在搜索提示栏中将第一搜索提示结果插入至第二搜索提示结果之前。Step S208, the search engine inserts the first search prompt result before the second search prompt result in the search prompt column.
在本发明的一个实施例中,在搜索提示栏中第一搜索提示结果的位置优先于第二搜索提示结果。由此,可以首先展示和用户输入完整匹配的搜索提示,搜索提示更加能符合用户搜索的语意,进一步提升了用户体验。In one embodiment of the present invention, the position of the first search prompt result in the search prompt bar takes priority over the second search prompt result. Therefore, the search prompt that completely matches the user input can be displayed first, and the search prompt can better conform to the semantics of the user's search, further improving the user experience.
在本发明的一个实施例中,搜索提示栏可以包括十个搜索提示位置,其中,前五个搜索提示位置为第一搜索提示结果,后五个搜索提示位置为第二搜索提示结果。应当理解,搜索提示栏还可以包括其他数目的搜索提示位置,第一搜索提示结果和第二搜索提示结果所占位置的数目也可以自行设置。In an embodiment of the present invention, the search prompt bar may include ten search prompt positions, wherein the first five search prompt positions are the first search prompt results, and the last five search prompt positions are the second search prompt results. It should be understood that the search prompt bar may also include other numbers of search prompt positions, and the number of positions occupied by the first search prompt result and the second search prompt result may also be set independently.
根据本发明实施例的完整匹配的搜索提示方法,通过搜索引擎判断用户的输入信息和混合词粒度是否匹配,可以将第一搜索提示结果和第二搜索提示结果更加准确地进行分类显示,使用户得到更加准确地搜索提示结果,进一步提升了用户体验。According to the complete matching search prompt method of the embodiment of the present invention, the search engine judges whether the input information of the user matches the mixed word granularity, and can classify and display the first search prompt result and the second search prompt result more accurately, so that the user A more accurate search prompt result is obtained, and the user experience is further improved.
一种搜索引擎,包括:建立模块,用于建立搜索词匹配库,其中,搜索词匹配库包括搜索词及搜索词的混合词粒度的切词的对应关系;接收模块,用于接收用户输入的输入信息;查询模块,用于以输入信息为前缀查询搜索词匹配库;判断模块,用于判断输入信息与混合词粒度是否匹配;第一加入模块,用于在判断模块判断匹配时,将匹配的混合词粒度对应的搜索词加入至第一搜索提示结果;以及显示模块,用于在搜索提示栏中将第一搜索提示结果插入至搜索引擎根据输入信息及输入信息对应的热度信息获得的第二搜索提示结果之前。A search engine, comprising: a building module for establishing a search word matching library, wherein the search word matching library includes a search word and a correspondence between the word segmentation of the mixed word granularity of the search word; a receiving module for receiving user input Input information; query module, used to query the search word matching library with the input information as a prefix; judgment module, used to judge whether the input information matches the granularity of mixed words; the first adding module, used to match when the judging module judges the match The search word corresponding to the mixed word granularity is added to the first search prompt result; and the display module is used to insert the first search prompt result into the search engine according to the input information and the popularity information corresponding to the input information. Two search prompts before the results.
图3是根据本发明一个实施例的搜索引擎的结构示意图。Fig. 3 is a schematic structural diagram of a search engine according to an embodiment of the present invention.
如图3所示,搜索引擎包括:建立模块100,接收模块200,查询模块300,判断模块400,第一加入模块500和显示模块600。As shown in FIG. 3 , the search engine includes: a building module 100 , a receiving module 200 , a query module 300 , a judging module 400 , a first adding module 500 and a display module 600 .
具体地,建立模块100用于建立搜索词匹配库,其中,搜索词匹配库包括搜索词及搜索词的混合词粒度的切词的对应关系。更具体地,现有技术中,在建立搜索词匹配库过程时,在建立前缀到搜索词的索引中,按照搜索词的一个一个字做前缀切分,即切字,导致获取的搜索词与前缀关联有时候关联不大。在本发明的实施例中,以混合词粒度进行切词,例如,搜索词为“周杰伦电影影评”,根据混合词粒度切词之后为“周杰伦、电影、影评”,搜索词为“周杰电影影评”,根据混合词粒度切词之后为“周杰、电影、影评”,还可以保存切词时切出的位置信息。Specifically, the establishment module 100 is used to establish a search word matching database, wherein the search word matching database includes a corresponding relationship between search words and word segmentation of mixed word granularity of the search words. More specifically, in the prior art, in the process of establishing a search term matching library, in the establishment of an index from a prefix to a search term, the prefix is segmented according to each character of the search term, that is, the word is cut, resulting in the obtained search term and Prefix correlation is sometimes not very relevant. In the embodiment of the present invention, word segmentation is performed at the granularity of mixed words. For example, the search term is "Jay Chou movie review", and after word segmentation according to the granularity of mixed words, it is "Jay Chou, movie, movie review", and the search word is "Jay Chou movie review". "Movie Critic", after cutting words according to the granularity of mixed words, it will be "Zhou Jie, Movie, Movie Critic", and the location information cut out when cutting words can also be saved.
接收模块200用于接收用户输入的输入信息。The receiving module 200 is used for receiving input information input by a user.
查询模块300于以输入信息为前缀查询搜索词匹配库。The query module 300 searches the search term matching library with the input information as a prefix.
判断模块400用于判断输入信息与混合词粒度是否匹配。The judging module 400 is used for judging whether the granularity of the input information matches the compound word.
第一加入模块500用于在判断模块判断匹配时,将匹配的混合词粒度对应的搜索词加入至第一搜索提示结果。例如,用户输入“周杰”,搜索引擎根据用户输入的信息,以“周杰”为前缀在搜索词匹配库中进行查询搜索可以获取多个对应的搜索词,然后判断输入信息与混合词粒度是否匹配,例如,“周杰”与搜索词“周杰电视剧”、“周杰个人资料”、“周杰微博”的混合词粒度匹配,将这些搜索词加入至第一搜索提示结果。The first adding module 500 is configured to add the search word corresponding to the matched mixed word granularity to the first search prompt result when the judging module judges a match. For example, if a user enters "Zhou Jie", the search engine will use "Zhou Jie" as a prefix to query and search in the search term matching database based on the information entered by the user, and then obtain multiple corresponding search terms, and then judge the input information and the granularity of the mixed word Whether it matches, for example, "Jie Zhou" matches the mixed word granularity of the search terms "Jie Zhou TV", "Jie Zhou's personal information", and "Jie Zhou Weibo", and these search terms are added to the first search prompt result.
应当理解,获取的第一搜索提示结果可为多个,在搜索词匹配库中预先对其进行排序,取其排序位于前列的搜索词即可。It should be understood that there may be multiple first search prompt results obtained, and they are pre-sorted in the search term matching library, and the search term at the top of the ranking is selected.
显示模块600用于在搜索提示栏中将第一搜索提示结果插入至搜索引擎根据输入信息及输入信息对应的热度信息获得的第二搜索提示结果之前。其中,第二搜索提示结果可以为现有技术中根据输入信息获取的搜索词。例如,根据“周杰”获取的搜索词为“周杰伦”、“周杰伦演唱会”、“周杰伦电影”等作为第二搜索提示结果。The display module 600 is configured to insert the first search prompt result in the search prompt column before the second search prompt result obtained by the search engine according to the input information and popularity information corresponding to the input information. Wherein, the second search prompt result may be a search word obtained according to input information in the prior art. For example, the search words obtained according to "Jie Chou" are "Jay Chou", "Jay Chou concert", "Jay Chou movie", etc. as the second search prompt result.
在本发明的一个实施例中,在搜索提示栏中第一搜索提示结果的位置优先于第二搜索提示结果。由此,可以首先展示和用户输入完整匹配的搜索提示,搜索提示更加能符合用户搜索的语意,进一步提升了用户体验。In one embodiment of the present invention, the position of the first search prompt result in the search prompt bar takes priority over the second search prompt result. Therefore, the search prompt that completely matches the user input can be displayed first, and the search prompt can better conform to the semantics of the user's search, further improving the user experience.
在本发明的一个实施例中,搜索提示栏可以包括十个搜索提示位置,其中,前五个搜索提示位置为第一搜索提示结果,后五个搜索提示位置为第二搜索提示结果。应当理解,搜索提示栏还可以包括其他数目的搜索提示位置,第一搜索提示结果和第二搜索提示结果所占位置的数目也可以自行设置。In an embodiment of the present invention, the search prompt bar may include ten search prompt positions, wherein the first five search prompt positions are the first search prompt results, and the last five search prompt positions are the second search prompt results. It should be understood that the search prompt bar may also include other numbers of search prompt positions, and the number of positions occupied by the first search prompt result and the second search prompt result may also be set independently.
根据本发明实施例的搜索引擎,通过将根据混合粒度切词获取的第一搜索提示结果和根据现有的根据前缀和热度排序获取的第二搜索提示结果同时显示给用户,可以使用户得到更加准确地搜索提示,提升了用户体验。According to the search engine of the embodiment of the present invention, by simultaneously displaying the first search prompt result obtained according to the mixed granularity word segmentation and the second search prompt result obtained according to the existing prefix and popularity ranking to the user, the user can get more Accurate search prompts improve user experience.
图4是根据本发明一个具体实施例的搜索引擎的结构示意图。Fig. 4 is a schematic structural diagram of a search engine according to a specific embodiment of the present invention.
如图4所示,在图3所示的基础上搜索引擎还包括:第二加入模块700和过滤模块800。As shown in FIG. 4 , on the basis of that shown in FIG. 3 , the search engine further includes: a second adding module 700 and a filtering module 800 .
具体地,第二加入模块700用于在判断模块判断不匹配时,将不匹配的混合词粒度对应的搜索词加入至第二搜索提示结果。例如,根据“周杰”获取的搜索词为“周杰伦”、“周杰伦演唱会”、“周杰伦电影”等对应的混合词粒度不匹配,可以作为第二搜索提示结果。Specifically, the second adding module 700 is configured to add the search word corresponding to the unmatched mixed word granularity to the second search prompt result when the judging module judges that there is no match. For example, the search words obtained according to "Jie Chou" are "Jay Chou", "Jay Chou concert", "Jay Chou movie" and other mixed words whose granularity does not match, which can be used as the second search prompt result.
过滤模块800用于根据输入信息对应的热度信息对第二搜索提示结果进行过滤。应当理解,获取的第二搜索提示结果可为多个,在搜索词匹配库中预先根据热度对其进行排序,取其排序位于前列的搜索词即可。The filtering module 800 is configured to filter the second search prompt results according to the popularity information corresponding to the input information. It should be understood that there may be multiple second search prompt results obtained, and they are sorted in advance in the search term matching database according to popularity, and the search term at the top of the ranking can be selected.
根据本发明实施例的完整匹配的搜索提示方法,通过搜索引擎判断用户的输入信息和混合词粒度是否匹配,可以将第一搜索提示结果和第二搜索提示结果更加准确地进行分类显示,使用户得到更加准确地搜索提示结果,进一步提升了用户体验。According to the complete matching search prompt method of the embodiment of the present invention, the search engine judges whether the input information of the user matches the mixed word granularity, and can classify and display the first search prompt result and the second search prompt result more accurately, so that the user A more accurate search prompt result is obtained, and the user experience is further improved.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, Programmable Gate Arrays (PGAs), Field Programmable Gate Arrays (FPGAs), etc.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
尽管已经示出和描述了本发明的实施例,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。Although the embodiments of the present invention have been shown and described, those skilled in the art can understand that various changes, modifications, substitutions and modifications can be made to these embodiments without departing from the principle and spirit of the present invention. The scope of the invention is defined by the claims and their equivalents.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210594002.9A CN103914469A (en) | 2012-12-31 | 2012-12-31 | Complete matching search prompting method and search engine |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210594002.9A CN103914469A (en) | 2012-12-31 | 2012-12-31 | Complete matching search prompting method and search engine |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN103914469A true CN103914469A (en) | 2014-07-09 |
Family
ID=51040161
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210594002.9A Pending CN103914469A (en) | 2012-12-31 | 2012-12-31 | Complete matching search prompting method and search engine |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103914469A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105893438A (en) * | 2015-12-14 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Search prompting method and apparatus |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101937437A (en) * | 2009-06-30 | 2011-01-05 | 华为技术有限公司 | A search method, device and system |
| CN102156724A (en) * | 2011-03-31 | 2011-08-17 | 北京百度网讯科技有限公司 | Method and device for matching suffix of inquiry segment |
| US8037087B2 (en) * | 2003-12-08 | 2011-10-11 | Iac Search & Media, Inc. | Methods and systems for providing a response to a query |
| CN102567364A (en) * | 2010-12-24 | 2012-07-11 | 鸿富锦精密工业(深圳)有限公司 | File search system and method |
-
2012
- 2012-12-31 CN CN201210594002.9A patent/CN103914469A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8037087B2 (en) * | 2003-12-08 | 2011-10-11 | Iac Search & Media, Inc. | Methods and systems for providing a response to a query |
| CN101937437A (en) * | 2009-06-30 | 2011-01-05 | 华为技术有限公司 | A search method, device and system |
| CN102567364A (en) * | 2010-12-24 | 2012-07-11 | 鸿富锦精密工业(深圳)有限公司 | File search system and method |
| CN102156724A (en) * | 2011-03-31 | 2011-08-17 | 北京百度网讯科技有限公司 | Method and device for matching suffix of inquiry segment |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105893438A (en) * | 2015-12-14 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Search prompting method and apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6225261B2 (en) | Method and apparatus for storing data | |
| US9477765B2 (en) | Search method, system and device | |
| CN103914476B (en) | Search guiding method and search engine | |
| CN103258023B (en) | The recommendation method of search candidate word and search engine | |
| CN104102635B (en) | A kind of method and device of Extracting Knowledge collection of illustrative plates | |
| CN104699845B (en) | Method and device is provided based on the Search Results puing question to class search word | |
| CN104679855A (en) | Playlist creation method and terminal device | |
| US20140053087A1 (en) | Friend recommendation method, apparatus and storage medium | |
| CN104462508A (en) | Character relation search method and device based on knowledge graph | |
| CN103984757B (en) | Search results pages is inserted the method and system of news information entry | |
| CN103744887B (en) | It is a kind of for the method for people search, device and computer equipment | |
| CN104424177B (en) | A kind of method and device for extracting core word | |
| CN104239321B (en) | A kind of data processing method and device of Search Engine-Oriented | |
| WO2017173783A1 (en) | Method of displaying point of interest, and terminal | |
| CN102855251B (en) | Method and device for requirement identification | |
| WO2023165272A1 (en) | Data storage and query | |
| CN105745642B (en) | Query data processing method and device | |
| CN103593338A (en) | Information processing method and device | |
| CN107679053A (en) | Location recommendation method, device, computer equipment and storage medium | |
| CN103631947B (en) | The searching method and search system of a kind of list | |
| CN104035955A (en) | Search method and device | |
| CN103092919A (en) | Search guide method and search engine | |
| CN104077361B (en) | A kind of sort method and system for big data | |
| CN103914469A (en) | Complete matching search prompting method and search engine | |
| CN103646096B (en) | Method and device for generating sub-queries through user configuration |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140709 |