You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Avlesh Singh <av...@gmail.com> on 2009/04/25 08:31:35 UTC

Getting dynamicFields using QueryResponse

Unless I am missing something, there seems to be no way for mapping my
"dynamicFields" in the index to a solrj bean.
I am using SolrQuery to fetch a QueryResponse object, and use
QueryResponse.getBeans(MyAnnotatedClass.class) to fetch beans mapped to my
index.

There is no way to map dynamic fields in my index (*_i kind of fields) to
these beans. Seems as if there is no support in the DocumentObjectBinder
class as well to do the same.
Is this a possible enhancement?

Note: I don't know the name of the dynamic fields upfront.

Cheers
Avlesh

Re: Getting dynamicFields using QueryResponse

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@gmail.com>.
the getBeans() cannot map dynamic fields to a bean field.

this can be an enhancement request

On Sat, Apr 25, 2009 at 12:01 PM, Avlesh Singh <av...@gmail.com> wrote:
> Unless I am missing something, there seems to be no way for mapping my
> "dynamicFields" in the index to a solrj bean.
> I am using SolrQuery to fetch a QueryResponse object, and use
> QueryResponse.getBeans(MyAnnotatedClass.class) to fetch beans mapped to my
> index.
>
> There is no way to map dynamic fields in my index (*_i kind of fields) to
> these beans. Seems as if there is no support in the DocumentObjectBinder
> class as well to do the same.
> Is this a possible enhancement?
>
> Note: I don't know the name of the dynamic fields upfront.
>
> Cheers
> Avlesh
>



-- 
--Noble Paul