Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B573DFB2 for ; Wed, 14 Nov 2012 12:38:54 +0000 (UTC) Received: (qmail 67526 invoked by uid 500); 14 Nov 2012 12:38:52 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 67299 invoked by uid 500); 14 Nov 2012 12:38:51 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 66833 invoked by uid 99); 14 Nov 2012 12:38:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2012 12:38:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of uwe@thetaphi.de designates 188.138.97.18 as permitted sender) Received: from [188.138.97.18] (HELO mail.sd-datasolutions.de) (188.138.97.18) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2012 12:38:43 +0000 Received: from VEGA (unknown [82.113.121.207]) by mail.sd-datasolutions.de (Postfix) with ESMTPSA id 96D3614AA07C for ; Wed, 14 Nov 2012 12:38:22 +0000 (UTC) From: "Uwe Schindler" To: References: <12072_1352894693_ZZi1_7cb8iTiT.00_50A388E3.5020704@uni-bielefeld.de> <5141_1352895465_ZZi1_7ck~iUim.00_50A38BE8.9060303@uni-bielefeld.de> In-Reply-To: <5141_1352895465_ZZi1_7ck~iUim.00_50A38BE8.9060303@uni-bielefeld.de> Subject: RE: com.sun.jdi.InvocationException occurred invoking method Date: Wed, 14 Nov 2012 13:38:21 +0100 Message-ID: <002c01cdc264$ef182eb0$cd488c10$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGRCK8wMQMO3ilglDr4TBkI+imywwFon86hmFdzbDA= Content-Language: de X-Virus-Checked: Checked by ClamAV on apache.org Fields is only used while sorting results against fields. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: Bernd Fehling [mailto:bernd.fehling@uni-bielefeld.de] > Sent: Wednesday, November 14, 2012 1:18 PM > To: java-user@lucene.apache.org > Subject: Re: com.sun.jdi.InvocationException occurred invoking method >=20 > While inspecting the content of topDocs.ScoreDoc I see 4 variables: > - doc > - fields > - score > - shardIndex > But ScoreDoc knows only about 3 (doc, score, shardIndex) is this the > problem? >=20 > Regards > Bernd >=20 >=20 >=20 > Am 14.11.2012 13:04, schrieb Bernd Fehling: > > Hi list, > > while walking through the code with debugger (eclipse juno) I get = the > following: > > com.sun.jdi.InvocationException occurred invoking method. > > This is while trying to see org.apache.lucene.search.ScoreDoc > > > > So the debugger seams to have a problem with the toString() of > > ScoreDoc.java which looks as follows: > > > > // A convenience method for debugging. > > @Override > > public String toString() { > > return "doc=3D" + doc + " score=3D" + score + " shardIndex=3D" + = shardIndex; > > } > > > > I have no problems with toString() from other classes so the = solution > > might be to first create a String and return the String value? > > > > // A convenience method for debugging. > > @Override > > public String toString() { > > String s =3D "doc=3D" + doc + " score=3D" + score + " = shardIndex=3D" + shardIndex; > > return s; > > } > > > > Or use a StringBuilder like in = org.apache.lucene.search.Sort.toString()? > > > > Any thoughts on this? > > > > Regards > > Bernd >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org