lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Male (JIRA)" <>
Subject [jira] [Updated] (SOLR-2708) Allow customizable bean mapping for QueryResponse.getBeans(..)
Date Sat, 20 Aug 2011 07:17:27 GMT


Chris Male updated SOLR-2708:

    Attachment: SOLR-2708-beanProperty.patch

Patch which adds the notion of a BeanProperty which handles the reading and writing of a bean's

This cleans up the code in DocField while also allowing extensions to the accessing of a properties

Also adds two extendable methods, isBeanProperty(Method) and isBeanProperty(Field), which
by default implement the current behavior, but allow extensions to what fields / methods are
of interest (such as choosing all fields).

> Allow customizable bean mapping for QueryResponse.getBeans(..)
> --------------------------------------------------------------
>                 Key: SOLR-2708
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java
>    Affects Versions: 1.4, 3.1
>            Reporter: Bozhidar Bozhanov
>         Attachments: SOLR-2708-beanProperty.patch, SOLR-2708.patch, SOLR-2708.patch,
> The mechanism for getting beans is rather limited - only classes @Field-annotated fields.
> Imaging the following subprojects:
> - common
> - search
> And you want to reuse a class from common as a result from a solr search. You should
either duplicate the structure or make common depend on solrj. Neither are desirable.
> So, my suggestion:
> - introduce a pluggable mechanism for bean resolution. Currently it is impossible - it
uses private methods and private inner classes. (This will be useful for custom conversions,
because the existing one fails in some cases where BeanUtils.copyProperties works.)
> - allow externalized (xml) configuration
> - allow detecting all fields, annotated or not (off by default)

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message