Method and device for determining storage location of field attribute value of index field
A field attribute and index field technology, applied in the field of data processing, can solve problems such as waste of storage resources, achieve the effect of improving utilization and reducing waste
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] The first embodiment provides a method for determining the storage location of a field attribute value of an index field. The method can be applied to a search engine, and the waste of storage resources can be reduced by applying the technical solution to the search engine.
[0038] image 3 A schematic flowchart of determining a storage location of a field attribute value of an index field provided by Embodiment 1 of the present application is shown. Specifically, the process of determining the storage location of the field attribute value of the index field mainly includes the following steps:
[0039] Step 301. Determine the bit lengths corresponding to the field attribute values of the index fields included in the document to be indexed.
[0040] In step 301, the document to be indexed may be a document used to establish a positive index, and in practice, may also be a document for establishing other related indexes, which will not be listed here.
[0041] Step ...
Embodiment 2
[0073] The second embodiment provides an application scenario corresponding to the method for determining the storage location of the field attribute value of the index field provided by the first embodiment. By applying the technical solution in this application scenario, the existing problem of determining the field attribute can be solved. The storage method of the value causes the waste of storage resources.
[0074] The second embodiment will describe the information provided in Table 2 above. In practical applications, the information listed in Table 2 is obtained from the field information of the pre-saved index field. The following code is in XML file format How to save field information in the configuration file:
[0075]
[0076] The field information provided in the code corresponds to the field information in Table 2, and the field information in Table 2 assigns a field identifier to each index field in the order in which the field information of each index fiel...
Embodiment 3
[0099] Embodiment 3 provides a method for writing field attribute values and reading field attribute values after the storage locations of each index field are determined based on Embodiment 1 or Embodiment 2.
[0100] Continuing to describe correspondingly to the information provided in Table 2 above, Table 3 shows that after the storage location of the field attribute value of each index field is determined in Embodiment 2, the corresponding location information, field identifier and field name of each storage location The relationship, specifically, is shown in Table 3:
[0101] table 3:
[0102]
[0103]Corresponding to the information provided in Table 3, first, according to the location information corresponding to the storage location of the field attribute value of each index field provided in Table 3, and the bit length corresponding to the field attribute value of each index field, it can be determined in each index The storage location of the field attribute...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 