You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "kkewwei (Jira)" <ji...@apache.org> on 2020/12/19 04:33:00 UTC
[jira] [Updated] (LUCENE-9303) There may be can simpler in
DefaultIndexingChain
[ https://issues.apache.org/jira/browse/LUCENE-9303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
kkewwei updated LUCENE-9303:
----------------------------
Status: Patch Available (was: Open)
> There may be can simpler in DefaultIndexingChain
> ------------------------------------------------
>
> Key: LUCENE-9303
> URL: https://issues.apache.org/jira/browse/LUCENE-9303
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/index
> Affects Versions: 8.2
> Reporter: kkewwei
> Priority: Major
> Labels: newdev
>
> In DefaultIndexingChain.processField()
> {code:java}
> if (fieldType.stored()) {
> if (fp == null) {
> fp = getOrAddField(fieldName, fieldType, false);
> }
> if (fieldType.stored()) {
> String value = field.stringValue();
> ......
> try {
> storedFieldsConsumer.writeField(fp.fieldInfo, field);
> } catch (Throwable th) {
> ......
> }
> }
> }
> {code}
> If there has need to add the second {{if}}, because {{fieldType.stored()}} is executed before.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org