Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2016-04-27
ALIBABA GRP HLDG LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In view of this, the embodiment of the present application provides a method and device for determining the storage location of the field attribute value of the index field, which is used to solve the problem of waste of storage resources caused by the existing storage method of determining the field attribute value

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for determining storage location of field attribute value of index field
  • Method and device for determining storage location of field attribute value of index field
  • Method and device for determining storage location of field attribute value of index field

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for determining storage positions of field attribute values of index fields. The method comprises the steps as follows: bit lengths respectively corresponding to the field attribute values of all the index fields contained in a document where indexes are to be built are determined; array elements of bit lengths matched with bit lengths corresponding to the filed attribute values of the index fields are determined from defined arrays used for storing the filed attribute values; and the determined array elements are taken as the storage positions of the field attribute values of the index fields. Compared with the prior art, the technical scheme is as follows: the storage positions of the field attribute values of the index fields can be determined based on the determination of the bit lengths corresponding to the field attribute values of all the index fields respectively, so that the waste of a storage space is reduced, and the utilization rate of storage resources is further improved.

Description

technical field [0001] The present application relates to the field of data processing, in particular to a method and device for determining a storage location of a field attribute value of an index field. Background technique [0002] At present, after the search engine retrieves the search items submitted by the user, it can filter, count and sort the search results through the forward index. Specifically, the forward index stores the corresponding relationship between the document identifier (generally called Docid) and the field, and the corresponding relationship between the storage location of the field and the field attribute value. Generally, the above-mentioned corresponding relationship is called an index. Based on this index, the search engine The field attribute values ​​related to the retrieval results can be read according to the document identifiers corresponding to the retrieval results, and then the retrieval results can be filtered, counted and sorted accor...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
Inventor 张永旺
Owner ALIBABA GRP HLDG LTD