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

David Smiley closed SOLR-1494.
------------------------------
    Resolution: Won't Fix

Closing.  IMO this isn't a good use of the DocumentObjectBinder which I think 
should be deliberately limited to field value retrieval.  

Nevertheless it's plausible to imagine some a highlighting 
"DocumentTransformer" feature that would allow the existing DOB to support 
fl=highlight_fieldA:highlight(fieldA) which would be useful for various use 
cases and sometimes more convenient for folks.

> Bind highlighting info using SolrJ's DocumentObjectBinder
> ---------------------------------------------------------
>
>                 Key: SOLR-1494
>                 URL: https://issues.apache.org/jira/browse/SOLR-1494
>             Project: Solr
>          Issue Type: New Feature
>          Components: clients - java
>            Reporter: Avlesh Singh
>            Priority: Minor
>             Fix For: 6.0, 4.9
>
>
> The DocumentObjectBinder class should "bind" highlighting info in 
> QueryResponse, if specified by a end user. This can be achieved using an 
> annotated interface {{@Highlight}} as underneath -
> {code:java}
> class MyBean{
>   @Field
>   @Highlight
>   String name;
>   @Field ("solr_category_field_name")
>   List<String> categories;
>   @Highlight ("solr_category_field_name")
>   List<String> highlightedCategories
>   @Field
>   float score;
>   ...
> }
> {code}
> With this bean definition, if someone tries to fetch the response as 
> {{QueryResponse#getBeans(MyBean.class)}}, the beans will have highlighting 
> data populated into its corresponding fields.
> Original mail thread here - 
> http://www.lucidimagination.com/search/document/897f5a26e35bd27e/highlighting_bean_properties_using_documentobjectbinder_new_feature



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to