[
https://issues.apache.org/jira/browse/SOLR-3241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229134#comment-13229134
]
Tomás Fernández Löbbe commented on SOLR-3241:
---------------------------------------------
I found the issue with copyfields as you mentioned Robert. foo is
omitNorms=false, and bar is omitNorms=true. I have a copyfield foo->bar and I
add a document like:
<document boost=X>
<field name=foo>AAAAAA</field>
</document>
This case is fixed by the patch. Testing it, i found a similar situation where
a field1 is a poly type with omitNorms=false, and the subtype if it has
omitNorms=true. In this case, it fails even without a copyfield just by adding
a document like:
<document boost=X>
<field name=poly>AAA,BBB</field>
</document>
I don't know if it makes sense to have a poly field where the subtype have a
different value in the "omitNorms" attribute, probably this should fail even
before the document is added.
> Document boost fail if a field copy omit the norms
> --------------------------------------------------
>
> Key: SOLR-3241
> URL: https://issues.apache.org/jira/browse/SOLR-3241
> Project: Solr
> Issue Type: Bug
> Reporter: Tomás Fernández Löbbe
> Fix For: 3.6, 4.0
>
> Attachments: SOLR-3241.patch
>
>
> After https://issues.apache.org/jira/browse/LUCENE-3796, it is not possible
> to set a boost to a field that has the "omitNorms" set to true. This is
> making Solr's document index-time boost to fail when a field that doesn't
> omit norms is copied (with copyField) to a field that does omit them and
> document boost is used. For example:
> <field name="author" type="text" indexed="true" stored="false"
> omitNorms="false"/>
> <field name="author_display" type="string" indexed="true" stored="true"
> omitNorms="true"/>
> <copyField source="author" dest="author_display"/>
> I'm attaching a possible fix.
--
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: [email protected]
For additional commands, e-mail: [email protected]