You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Daiki Ikawa (JIRA)" <ji...@apache.org> on 2016/06/23 04:35:16 UTC

[jira] [Created] (SOLR-9245) docBoost is still compounded on copyField

Daiki Ikawa created SOLR-9245:
---------------------------------

             Summary: docBoost is still compounded on copyField
                 Key: SOLR-9245
                 URL: https://issues.apache.org/jira/browse/SOLR-9245
             Project: Solr
          Issue Type: Bug
            Reporter: Daiki Ikawa


in some cases, the issue [SOLR-3981] is still unresolved.

schema.xml 
{noformat}
  <dynamicField name="*_text"   type="my_text"    indexed="true" stored="false" multiValued="true" />
  <copyField dest="hoge_text" source="source_text"/>
{noformat}

and MyLocalApplicationSampleWrong.java
{noformat}
doc.addfield("source_text","foo");
doc.addfield("hoge_text", "bar");
doc.setDocumentBoost(100000);
{noformat}

then I got fieldNorm value which greater than 1E9 (docboot is still compounded), 
because the "compoundBoost" is applied twice when copyFileds generated
faster than destinationField generated.

MyLocalApplicationSampleOK.java
{noformat}
doc.addfield("hoge_text", "bar");
doc.addfield("source_text","foo");
doc.setDocumentBoost(100000);
{noformat}
then I got fieldNorm value which less than 1E5.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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