lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (Updated) (JIRA) <j...@apache.org>
Subject [jira] [Updated] (SOLR-3140) Make omitNorms default for all numeric field types
Date Wed, 29 Feb 2012 13:25:57 GMT

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

Jan Høydahl updated SOLR-3140:
------------------------------

    Attachment: SOLR-3140.patch

First patch. Introduces a new NumericFieldType which sets omitNorms=true in init(). All numeric
fields inherit from this and if schema version >1.4 (patch bumps it to 1.5) the new default
will be used.

I could not find a way to set this default in constructor, as we do not know yet the schema
version, before init() is called, right?

Open issues:
* Is there a better place to set this default than in init() in the new base class?
* Should StrField or other fields also have omitNorms as default?
                
> Make omitNorms default for all numeric field types
> --------------------------------------------------
>
>                 Key: SOLR-3140
>                 URL: https://issues.apache.org/jira/browse/SOLR-3140
>             Project: Solr
>          Issue Type: Improvement
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>              Labels: omitNorms
>             Fix For: 4.0
>
>         Attachments: SOLR-3140.patch
>
>
> Today norms are enabled for all Solr field types by default, while in Lucene norms are
omitted for the numeric types.
> Propose to make the Solr defaults the same as in Lucene, so that if someone occasionally
wants index-side boost for a numeric field type they must say omitNorms="false". This lets
us simplify the example schema too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message