Glad you resolved it. I've spent more time than I'd like to admit
trying to get an IDE to play nice!

Erick

On Wed, Sep 7, 2011 at 9:53 AM, Sowmya V.B. <vbsow...@gmail.com> wrote:
> Hi Erick
>
> It was indeed an eclipse issue! Thanks for saying that.
> I cleaned the project, restarted eclipse and built again...and I can see the
> getGroupResponse() method in the intellisense.
>
> I don't understand why eclipse did that...and what happened in a
> restart...but, I now see the method.
>
> Thanks.
>
> Sowmya.
>
> On Wed, Sep 7, 2011 at 3:17 PM, Sowmya V.B. <vbsow...@gmail.com> wrote:
>
>> Hi Erick
>>
>>
>> >>does it compile? Are you absolutely sure you've pathed to the proper jar
>> file? Did you check that the jar file that Eclipse is looking at has been
>> rebuilt after you got the new code?
>>  -the webapp does not throw compilation errors. The very fact that I am
>> able to declare a GroupResponse class tells me that I am using the new Jar
>> file and not the old one. Solr 3.3's Solrj jar does not have GroupResponse
>> and all its related classes.
>>
>>
>> >>What ant target did you execute to build the file?
>> -After saying ant dist, a dist directory was created and I took SolrJ jar
>> from that dist directory.
>>
>>
>> >>Has Eclipse re-indexed the contents of the (new) jar file?
>>  -Since I was able to declare a GroupResponse object, I think the Eclipse
>> is using the new Jar file..because the Old Jar (3.3) did not have a
>> GroupResponse class at all (which was why I posed this question in this user
>> group, in the first place)
>>
>> Sowmya.
>>
>>
>> On Wed, Sep 7, 2011 at 3:09 PM, Erick Erickson 
>> <erickerick...@gmail.com>wrote:
>>
>>> Well, all I can say is that it does show up for me. I use IntelliJ but
>>> that shouldn't
>>> matter.
>>>
>>> I suspect there's magic in Eclipse or it's a user error. If you put it
>>> in anyway,
>>> does it compile? Are you absolutely sure you've pathed to the proper
>>> jar file? Did you check that the jar file that Eclipse is looking at has
>>> been
>>> rebuilt after you got the new code? What ant target did you execute to
>>> build the file? Has Eclipse re-indexed the contents of the (new) jar file?
>>>
>>> Perhaps someone with more Eclipse knowledge than me can chime in.
>>>
>>> Best
>>> Erick
>>>
>>> On Wed, Sep 7, 2011 at 9:02 AM, Sowmya V.B. <vbsow...@gmail.com> wrote:
>>> > Hi Erick
>>> >
>>> > I was looking the .Java file in the Src folder (...
>>> > apache-solr-3.4-2011-08-29
>>> _18-09-28/solr/solrj/src/java/org/apache/solr/client/solrj/response/QueryResponse.java)
>>> > to make sure that the method getGroupResponse() exists in the source
>>> code.
>>> >
>>> > After adding the Solrj jar file to my buildpath, and importing
>>> QueryResponse
>>> > and GroupResponse classes from it, I was looking for the method
>>> > getGroupResponse() by doing a Ctrl-Space on my Eclipse IDE, for a
>>> > QueryResponse class instance.  Attaching a screenshot of "ctrl-space",
>>> to
>>> > make myself more clear.
>>> >
>>> > As you can see in the screenshot, I can declare an object for
>>> GroupResponse
>>> > class, without getting errors. But, I dont see a getGroupResponse()
>>> method
>>> > for response (which is a QueryResponse object) object.
>>> >
>>> > Sowmya.
>>> >
>>> > On Wed, Sep 7, 2011 at 2:45 PM, Erick Erickson <erickerick...@gmail.com
>>> >
>>> > wrote:
>>> >>
>>> >> How were you looking for it? The QueryResponse class exists, and
>>> >> the method is available on an instance of that class in an IDE. As I
>>> said
>>> >> I got a copy this morning.
>>> >>
>>> >> But 'jar tvf apache-solr-solrj-3.4-SNAPSHOT.jar' won't show you the
>>> >> method, just the class existence.
>>> >>
>>> >> Best
>>> >> Erick
>>> >>
>>> >> On Wed, Sep 7, 2011 at 7:41 AM, Sowmya V.B. <vbsow...@gmail.com>
>>> wrote:
>>> >> > Hi Erick
>>> >> >
>>> >> > Both methods don't exist in the
>>> jar(apache-solr-solrj-3.4-SNAPSHOT.jar)
>>> >> > file.
>>> >> > I did notice getGroupResponse() method in the QueryResponse.java file
>>> in
>>> >> > the
>>> >> > src directory though. But, it did not show up in the Jar file I got
>>> >> > after
>>> >> > compiling the source.
>>> >> >
>>> >> > Sowmya.
>>> >> >
>>> >> > On Wed, Sep 7, 2011 at 1:27 PM, Erick Erickson
>>> >> > <erickerick...@gmail.com>wrote:
>>> >> >
>>> >> >> I think it's
>>> >> >> getGroupResponse, not
>>> >> >> getGroupedResponse
>>> >> >>
>>> >> >> I was looking at source I just got this morning...
>>> >> >>
>>> >> >> Best
>>> >> >> Erick
>>> >> >>
>>> >> >> On Wed, Sep 7, 2011 at 3:32 AM, Sowmya V.B. <vbsow...@gmail.com>
>>> wrote:
>>> >> >> > Hi Martjin
>>> >> >> >
>>> >> >> > Sorry for a late response.
>>> >> >> >
>>> >> >> > I did take the latest Solr build last week.
>>> >> >> >
>>> >> >> > After the new snapshot, there was a class called grouped response:
>>> >> >> > (org.apache.solr.client.solrj.response.GroupResponse)
>>> >> >> > But, the Solrj snapshot (apache-solr-solrj-3.4-SNAPSHOT.jar)'s
>>> >> >> QueryResponse
>>> >> >> > class did not have a method: getGroupedResponse().
>>> >> >> >
>>> >> >> > Is there something I am missing?
>>> >> >> >
>>> >> >> > S.
>>> >> >> >
>>> >> >> > On Wed, Aug 31, 2011 at 2:55 PM, Martijn v Groningen <
>>> >> >> > martijn.v.gronin...@gmail.com> wrote:
>>> >> >> >
>>> >> >> >> The CollapseComponent was never comitted. This class exists in
>>> the
>>> >> >> >> SOLR-236 patches. You don't need to change the configuration in
>>> >> >> >> order
>>> >> >> >> to use grouping.
>>> >> >> >> The blog you mentioned is based on the SOLR-236 patches. The
>>> current
>>> >> >> >> grouping in Solr 3.3 has superseded these patches.
>>> >> >> >>
>>> >> >> >> From Solr 3.4 (not yet released) the QueryResponse class in solrj
>>> >> >> >> has
>>> >> >> >> a method getGroupResponse. Use this method to get the grouped
>>> >> >> >> response.
>>> >> >> >>
>>> >> >> >> On 31 August 2011 14:10, Erick Erickson <erickerick...@gmail.com
>>> >
>>> >> >> wrote:
>>> >> >> >> > Actually, I haven't used the new stuff yet, so I'm not entirely
>>> >> >> >> > sure
>>> >> >> >> either,
>>> >> >> >> > but that sure would be the place to start. There's some
>>> historical
>>> >> >> >> > ambiguity, Grouping started out as "Field Collapsing", and they
>>> >> >> >> > are
>>> >> >> >> > used interchangeably.
>>> >> >> >> >
>>> >> >> >> > If you go to the bug I linked to and open up the patch file,
>>> >> >> >> > you'll
>>> >> >> >> > see the code that implements the grouping in SolrJ, that should
>>> >> >> >> > give you a good place to start.
>>> >> >> >> >
>>> >> >> >> > Best
>>> >> >> >> > Erick
>>> >> >> >> >
>>> >> >> >> > On Wed, Aug 31, 2011 at 3:28 AM, Sowmya V.B. <
>>> vbsow...@gmail.com>
>>> >> >> wrote:
>>> >> >> >> >> Hi Erick
>>> >> >> >> >>
>>> >> >> >> >> I downloaded the latest build from (
>>> >> >> >> >>
>>> >> >> >>
>>> >> >>
>>> >> >>
>>> https://builds.apache.org/job/Solr-3.x/lastSuccessfulBuild/artifact/artifacts/
>>> >> >> >> >> )
>>> >> >> >> >> But, I don't find the required class CollapseComponent in the
>>> >> >> >> >> src.
>>> >> >> >> >> (org.apache.solr.handler.component.CollapseComponent).
>>> >> >> >> >>
>>> >> >> >> >> The SolrJ in 3.4 does seem to have something like
>>> GroupResponse,
>>> >> >> >> >> GroupCommand classes, which might be the ones I am looking for
>>> >> >> (though I
>>> >> >> >> am
>>> >> >> >> >> not very sure).
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >> Regards
>>> >> >> >> >> Sowmya.
>>> >> >> >> >>
>>> >> >> >> >> On Tue, Aug 30, 2011 at 5:14 PM, Erick Erickson <
>>> >> >> >> erickerick...@gmail.com>wrote:
>>> >> >> >> >>
>>> >> >> >> >>> Ahhh, see: https://issues.apache.org/jira/browse/SOLR-2637
>>> >> >> >> >>>
>>> >> >> >> >>> Short form: It's in 3.4, not 3.3.
>>> >> >> >> >>>
>>> >> >> >> >>> So, your choices are:
>>> >> >> >> >>> 1> parse the XML yourself
>>> >> >> >> >>> 2> get a current 3x build (as in one of the nightlys) and use
>>> >> >> >> >>> SolrJ
>>> >> >> >> there.
>>> >> >> >> >>>
>>> >> >> >> >>> Best
>>> >> >> >> >>> Erick
>>> >> >> >> >>>
>>> >> >> >> >>> On Tue, Aug 30, 2011 at 11:09 AM, Sowmya V.B.
>>> >> >> >> >>> <vbsow...@gmail.com>
>>> >> >> >> wrote:
>>> >> >> >> >>> > Hi Erick
>>> >> >> >> >>> >
>>> >> >> >> >>> > Yes, I did see the XML format. But, I did not understand
>>> how
>>> >> >> >> >>> > to
>>> >> >> read
>>> >> >> >> the
>>> >> >> >> >>> > response using SolrJ.
>>> >> >> >> >>> >
>>> >> >> >> >>> > I found some information about Collapse Component on
>>> googling,
>>> >> >> which
>>> >> >> >> >>> looks
>>> >> >> >> >>> > like a normal Solr XML results format.
>>> >> >> >> >>> >
>>> >> >> >> >>>
>>> >> >> >>
>>> >> >>
>>> >> >>
>>> http://blog.jteam.nl/2009/10/20/result-grouping-field-collapsing-with-solr/
>>> >> >> >> >>> >
>>> >> >> >> >>> > However, this class CollapseComponent does not seem to
>>> exist
>>> >> >> >> >>> > in
>>> >> >> Solr
>>> >> >> >> >>> > 3.3. (org.apache.solr.handler.component.CollapseComponent)
>>> >> >> >> >>> > was the component mentioned in that link, which is not
>>> there
>>> >> >> >> >>> > in
>>> >> >> >> Solr3.3
>>> >> >> >> >>> > class files.
>>> >> >> >> >>> >
>>> >> >> >> >>> > Sowmya.
>>> >> >> >> >>> >
>>> >> >> >> >>> > On Tue, Aug 30, 2011 at 4:48 PM, Erick Erickson <
>>> >> >> >> erickerick...@gmail.com
>>> >> >> >> >>> >wrote:
>>> >> >> >> >>> >
>>> >> >> >> >>> >> Have you looked at the XML (or JSON) response format?
>>> >> >> >> >>> >> You're right, it is different and you have to parse it
>>> >> >> >> >>> >> differently, there are move levels. Try this query
>>> >> >> >> >>> >> and you'll see the format (default data set).
>>> >> >> >> >>> >>
>>> >> >> >> >>> >>
>>> >> >> >>
>>> >> >> >>
>>> http://localhost:8983/solr/select?q=*:*&group=on&group.field=manu_exact
>>> >> >> >> >>> >>
>>> >> >> >> >>> >>
>>> >> >> >> >>> >> Best
>>> >> >> >> >>> >> Erick
>>> >> >> >> >>> >>
>>> >> >> >> >>> >> On Tue, Aug 30, 2011 at 9:25 AM, Sowmya V.B.
>>> >> >> >> >>> >> <vbsow...@gmail.com
>>> >> >> >
>>> >> >> >> >>> wrote:
>>> >> >> >> >>> >> > Hi All
>>> >> >> >> >>> >> >
>>> >> >> >> >>> >> > I am trying to use FieldCollapsing feature in Solr. On
>>> the
>>> >> >> >> >>> >> > Solr
>>> >> >> >> admin
>>> >> >> >> >>> >> > interface, I give "...&group=true&group.field=fieldA"
>>> and I
>>> >> >> >> >>> >> > can
>>> >> >> >> see
>>> >> >> >> >>> >> grouped
>>> >> >> >> >>> >> > results.
>>> >> >> >> >>> >> > But, I am not able to figure out how to read those
>>> results
>>> >> >> >> >>> >> > in
>>> >> >> that
>>> >> >> >> >>> order
>>> >> >> >> >>> >> on
>>> >> >> >> >>> >> > java.
>>> >> >> >> >>> >> >
>>> >> >> >> >>> >> > Something like: SolrDocumentList doclist =
>>> >> >> response.getResults();
>>> >> >> >> >>> >> > gives me a set of results, on which I iterate, and get
>>> >> >> something
>>> >> >> >> like
>>> >> >> >> >>> >> > doclist.get(1).getFieldValue("title") etc.
>>> >> >> >> >>> >> >
>>> >> >> >> >>> >> > After grouping, doing the same step throws me error
>>> >> >> (apparently,
>>> >> >> >> >>> because
>>> >> >> >> >>> >> the
>>> >> >> >> >>> >> > returned xml formats are different too).
>>> >> >> >> >>> >> >
>>> >> >> >> >>> >> > How can I read groupValues and thereby other fieldvalues
>>> of
>>> >> >> >> >>> >> > the
>>> >> >> >> >>> documents
>>> >> >> >> >>> >> > inside that group?
>>> >> >> >> >>> >> >
>>> >> >> >> >>> >> > S.
>>> >> >> >> >>> >> > --
>>> >> >> >> >>> >> > Sowmya V.B.
>>> >> >> >> >>> >> > ----------------------------------------------------
>>> >> >> >> >>> >> > Losing optimism is blasphemy!
>>> >> >> >> >>> >> > http://vbsowmya.wordpress.com
>>> >> >> >> >>> >> > ----------------------------------------------------
>>> >> >> >> >>> >> >
>>> >> >> >> >>> >>
>>> >> >> >> >>> >
>>> >> >> >> >>> >
>>> >> >> >> >>> >
>>> >> >> >> >>> > --
>>> >> >> >> >>> > Sowmya V.B.
>>> >> >> >> >>> > ----------------------------------------------------
>>> >> >> >> >>> > Losing optimism is blasphemy!
>>> >> >> >> >>> > http://vbsowmya.wordpress.com
>>> >> >> >> >>> > ----------------------------------------------------
>>> >> >> >> >>> >
>>> >> >> >> >>>
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >> --
>>> >> >> >> >> Sowmya V.B.
>>> >> >> >> >> ----------------------------------------------------
>>> >> >> >> >> Losing optimism is blasphemy!
>>> >> >> >> >> http://vbsowmya.wordpress.com
>>> >> >> >> >> ----------------------------------------------------
>>> >> >> >> >>
>>> >> >> >> >
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> --
>>> >> >> >> Met vriendelijke groet,
>>> >> >> >>
>>> >> >> >> Martijn van Groningen
>>> >> >> >>
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > --
>>> >> >> > Sowmya V.B.
>>> >> >> > ----------------------------------------------------
>>> >> >> > Losing optimism is blasphemy!
>>> >> >> > http://vbsowmya.wordpress.com
>>> >> >> > ----------------------------------------------------
>>> >> >> >
>>> >> >>
>>> >> >
>>> >> >
>>> >> >
>>> >> > --
>>> >> > Sowmya V.B.
>>> >> > ----------------------------------------------------
>>> >> > Losing optimism is blasphemy!
>>> >> > http://vbsowmya.wordpress.com
>>> >> > ----------------------------------------------------
>>> >> >
>>> >
>>> >
>>> >
>>> > --
>>> > Sowmya V.B.
>>> > ----------------------------------------------------
>>> > Losing optimism is blasphemy!
>>> > http://vbsowmya.wordpress.com
>>> > ----------------------------------------------------
>>> >
>>>
>>
>>
>>
>> --
>> Sowmya V.B.
>> ----------------------------------------------------
>> Losing optimism is blasphemy!
>> http://vbsowmya.wordpress.com
>> ----------------------------------------------------
>>
>
>
>
> --
> Sowmya V.B.
> ----------------------------------------------------
> Losing optimism is blasphemy!
> http://vbsowmya.wordpress.com
> ----------------------------------------------------
>

Reply via email to