Query method using index data file
A technology for indexing data and query methods, applied in the field of information query, can solve problems such as large computational load and complexity, and achieve the effect of low hardware requirements
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] A query method using index data files, the implementation process is as follows figure 1 shown, including the following steps:
[0031] 1) Load the index data file into memory;
[0032] 2) Load the pre-query result file into memory;
[0033] The pre-query result file contains the distribution of all product data on the specific value of each product attribute; through the pre-query result file, the specific value of each product attribute, product quantity information, and product list can be directly obtained Information; when product data changes, such as new products, it is necessary to regenerate the pre-query result file and update it to the memory at the same time;
[0034] 3) Construct a query matcher
[0035] The construction steps of the query matcher include: according to the number of product attributes, construct a matcher array, each element in the array is a matcher, each matcher corresponds to a product attribute, and the elements of the matcher array ...
Embodiment 2
[0044] Embodiment 2 is an implementation method of the present invention that utilizes the index data file query method to be specifically applied to mobile phone classification query. Wherein, the establishment of the index data file includes the following steps:
[0045] 1) Product attribute ID
[0046] There are many types of product attributes, including brand, system, system, main screen size, and special functions. In order to quickly compare product attributes, converting all product attribute values into digital identification codes can significantly help quick retrieval, and the comparison between numbers is direct and fast.
[0047] The ways to convert product attributes into digital identification codes are as follows:
[0048] Convert the value of the brand into a digital ID, such as [Samsung, HTC, Apple, Huawei] → [9344, 3443, 5544, 4342];
[0049] Convert the value of the standard into an enumeration, for example [GSM,WCDMA,TD-CDMA,CDMA2000,LTE(4G)]→[1,2,3,4...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 