Lucene Index File Term Modification via Segmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The process of modifying Lucene index files is time-consuming, especially when dealing with large datasets, making it impractical for commercial applications to correct information errors through the existing operations of addition, deletion, and modification, which require recreating the entire index.

Innovation Solution

A method for modifying specific terms within a Lucene index file by generating new index files based on existing file formats, involving steps to acquire target fields, old and new terms, and generating corresponding information to create new index files that replace original files, allowing for parallel processing across segments to reduce modification time.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If the existing Lucene operation modes (addition, deletion, modification) are used to correct field errors, then data accuracy can be improved, but the time required for index modification becomes excessively long

Engineering Contradiction:
Improvedata accuracyVSAvoidindex modification time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent divides the index into multiple segments (segment0, segment1, etc.), each containing a subset of documents. The modification operation is then applied to individual segments rather than the entire index, allowing parallel processing and significantly reducing the time required for corrections while maintaining data accuracy across the whole index.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent creates a new index file with corrected data before replacing the old index file. This preliminary creation of the corrected index structure allows for efficient parallel processing and avoids the need to modify the existing index in-place, thereby reducing modification time while ensuring data integrity.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If the entire index is recreated to correct errors, then data integrity is maintained, but the process becomes extraordinarily time-consuming for large datasets

Engineering Contradiction:
Improvedata integrityVSAvoidindex creation speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The index is segmented into multiple independent units, and corrections are applied to individual segments rather than recreating the entire index. This maintains data integrity within each segment while dramatically improving overall productivity by avoiding the time-consuming process of recreating the complete index structure.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies modifications locally to specific segments containing erroneous data rather than uniformly across the entire index. This localized approach maintains data integrity in affected areas while preserving the efficiency and speed of the overall index structure.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS10769105B2Modifying Lucene index file
Publication Date: 2020.09.08 ZHEJIANG UNIVIEW TECH CO LTD
  • US10769105B2 patent drawing
  • US10769105B2 patent drawing
  • US10769105B2 patent drawing

AI summary

A method and a device for modifying a Lucene index file are disclosed. After acquiring a target field to be modified, an old term to be modified under the target field and a new term for replacing the old term, every segment in an index folder may be firstly traversed to generate corresponding information of the new term according to corresponding information of the old term and generate a new index file of the segment based on information under other fields of the segment and corresponding information of the new term and corresponding information of other terms under the target field of the segment. Then a corresponding original index file in the index folder is replaced with the new index file, thereby achieving the modification of a specific term under a certain field in the Lucene index file.