You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/16 06:01:57 UTC

[jira] [Updated] (SOLR-1494) Bind highlighting info using SolrJ's DocumentObjectBinder

     [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org