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 C067E9149 for ; Mon, 14 May 2012 04:56:16 +0000 (UTC) Received: (qmail 12049 invoked by uid 500); 14 May 2012 04:56:15 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 11984 invoked by uid 500); 14 May 2012 04:56:15 -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 11970 invoked by uid 99); 14 May 2012 04:56:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 04:56:15 +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, 14 May 2012 04:56:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9F285495E5F for ; Mon, 14 May 2012 04:55:51 +0000 (UTC) Date: Mon, 14 May 2012 04:55:51 +0000 (UTC) From: "Chris Male (JIRA)" To: dev@lucene.apache.org Message-ID: <168695643.60379.1336971351653.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <226155814.48938.1336647234113.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (LUCENE-4048) Move getLines out of ResourceLoader and require Charset 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-4048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Male updated LUCENE-4048: ------------------------------- Attachment: LUCENE-4048.patch Patch with a bunch of nocommits for things I'm not happy about. I've added the line reading functionality from {{SolrResourceLoader}} to WordlistLoader but I'm unsure that it belongs there since it's about reading the contents of generic resources, not just those related to stopwords. What I'm thinking of doing is changing ResourceLoader to be an abstract class and putting the contents reading functionality there, and I can also put the boilerplate of integrating it with resources there too. > Move getLines out of ResourceLoader and require Charset > ------------------------------------------------------- > > Key: LUCENE-4048 > URL: https://issues.apache.org/jira/browse/LUCENE-4048 > Project: Lucene - Java > Issue Type: Improvement > Components: modules/analysis > Reporter: Chris Male > Attachments: LUCENE-4048.patch > > > {{ResourceLoader.getLines()}} is only used by analysis factories. {{SolrResourceLoader}}'s implementation does the job well and it's unlikely that another {{ResourceLoader}} implementation would handle it differently. > We should extract the {{getLines()}} method out to {{AbstractAnalysisFactory}} so it can be used by the factories. Additionally we shouldn't assume the files are encoded in UTF-8, instead we should allow a Charset to be specified. > This would take us one step closer to reducing the {{ResourceLoader}} interface just to what it says, a loader of resources. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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