Method and device for loading index data of search engine
A technology for indexing data and search engines, applied in the Internet field, can solve problems affecting search response time, affecting user search experience, large amount of index data, etc., and achieve the effect of reducing memory usage
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0020] refer to figure 2 , which shows a flow chart of the steps of an embodiment of a search engine index data loading method embodiment of the present invention, which may specifically include the following steps:
[0021] Step S1, obtaining the first keyword entered into the search engine.
[0022] After the user inputs search information in the search engine, step S1 may obtain the first keyword in the search information by performing word segmentation on the search information. Go to step S2.
[0023] Step S2, inquire whether the first type of index data corresponding to the first keyword exists in the first cache space.
[0024] Wherein, the first type of index data corresponding to the first keyword in step S2 is the first type of index data with the first keyword, specifically, the key of the first type of index data is a keyword, and the value is related to the keyword A list of document IDs. In addition, the first cache space may be a memory space, or other high...
Embodiment 2
[0033] refer to image 3 , which shows a flow chart of the steps of another embodiment of the method for loading index data of a search engine according to the present invention, which may specifically include the following steps:
[0034] Step S21, read the compressed first-type index file, the compressed second-type index file and the compressed third-type index file from the preset disk to the first memory space, the second memory space and the third memory space respectively.
[0035] Wherein, the compressed index file of the first type, the index file of the second type compressed and the index file of the third type compressed can be stored in the memory space in addition to the disk.
[0036] Step S22, constructing compressed first-type index data, compressed second-type index data, and compressed The third type of index data.
[0037] Wherein, the preset data structure may be a map data structure, and the map data structure describes a key-value correspondence. Spec...
Embodiment 3
[0067] refer to Figure 4 , which shows a structural block diagram of an embodiment of an index data loading device for a search engine of the present invention, which may specifically include the following modules:
[0068] The keyword acquisition module 1 is used to acquire the first keyword input into the search engine.
[0069] After the user inputs search information in the search engine, the keyword acquisition module 1 can acquire the first keyword in the search information by performing word segmentation on the search information. Enter the first query module 2.
[0070] The first query module 2 is configured to query whether the first type of index data corresponding to the first keyword exists in the first cache space.
[0071] Wherein, the first type of index data corresponding to the first keyword in the first query module 2 is the first type of index data with the first keyword, specifically, the key of the first type of index data is the keyword, and the value is...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com