You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by na...@apache.org on 2007/11/13 02:29:41 UTC
svn commit: r594389 -
/xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java
Author: natalia
Date: Mon Nov 12 17:29:40 2007
New Revision: 594389
URL: http://svn.apache.org/viewvc?rev=594389&view=rev
Log:
Log message when query performance can be improved by using
index
Modified:
xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java
Modified: xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java?rev=594389&r1=594388&r2=594389&view=diff
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java (original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java Mon Nov 12 17:29:40 2007
@@ -1184,6 +1184,8 @@
}
idxMgr.create(new Configuration(e));
+ } else {
+ log.debug("Query performance may be improved by using ValueIndex with pattern '" + ps + "'");
}
} catch (Exception e) {
if (log.isWarnEnabled()) {
@@ -1226,6 +1228,7 @@
}
} else {
// there is no Lucene indexer, fall back to default analyzer
+ log.debug("Query performance may be improved by using LuceneIndex with pattern '" + ps + "'");
analyzer = (Analyzer) Class.forName(LuceneIndexer.DEFANALYZER).newInstance();
parameters.put(PARAM_ANALYZER, analyzer);
}