You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Bruno Roustant (Jira)" <ji...@apache.org> on 2021/02/28 14:44:00 UTC

[jira] [Updated] (LUCENE-9815) PerField formats can select the format based on FieldInfo

     [ https://issues.apache.org/jira/browse/LUCENE-9815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruno Roustant updated LUCENE-9815:
-----------------------------------
    Description: 
PerFieldDocValuesFormat and PerFieldPostingsFormat currently only select the format based on the field name.

If we improve them to also support the selection based on the FieldInfo, it will be possible to select based on some FieldInfo attribute, DocValuesType, etc.

+Example use-case:+
 It will be possible to adapt the compression mode of doc values fields easily based on the DocValuesType. E.g. compressing sorted and not binary doc values.

> User creates a new custom codec which provides a custom DocValuesFormat which extends PerFieldDocValuesFormat and implements the method
 DocValuesFormat getDocValuesFormatForField(FieldInfo fieldInfo).
 This method provides either a standard Lucene80DocValuesFormat (no compression) or another new custom DocValuesFormat extending Lucene80DocValuesFormat with BEST_COMPRESSION mode.

  was:
PerFieldDocValuesFormat and PerFieldPostingsFormat currently only select the format based on the field name.

If we improve them to also support the selection based on the FieldInfo, it will be possible to select based on some FieldInfo attribute, DocValuesType, etc.

+Use-case example:+
It will be possible for example to adapt the compression mode of doc values fields easily based on the DocValuesType. E.g. compressing sorted and not binary doc values.

> User creates a new custom codec which provides a custom DocValuesFormat which extends PerFieldDocValuesFormat and implements the method
DocValuesFormat getDocValuesFormatForField(FieldInfo fieldInfo).
This method provides either a standard Lucene80DocValuesFormat (no compression) or another new custom DocValuesFormat extending Lucene80DocValuesFormat with BEST_COMPRESSION mode.


> PerField formats can select the format based on FieldInfo
> ---------------------------------------------------------
>
>                 Key: LUCENE-9815
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9815
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Bruno Roustant
>            Priority: Minor
>
> PerFieldDocValuesFormat and PerFieldPostingsFormat currently only select the format based on the field name.
> If we improve them to also support the selection based on the FieldInfo, it will be possible to select based on some FieldInfo attribute, DocValuesType, etc.
> +Example use-case:+
>  It will be possible to adapt the compression mode of doc values fields easily based on the DocValuesType. E.g. compressing sorted and not binary doc values.
> > User creates a new custom codec which provides a custom DocValuesFormat which extends PerFieldDocValuesFormat and implements the method
>  DocValuesFormat getDocValuesFormatForField(FieldInfo fieldInfo).
>  This method provides either a standard Lucene80DocValuesFormat (no compression) or another new custom DocValuesFormat extending Lucene80DocValuesFormat with BEST_COMPRESSION mode.



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