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 DD1FE2BA7 for ; Thu, 5 May 2011 16:25:43 +0000 (UTC) Received: (qmail 83164 invoked by uid 500); 5 May 2011 16:25:42 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 83121 invoked by uid 500); 5 May 2011 16:25:42 -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 83113 invoked by uid 99); 5 May 2011 16:25:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 16:25:42 +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; Thu, 05 May 2011 16:25:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 31427C21BF for ; Thu, 5 May 2011 16:25:03 +0000 (UTC) Date: Thu, 5 May 2011 16:25:03 +0000 (UTC) From: "Olivier Favre (JIRA)" To: dev@lucene.apache.org Message-ID: <1716279138.25101.1304612703198.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1892190426.21900.1304525403817.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3071) PathHierarchyTokenizer adaptation for urls: splits reversed 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-3071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029413#comment-13029413 ] Olivier Favre commented on LUCENE-3071: --------------------------------------- {{ant clean test}} did it for me, thanks! As for the failing tests, it is because of the {{finalOffset}} that I set to {{path.length()}}. I'm not sure whether I should use {{path.length()}}, as my tokens don't go up to there when using the reverse mode. When I take a look at the the end() function, I think that I "should" set it to the end of the string. But I can't see it on the javadoc. If the purpose of the {{finalOffset}} parameter in {{assertTokenStreamContents()}} it to make sure of the {{endOffset}} of the last term, then I should not use {{path.length()}} blindly when using reverse and skip. Can you help me with the purpose of {{finalOffset}}? Or can I simply skip it in my tests (they are working if I skip it)? Thanks > PathHierarchyTokenizer adaptation for urls: splits reversed > ----------------------------------------------------------- > > Key: LUCENE-3071 > URL: https://issues.apache.org/jira/browse/LUCENE-3071 > Project: Lucene - Java > Issue Type: New Feature > Components: contrib/analyzers > Reporter: Olivier Favre > Priority: Minor > Attachments: LUCENE-3071.patch, ant.log.tar.bz2 > > Original Estimate: 2h > Remaining Estimate: 2h > > {{PathHierarchyTokenizer}} should be usable to split urls the a "reversed" way (useful for faceted search against urls): > {{www.site.com}} -> {{www.site.com, site.com, com}} > Moreover, it should be able to skip a given number of first (or last, if reversed) tokens: > {{/usr/share/doc/somesoftware/INTERESTING/PART}} > Should give with 4 tokens skipped: > {{INTERESTING}} > {{INTERESTING/PART}} -- 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