Re: Retrieving multivalued field elements

2014-08-25 Thread Vivekanand Ittigi
Yes, you are right. It worked ! -Vivek On Mon, Aug 25, 2014 at 7:39 PM, Ahmet Arslan wrote: > Hi Vivek, > > how about this? > > Iterator iter = queryResponse.getResults().iterator(); > > while (iter.hasNext()) { > SolrDocument resultDoc = iter.next(); > > Collection content = >

Re: Retrieving multivalued field elements

2014-08-25 Thread Ahmet Arslan
Hi Vivek, how about this? Iterator iter = queryResponse.getResults().iterator();     while (iter.hasNext()) {       SolrDocument resultDoc = iter.next();       Collection content =  resultDoc.getFieldValues("discussions"); } On Monday, August 25, 2014 4:55 PM, Vivekanand Ittigi wrote: Hi,

Retrieving multivalued field elements

2014-08-25 Thread Vivekanand Ittigi
Hi, I've multivalued field and i want to display all array elements using solrj command. I used the command mentioned below but i'm able to retrieve only 1st element of the array. response.getResults().get(0).getFieldValueMap().get("discussions") Output: Creation Time - 2014-06-12 17:37:53.0 NO