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
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
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
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
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,
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
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
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.
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
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,
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
Hi All
I am trying to use FieldCollapsing feature in Solr. On the Solr admin
interface, I give ...group=truegroup.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 =
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=ongroup.field=manu_exact
Best
Erick
On Tue,
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/
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
15 matches
Mail list logo