Re: Querying Dynamic Fields.. simple query not working

2009-08-11 Thread Avlesh Singh
SOLR-1129 was for a different use case, Ninad. I have created an issue for this enhancement - https://issues.apache.org/jira/browse/SOLR-1357 Cheers Avlesh On Tue, Aug 11, 2009 at 12:09 PM, Ninad Raut wrote: > Hi, > SOLR-1129 seems to have > been

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Ninad Raut
Hi, SOLR-1129 seems to have been solved . Can I apply the patch? 2009/8/11 Noble Paul നോബിള്‍ नोब्ळ् > On Tue, Aug 11, 2009 at 11:16 AM, Avlesh Singh wrote: > > Ah! I guessed you were using it this way. > > > > I would need to reconfirm this, but

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Noble Paul നോബിള്‍ नोब्ळ्
On Tue, Aug 11, 2009 at 11:16 AM, Avlesh Singh wrote: > Ah! I guessed you were using it this way. > > I would need to reconfirm this, but there seems to be an inconsistency in > fetching data versus adding data via SolrJ w.r.t dynamic fields. > SOLR-1129

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Avlesh Singh
Well there are multiple ways to do it. Instead of using your own class (with annotated fields), you can directly use an instance of SolrInputDocument for each document and call a SolrServer.add(SolrInputDocument doc). For each SolrInputDocument, you can use the addField(String name, Object value) t

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Ninad Raut
Hi Avlesh, Can you tell me a work around to this problem?? Till you have this resolved.:) Regards, Ninad. On Tue, Aug 11, 2009 at 11:16 AM, Avlesh Singh wrote: > Ah! I guessed you were using it this way. > > I would need to reconfirm this, but there seems to be an inconsistency in > fetching dat

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Avlesh Singh
Ah! I guessed you were using it this way. I would need to reconfirm this, but there seems to be an inconsistency in fetching data versus adding data via SolrJ w.r.t dynamic fields. SOLR-1129is essentially about binding the response into a bean with

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Ninad Raut
This is the POJO field mapping: @Field("*_ne") Map ne = new HashMap(); this is how I set the value: Map namedEntity = new HashMap(); namedEntity.put("Germinait", "0.7"); ithursDocument.setNe(namedEntity); server.addBean(ithursDocument); server.commit(); The schema had this dynamic field:

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Avlesh Singh
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 wrote:

Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Ninad Raut
Hi, when I do a *:* query I can see the dynamic field as show below: {Germinait=0.7} 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. N