Return-Path: Delivered-To: apmail-incubator-jspwiki-user-archive@minotaur.apache.org Received: (qmail 75263 invoked from network); 13 Jan 2011 09:07:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2011 09:07:37 -0000 Received: (qmail 73402 invoked by uid 500); 13 Jan 2011 09:07:37 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 73195 invoked by uid 500); 13 Jan 2011 09:07:34 -0000 Mailing-List: contact jspwiki-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-user@incubator.apache.org Delivered-To: mailing list jspwiki-user@incubator.apache.org Received: (qmail 73186 invoked by uid 99); 13 Jan 2011 09:07:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jan 2011 09:07:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.8.233.65] (HELO august.de) (195.8.233.65) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jan 2011 09:07:28 +0000 Received: from [192.168.0.3] (unknown [92.116.7.145]) (Authenticated sender: rolf) by august.de (Postfix) with ESMTPA id 66BF91FEB3 for ; Thu, 13 Jan 2011 10:07:04 +0100 (CET) Message-ID: <4D2EC0B5.6000305@august.de> Date: Thu, 13 Jan 2011 10:07:01 +0100 From: Rolf Schumacher User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101227 Icedove/3.0.11 MIME-Version: 1.0 To: jspwiki-user@incubator.apache.org Subject: Re: searching References: <4D2B30EF.5050207@august.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ok, Harry, thank you for the link. My suggestions, please correct: - hard-coding of file types seems to me as not a problem: anything shall be searched - the list is too short, important types such as .doc, .odt, .pdf, .ppt, .odp are missing - am I right here?: If I can provide a filter that makes text out of this files it should not be as tough to add them - we may be better off if we have an attribute with each attachment telling its MIME type as far as detectable at attachment time, that way we are not as much dependent on correct file extentions - a quick suggestion: please add .mm as another xml type. The freemind plugin is of great value. kind regards Rolf On 11.01.2011 18:42, Harry Metske wrote: > Rolf, > > see the source > https://github.com/apache/jspwiki/blob/jspwiki_2_8_5/src/com/ecyrd/jspwiki/search/LuceneSearchProvider.java#L328 > > > as you can see, currently the filetypes are hardcoded to just 4 types. > We could make this a configurable option, patches are welcome. > > You say "comments given to an Attachment", I assume you mean Change Notes > entered while uploading an attachment (or saving an normal Wiki Page). > That is a bit more work I think. > Being a complete Lucene null, but looking at the code it looks like we could > add another field (we already index the page author and page name) for the > Change Note. > > regards, > Harry > > > 2011/1/10 Rolf Schumacher > > >> I am using JSPWiki 2.8.4 >> >> Is it possible to extend a search to attachments to some mime types, e.g. >> pdf? >> >> Is it possible to extend a search to the comments given to an attachment? >> >> kind regards >> >> Rolf >> >> >