[ 
https://issues.apache.org/jira/browse/SOLR-3241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228924#comment-13228924
 ] 

Hoss Man commented on SOLR-3241:
--------------------------------

bq. The reason the logic was somewhat complicated in DocumentBuilder is 
because, from the lucene indexer its easy to detect this case, but:

sure ... but i think it's not actually just "Document Boost" is it?  if field 
"foo" is declared with omitNorms==false, and a client sends a doc with a field 
"foo" using a fieldBoost then that should be totally fine -- but if the schema 
says to copyField from foo->bar where bar has omitNorms==true then i think that 
will currently cause an from the lucene low level check, corret? (i haven't 
tried it, i'm going based on tomas's path) likewise if "foo" is a LatLonField 
(or any other polyfield) and the underlying dynamic field used has 
omitNorms==true then won't that same low level lucene code throw an error there?

so multiple error paths from totally sane usage none of which has anything to 
do with doc boost, right?

(Truth be told, i didn't even notice the "Document boost" part of the summary, 
i was just looking at tomas's patch and skimming the summary)
                
> 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]

Reply via email to