joerg 2004/01/06 04:51:55
Modified: src/blocks/lucene/java/org/apache/cocoon/components/search
SimpleLuceneCocoonIndexerImpl.java
Log:
can the analyzer classname stuff be removed?
Revision Changes Path
1.7 +8 -8
cocoon-2.1/src/blocks/lucene/java/org/apache/cocoon/components/search/SimpleLuceneCocoonIndexerImpl.java
Index: SimpleLuceneCocoonIndexerImpl.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/lucene/java/org/apache/cocoon/components/search/SimpleLuceneCocoonIndexerImpl.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- SimpleLuceneCocoonIndexerImpl.java 23 Dec 2003 15:28:32 -0000
1.6
+++ SimpleLuceneCocoonIndexerImpl.java 6 Jan 2004 12:51:54 -0000
1.7
@@ -127,7 +127,7 @@
protected ComponentManager manager = null;
protected Analyzer analyzer;
- private String analyzerClassnameDefault = ANALYZER_CLASSNAME_DEFAULT;
+// private String analyzerClassnameDefault = ANALYZER_CLASSNAME_DEFAULT;
private int mergeFactor = MERGE_FACTOR_DEFAULT;
@@ -145,21 +145,21 @@
* Configure this component.
*
* @param conf is the configuration
- * @exception ConfigurationException is thrown iff configuring fails
+ * @exception ConfigurationException is thrown if configuring fails
*/
public void configure(Configuration conf) throws ConfigurationException {
Configuration child;
- String value;
- child = conf.getChild(ANALYZER_CLASSNAME_CONFIG, false);
+/* child = conf.getChild(ANALYZER_CLASSNAME_CONFIG, false);
if (child != null) {
// fix Bugzilla Bug 25277, use child.getValue
// and in all following blocks
- value = child.getValue(ANALYZER_CLASSNAME_DEFAULT);
+ String value = child.getValue(ANALYZER_CLASSNAME_DEFAULT);
if (value != null) {
analyzerClassnameDefault = value;
}
}
+*/
child = conf.getChild(MERGE_FACTOR_CONFIG, false);
if (child != null) {
// fix Bugzilla Bug 25277, use child instead of conf
@@ -191,11 +191,11 @@
* index content of base_url, index content of links from base_url.
*
* @param index the lucene store to write the index
to
- * @param create iff true create, or overwrite
existing index, else
+ * @param create if true create, or overwrite
existing index, else
* update existing index.
* @param base_url index content of base_url, and crawl
through all its
* links recursivly.
- * @exception ProcessingException is thrown iff indexing fails
+ * @exception ProcessingException is thrown if indexing fails
*/
public void index(Directory index, boolean create, URL base_url)
throws ProcessingException {