This is the POJO field mapping:
@Field("*_ne")
Map<String,String> ne = new HashMap<String,String>();
this is how I set the value:
Map<String,String> namedEntity = new HashMap<String,String>();
  namedEntity.put("Germinait", "0.7");
  ithursDocument.setNe(namedEntity);
  server.addBean(ithursDocument);
  server.commit();
The schema had this dynamic field:
 <dynamicField name="ne_*" type="string" indexed="true" stored="true"/>
Let me know if something is missing. Thanks Avlesh.
On Tue, Aug 11, 2009 at 10:34 AM, Avlesh Singh <avl...@gmail.com> wrote:

> Weird that you get to see a field name like "ne_.*" in the response. I am
> afraid that you might be using the field in an incorrect way.
> Can you share the field definition please? And a peek into how are you
> populating these fields?
>
> Cheers
> Avlesh
>
> On Tue, Aug 11, 2009 at 10:29 AM, Ninad Raut <hbase.user.ni...@gmail.com
> >wrote:
>
> > Hi,
> > when I do a *:* query I can see the dynamic field as show below:
> > <str name="ne_.*">{Germinait=0.7}</str>
> > but when I try to query for the same like ne_Germinait:0.7 I get zero
> > records.
> > All the other field which are not dynamic can be easily queried.
> > Can some one please tell me how to query for dynamic fields?
> > Thanks.
> > Ninad.
> >
>

Reply via email to