摘要 |
Method and system for generating a document index and receiving a data query comprising: obtaining a document to be indexed or a data query; performing a monadic partition operation on the document or query to obtain a plurality of monadic partitions; and for each monadic partition in the plurality of monadic partitions: determining whether said each monadic partition is a filter character; in the event said each monadic partition is a filter character, forming a polynary partition by combining the monadic partition with at least one other monadic partition adjacent to the monadic partition, and indexing the polynary partition in the case of a document or searching a preset index using the polynary partition if receiving a query; and in the event that the monadic partition is not a filter character, indexing the monadic partition, or searching a preset index using the monadic partition if receiving a query. |