You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2005/11/16 16:33:40 UTC
svn commit: r345041 - in /lenya/trunk/src/webapp/lenya/pubs/default/config:
index_manager.xconf index_manager_index.xconf
Author: michi
Date: Wed Nov 16 07:33:35 2005
New Revision: 345041
URL: http://svn.apache.org/viewcvs?rev=345041&view=rev
Log:
lucene config added
Added:
lenya/trunk/src/webapp/lenya/pubs/default/config/index_manager.xconf
lenya/trunk/src/webapp/lenya/pubs/default/config/index_manager_index.xconf
Added: lenya/trunk/src/webapp/lenya/pubs/default/config/index_manager.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/config/index_manager.xconf?rev=345041&view=auto
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/default/config/index_manager.xconf (added)
+++ lenya/trunk/src/webapp/lenya/pubs/default/config/index_manager.xconf Wed Nov 16 07:33:35 2005
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- $Id: doctypes.xconf 164635 2005-04-25 20:01:43Z tschlabach $ -->
+
+<xconf xpath="/cocoon"
+ remove="/cocoon/index_manager"
+ unless="/cocoon/index_manager[@logger = 'core.search.index_manager']">
+
+ <index_manager logger="core.search.index_manager">
+
+ <indexer role="org.apache.cocoon.components.search.components.Indexer/default" />
+
+ <!-- ALL indexes (BE CAREFUL: Change the directory attribute) -->
+ <indexes>
+
+ </indexes>
+ </index_manager>
+
+</xconf>
Added: lenya/trunk/src/webapp/lenya/pubs/default/config/index_manager_index.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/config/index_manager_index.xconf?rev=345041&view=auto
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/default/config/index_manager_index.xconf (added)
+++ lenya/trunk/src/webapp/lenya/pubs/default/config/index_manager_index.xconf Wed Nov 16 07:33:35 2005
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+ <xconf xpath="/cocoon/index_manager/indexes" remove="/cocoon/index_manager/indexes/index" unless="/cocoon/index_manager/indexes/index[@id = 'default']">
+ <index id="default" analyzer="stopword_en" directory="${basedir}/${build.webapp}/lenya/pubs/default/work/lucene/index" >
+ <structure>
+ <field id="url" type="keyword" />
+ <field id="title" type="text" storetext="true"/>
+ <field id="description" type="text" storetext="true"/>
+ <field id="subject" type="keyword" storetext="true" />
+ <field id="body" type="text" storetext="true"/>
+ </structure>
+ </index>
+ </xconf>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org