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:20:09 UTC
svn commit: r345033 - in /lenya/trunk/src/modules/lucene: ./ config/
Author: michi
Date: Wed Nov 16 07:20:02 2005
New Revision: 345033
URL: http://svn.apache.org/viewcvs?rev=345033&view=rev
Log:
lucene module of Robert Goene added
Added:
lenya/trunk/src/modules/lucene/
lenya/trunk/src/modules/lucene/config/
lenya/trunk/src/modules/lucene/config/analyzer_manager.xconf
lenya/trunk/src/modules/lucene/config/default_indexer.xconf
lenya/trunk/src/modules/lucene/config/index_manager.xconf
lenya/trunk/src/modules/lucene/config/parallel_indexer.xconf
lenya/trunk/src/modules/lucene/config/usecase-delete.xconf
lenya/trunk/src/modules/lucene/config/usecase-externalOpensearch.xconf
lenya/trunk/src/modules/lucene/config/usecase-index.xconf
lenya/trunk/src/modules/lucene/config/usecase-opensearch.xconf
lenya/trunk/src/modules/lucene/config/usecase-search.xconf
Added: lenya/trunk/src/modules/lucene/config/analyzer_manager.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/lucene/config/analyzer_manager.xconf?rev=345033&view=auto
==============================================================================
--- lenya/trunk/src/modules/lucene/config/analyzer_manager.xconf (added)
+++ lenya/trunk/src/modules/lucene/config/analyzer_manager.xconf Wed Nov 16 07:20:02 2005
@@ -0,0 +1,29 @@
+<?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"
+ remove="/cocoon/analyzer_manager"
+ unless="/cocoon/analyzer_manager[@logger = 'core.search.analyzer_manager']">
+
+ <analyzer_manager logger="core.search.analyzer_manager">
+ <analyzer id="standard" class="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
+ <analyzer id="stopword_en" class="org.apache.cocoon.components.search.analyzer.ConfigurableStopwordAnalyzer" configfile="context://WEB-INF/analyzer/stopword/English_en.xml" checkupdate="true"/>
+ <analyzer id="stopword_fr" class="org.apache.cocoon.components.search.analyzer.ConfigurableStopwordAnalyzer" configfile="context://WEB-INF/analyzer/stopword/French_fr.xml" checkupdate="true"/>
+ <analyzer id="analyzer_research" class="org.apache.cocoon.components.search.analyzer.ConfigurablePerFieldAnalyzer" configfile="context://WEB-INF/analyzer/perfieldconf.xml" checkupdate="false"/>
+ </analyzer_manager>
+
+</xconf>
Added: lenya/trunk/src/modules/lucene/config/default_indexer.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/lucene/config/default_indexer.xconf?rev=345033&view=auto
==============================================================================
--- lenya/trunk/src/modules/lucene/config/default_indexer.xconf (added)
+++ lenya/trunk/src/modules/lucene/config/default_indexer.xconf Wed Nov 16 07:20:02 2005
@@ -0,0 +1,30 @@
+<?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/default_indexer"
+ unless="/cocoon/default_indexer[@logger = 'core.search.default_indexer']">
+
+<!-- default indexer component -->
+ <default_indexer logger="core.search.default_indexer">
+ <!-- number of lucene documents in the buffer -->
+ <buffersize>200</buffersize>
+ </default_indexer>
+
+</xconf>
Added: lenya/trunk/src/modules/lucene/config/index_manager.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/lucene/config/index_manager.xconf?rev=345033&view=auto
==============================================================================
--- lenya/trunk/src/modules/lucene/config/index_manager.xconf (added)
+++ lenya/trunk/src/modules/lucene/config/index_manager.xconf Wed Nov 16 07:20:02 2005
@@ -0,0 +1,33 @@
+<?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" />
+
+ <indexes>
+ <!-- publication-specific index_manager_index.xpatch will place their indexes here -->
+ </indexes>
+ </index_manager>
+
+</xconf>
Added: lenya/trunk/src/modules/lucene/config/parallel_indexer.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/lucene/config/parallel_indexer.xconf?rev=345033&view=auto
==============================================================================
--- lenya/trunk/src/modules/lucene/config/parallel_indexer.xconf (added)
+++ lenya/trunk/src/modules/lucene/config/parallel_indexer.xconf Wed Nov 16 07:20:02 2005
@@ -0,0 +1,30 @@
+<?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/parallel_indexer"
+ unless="/cocoon/parallel_indexer[@logger = 'core.search.parallel_indexer']">
+
+<!-- parallel indexer component -->
+ <parallel_indexer logger="core.search.parallel_indexer">
+ <!-- number of thread (normaly = number of CPUs) -->
+ <numthread>2</numthread>
+ </parallel_indexer>
+
+</xconf>
Added: lenya/trunk/src/modules/lucene/config/usecase-delete.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/lucene/config/usecase-delete.xconf?rev=345033&view=auto
==============================================================================
--- lenya/trunk/src/modules/lucene/config/usecase-delete.xconf (added)
+++ lenya/trunk/src/modules/lucene/config/usecase-delete.xconf Wed Nov 16 07:20:02 2005
@@ -0,0 +1,27 @@
+<?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/usecases" unless="/cocoon/usecases/component-instance[@name = 'lucene.delete']">
+
+ <component-instance name="lucene.delete" logger="lenya.lucene" class="org.apache.lenya.cms.usecase.DummyUsecase">
+ <view template="usecases/lucene/delete.jx"/>
+ <exit usecase="lucene.delete"/>
+ </component-instance>
+
+</xconf>
Added: lenya/trunk/src/modules/lucene/config/usecase-externalOpensearch.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/lucene/config/usecase-externalOpensearch.xconf?rev=345033&view=auto
==============================================================================
--- lenya/trunk/src/modules/lucene/config/usecase-externalOpensearch.xconf (added)
+++ lenya/trunk/src/modules/lucene/config/usecase-externalOpensearch.xconf Wed Nov 16 07:20:02 2005
@@ -0,0 +1,27 @@
+<?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/usecases" unless="/cocoon/usecases/component-instance[@name = 'lucene.externalOpensearch']">
+
+ <component-instance name="lucene.externalOpensearch" logger="lenya.lucene" class="org.apache.lenya.cms.usecase.DummyUsecase">
+ <view template="usecases/lucene/externalOpensearch.jx"/>
+ <exit usecase="lucene.externalOpensearch"/>
+ </component-instance>
+
+</xconf>
Added: lenya/trunk/src/modules/lucene/config/usecase-index.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/lucene/config/usecase-index.xconf?rev=345033&view=auto
==============================================================================
--- lenya/trunk/src/modules/lucene/config/usecase-index.xconf (added)
+++ lenya/trunk/src/modules/lucene/config/usecase-index.xconf Wed Nov 16 07:20:02 2005
@@ -0,0 +1,27 @@
+<?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/usecases" unless="/cocoon/usecases/component-instance[@name = 'lucene.index']">
+
+ <component-instance name="lucene.index" logger="lenya.lucene" class="org.apache.lenya.cms.usecase.DummyUsecase">
+ <view template="usecases/lucene/index.jx"/>
+ <exit usecase="lucene.index"/>
+ </component-instance>
+
+</xconf>
Added: lenya/trunk/src/modules/lucene/config/usecase-opensearch.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/lucene/config/usecase-opensearch.xconf?rev=345033&view=auto
==============================================================================
--- lenya/trunk/src/modules/lucene/config/usecase-opensearch.xconf (added)
+++ lenya/trunk/src/modules/lucene/config/usecase-opensearch.xconf Wed Nov 16 07:20:02 2005
@@ -0,0 +1,27 @@
+<?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/usecases" unless="/cocoon/usecases/component-instance[@name = 'lucene.opensearch']">
+
+ <component-instance name="lucene.opensearch" logger="lenya.lucene" class="org.apache.lenya.cms.usecase.DummyUsecase">
+ <view template="usecases/lucene/opensearch.jx"/>
+ <exit usecase="lucene.opensearch"/>
+ </component-instance>
+
+</xconf>
Added: lenya/trunk/src/modules/lucene/config/usecase-search.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/lucene/config/usecase-search.xconf?rev=345033&view=auto
==============================================================================
--- lenya/trunk/src/modules/lucene/config/usecase-search.xconf (added)
+++ lenya/trunk/src/modules/lucene/config/usecase-search.xconf Wed Nov 16 07:20:02 2005
@@ -0,0 +1,27 @@
+<?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/usecases" unless="/cocoon/usecases/component-instance[@name = 'lucene.search']">
+
+ <component-instance name="lucene.search" logger="lenya.lucene" class="org.apache.lenya.cms.usecase.DummyUsecase">
+ <view template="usecases/lucene/search.jx"/>
+ <exit usecase="lucene.search"/>
+ </component-instance>
+
+</xconf>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org