摘要 |
A method for generating search suggestions by using fuzzy-score matching and entity co-occurrence in a knowledge base is disclosed. Embodiments of the method may be employed in any search system that may include an entity extraction computer module that may perform partial entity extractions from provided search queries, a fuzzy-score matching computer module that may generate algorithms based on the type of entity extracted and perform a search against an entity co-occurrence knowledge base. The entity co-occurrence knowledge base, which may include a repository where entities may be indexed as entities to entities, entities to topics, or entities to facts among others, may return fast and accurate suggestions to the user to complete the search query. The suggestions may include alternates to the partial query provided by the user that may enhance and save time when performing searches. |
主权项 |
1. A method comprising:
in response to comparing, by a server, a search query against a plurality of records of an in-memory database, identifying, by the server, an entity corresponding to the search query and a type of the entity corresponding to the search query, wherein the search query is received from a client, wherein the records contain a co-occurrence knowledge dataset; and in response to selecting, by the server, a fuzzy-score matching algorithm based on the type, determining, by the server, that the entity is sufficiently similar to a record of the records based on the fuzzy-score matching algorithm and presenting, by the server, a content of the record to the client, wherein the fuzzy-score matching algorithm uses a metric having a minimum number of single-character edits that are needed to change a first word in the search query into a second word in the record. |