You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by mi...@apache.org on 2009/05/14 12:50:53 UTC
svn commit: r774727 - in /lucene/java/trunk: CHANGES.txt contrib/CHANGES.txt
contrib/analyzers/src/test/org/apache/lucene/analysis/ar/TestArabicAnalyzer.java
Author: mikemccand
Date: Thu May 14 10:50:52 2009
New Revision: 774727
URL: http://svn.apache.org/viewvc?rev=774727&view=rev
Log:
LUCENE-1629: move CHANGES entry to contrib; add TestArabicAnalyzer
Added:
lucene/java/trunk/contrib/analyzers/src/test/org/apache/lucene/analysis/ar/TestArabicAnalyzer.java
Modified:
lucene/java/trunk/CHANGES.txt
lucene/java/trunk/contrib/CHANGES.txt
Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=774727&r1=774726&r2=774727&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Thu May 14 10:50:52 2009
@@ -308,12 +308,6 @@
cross-correlate Spans from different fields.
(Paul Cowan and Chris Hostetter)
-25. LUCENE-1629: Add SmartChineseAnalyzer to contrib/analyzers. It
- improves on CJKAnalyzer and ChineseAnalyzer by handling Chinese
- sentences properly. SmartChineseAnalyzer uses a Hidden Markov
- Model to tokenize Chinese words in a more intelligent way.
- (Xiaoping Gao via Mike McCandless)
-
Optimizations
1. LUCENE-1427: Fixed QueryWrapperFilter to not waste time computing
Modified: lucene/java/trunk/contrib/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/CHANGES.txt?rev=774727&r1=774726&r2=774727&view=diff
==============================================================================
--- lucene/java/trunk/contrib/CHANGES.txt (original)
+++ lucene/java/trunk/contrib/CHANGES.txt Thu May 14 10:50:52 2009
@@ -55,6 +55,12 @@
you can download the .bz2 export from http://wikipedia.org and
immediately index it. (Shai Erera via Mike McCandless)
+ 5. LUCENE-1629: Add SmartChineseAnalyzer to contrib/analyzers. It
+ improves on CJKAnalyzer and ChineseAnalyzer by handling Chinese
+ sentences properly. SmartChineseAnalyzer uses a Hidden Markov
+ Model to tokenize Chinese words in a more intelligent way.
+ (Xiaoping Gao via Mike McCandless)
+
Documentation
Added: lucene/java/trunk/contrib/analyzers/src/test/org/apache/lucene/analysis/ar/TestArabicAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/src/test/org/apache/lucene/analysis/ar/TestArabicAnalyzer.java?rev=774727&view=auto
==============================================================================
--- lucene/java/trunk/contrib/analyzers/src/test/org/apache/lucene/analysis/ar/TestArabicAnalyzer.java (added)
+++ lucene/java/trunk/contrib/analyzers/src/test/org/apache/lucene/analysis/ar/TestArabicAnalyzer.java Thu May 14 10:50:52 2009
@@ -0,0 +1,36 @@
+package org.apache.lucene.analysis.ar;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+import junit.framework.TestCase;
+
+/**
+ * Test the Arabic Analyzer
+ *
+ */
+public class TestArabicAnalyzer extends TestCase {
+
+ /** This test fails with NPE when the
+ * stopwords file is missing in classpath */
+ public void testResourcesAvailable() {
+ new ArabicAnalyzer();
+ }
+
+ /* TODO: more tests */
+
+}