Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 1459 invoked by uid 500); 16 Nov 2002 14:19:32 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 1447 invoked from network); 16 Nov 2002 14:19:31 -0000 Message-ID: <3DD639CE.3030807@a1.net> Date: Sat, 16 Nov 2002 13:27:58 +0100 From: Bernhard Huber User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: Mods to CocoonLucene References: <4FE368CE-F95A-11D6-B60E-0003935AD2EE@media.demon.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N hi >> Adding configuration to SimpleLuceneCocoonIndexerImpl you work >> the same way as in SimpleLuceneCocoonIndexerImpl. >> >> Adding your stuff SimpleLuceneCocoonIndexerImpl may be expressed >> in the configuration: >> >> <index-field-rules> >> <!-- sequence of index field rules is important, >> first come first server rule resolution >> --> >> <index-field-rule name="*@title" mode="Indexed,Stored"/> >> .... >> <!-- the default rule as yet used --> >> <index-field name="*@*" mode="Unstored"/> >> <index-field name="body" mode="Unstored"/> >> </index-fields> >> > > You have me confused, now, are you saying this is already implemented? > I cannot find any reference to this configuration in the 2.1 code. now the index-field-rules configuration snippet above is a suggestion to make your title stuff configurable, it is not implemented yet, just a suggestion how the configuration should look like. > >> ad Index Updating: >> hopefully will answer you later.... >> >> ad Content View Setting: >> define in your sitemap: >> <map:view from-label="content" name="index-view"> >> <map:serialize type="xml"/> >> </map:view> >> >> Use index-view in indexing/crawling a new view-name, check by using >> url ...?cocoon-view=index-view your setting >> > > Are you sure this configuration is being read? > > The default "cocoon-view=content" is set in > "SimpleLuceneXMLIndexerImpl", but I cannot see where the configuration > overrides the default. you are right, i put the view label-snippet-sitemap snippet above to explain how to configure a new view. As you pointed out the new view definition is yet useless as SimpleLuceneXMLIndexerImpl is still a bit ignorant.... > > SimpleLuceneXMLIndexerImpl has an empty 'configure' method. > that's right, SimpleLuceneXMLIndexerImpl has empty 'configure', and if you want to change it you are free to use the configuration suggestion of above, and add your own needs. regards Bernhard --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org