Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 91939 invoked from network); 4 Apr 2011 23:11:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2011 23:11:44 -0000 Received: (qmail 61573 invoked by uid 500); 4 Apr 2011 23:11:43 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 61509 invoked by uid 500); 4 Apr 2011 23:11:43 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 61502 invoked by uid 99); 4 Apr 2011 23:11:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 23:11:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 23:11:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B162792A2F for ; Mon, 4 Apr 2011 23:11:05 +0000 (UTC) Date: Mon, 4 Apr 2011 23:11:05 +0000 (UTC) From: "Trejkaz (JIRA)" To: dev@lucene.apache.org Message-ID: <88854667.33723.1301958665723.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (LUCENE-3013) I wish Lucene query explanations were easier to localise MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 I wish Lucene query explanations were easier to localise -------------------------------------------------------- Key: LUCENE-3013 URL: https://issues.apache.org/jira/browse/LUCENE-3013 Project: Lucene - Java Issue Type: Wish Components: Query/Scoring Reporter: Trejkaz Often users ask us to provide a nice UI to explain why a document matched their query. Currently the strings output by Explanation are very advanced, and probably only understandable to those who have worked on Lucene. I took a shot at trying to make them friendlier, but it basically came down to parsing the strings it output and trying to figure out what kind of query was at each point (the inability to get to a Query from the Explanation is a small part of the problem here), formulating the result into readable English. In the end it seems a bit too hard. The solution to this could be done in at least two ways: 1. Add getLocalizedSummary() / getLocalizedDescription() method(s) and use resource bundles internally. Projects wishing to localise these could add their own resource bundles to the classpath and/or get them contributed to Lucene. 2. Add subclasses of Explanation with enough methods for callers to interrogate the individual details of the explanation instead of outputting it as a monolithic string. I do like the tree structure of explanations a lot (as it resembles the query tree), I just think there is work to be done splitting up the strings into usable fragments of information. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org