The invention discloses a fast indexing method and
system based on a position top-k keyword in a sliding window. The method comprises creating a data indexing model and performing query; the data indexing model is created as follows: determining a geographical range covered by a
quadtree and a
node splitting rule; accepting a
data stream, and inserting data in a node; splitting the node satisfyinga splitting rule, and inserting the data in the nodes to generate a complete
quadtree; storing reverse indexes by leaf nodes; and storing MG
polymerization abstracts of sub nodes thereof by non leafnodes; and adjusting the structure of the
quadtree; the query comprises: initializing a
result set; performing a
pruning operation to obtain a candidate
result set; and selecting a word with the maximum value in a
priority queue, starting to calculate, starting to
traverse from the root node until an accurate
score of the root node is found on the leaf nodes, putting the accurate
score in the
queue, and repeating the operation until the previous k words of the
priority queue are invariable. By adoption of the fast indexing method and
system, the cost can be effectively reduced, the query speedis improved, the search space can be effectively trimmed according to the word frequency and the location proximity, and the geographic text
data stream with high arrival rate can be processed.