Method and device for constructing nosql database index for semi-structured data
2015
A method and device for constructing an NoSQL database index for semi-structured data. The method comprises: pre-processing semi-structured source data (110); storing pre-processed text segments in a data table, wherein the data table comprises a first combination primary key of a structured clue primary key and a sequence value primary key, a structured clue is divided into several continuous intervals in a determined sequence, and each interval is allocated with a specific key value as a key value of the structured clue primary key (120); and establishing an inverted index table for the pre-processed text segments, wherein the inverted index table comprises a second combination primary key of a structured clue primary key and keyword primary keys, and recording related text segment sequence identifiers as index values corresponding to the key values of all the primary keys, wherein the index values having identical keyword primary keys but having different key values of the structured clue primary key are located in different rows in the inverted index table (130). The above-mentioned method and device can increase the query efficiency of database indexes and facilitate updating.
Keywords:
- Correction
- Source
- Cite
- Save
- Machine Reading By IdeaReader
0
References
0
Citations
NaN
KQI