[
https://issues.apache.org/jira/browse/SOLR-7237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14358665#comment-14358665
]
Noble Paul commented on SOLR-7237:
----------------------------------
It is possible, But, but it is not enough if considering that the system can
have separate boost for a given field in each document. It is not good to fix
the value of a runtime thing at compile time
I would ideally wish to have another field for the boost
{noformat}
@Field(boostValField="myFieldBoost")
String myField
Float myFieldBoost;
{noformat}
> Add boost to @Field annotation
> ------------------------------
>
> Key: SOLR-7237
> URL: https://issues.apache.org/jira/browse/SOLR-7237
> Project: Solr
> Issue Type: Improvement
> Components: clients - java
> Affects Versions: 5.0
> Reporter: Karl Kildén
>
> DocumentObjectBinder is great but it hard codes the boost like this:
> doc.setField(field.name, field.get(obj), 1.0f);
> Why not offer boost on the @Field annotation when you construct the bean?
> @Field(name=MY_FIELD", boost=2.0f)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]