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

David Smiley updated SOLR-1494:
-------------------------------

    Fix Version/s:     (was: 4.7)
                   4.8

> 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: 4.8
>
>
> 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.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to