[Feature Request] Improve indexing performance by using a single Lucene field #17022
Labels
enhancement
Enhancement or improvement to existing feature or request
Indexing:Performance
untriaged
Is your feature request related to a problem? Please describe
Currently, OS usually create multiply Lucene fields for a single OS field during indexing, for example, when parsing number field, OS creates three Lucene fields.
When Lucene processes one document, it needs two passes for each fields. The first pass is to verify that doc schema matches the index schema, and the second pass is to index each field. Obviously the more fields there are, the more passes need to be processed.
Describe the solution you'd like
For each OS field, only create a single Lucene field to reduce the number of passes to be processed. Take a
Long
field as a example, we can create a Lucene field as follows:Related component
Indexing:Performance
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: