Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 649B4EE83 for ; Sun, 10 Feb 2013 11:43:16 +0000 (UTC) Received: (qmail 78048 invoked by uid 500); 10 Feb 2013 11:43:14 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 77969 invoked by uid 500); 10 Feb 2013 11:43:13 -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 77945 invoked by uid 99); 10 Feb 2013 11:43:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Feb 2013 11:43:12 +0000 Date: Sun, 10 Feb 2013 11:43:12 +0000 (UTC) From: "Shai Erera (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LUCENE-4762) Improve Facet examples MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shai Erera updated LUCENE-4762: ------------------------------- Attachment: LUCENE-4762.patch Patch replaces all examples by simpler versions. There are no sub-packages anymore for each example, but a straight and simple class (and matching test). > Improve Facet examples > ---------------------- > > Key: LUCENE-4762 > URL: https://issues.apache.org/jira/browse/LUCENE-4762 > Project: Lucene - Core > Issue Type: Improvement > Components: modules/facet > Reporter: Shai Erera > Attachments: LUCENE-4762.patch > > > Facet examples need some simplification and cleanup. For instance, MultiCLExample uses a Random (with fixed seed) to generate documents and categories and in general they seem to try an reuse a lot of methods. > Rather, I think the example code should be concise and short, demonstrating what it needs to demonstrate, even at the expense of duplicating code. That way, a user can just look at an example class to understand how to do something... -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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