Tests for indexing a PHP AST with Lucene search engine;
[phpeclipse.git] / net.sourceforge.phpeclipse.tests / src / net / sourceforge / phpdt / core / tests / lucene / LuceneTest.java
index 2e8e653..fd388d3 100644 (file)
@@ -19,20 +19,6 @@ import net.sourceforge.phpdt.internal.compiler.problem.DefaultProblem;
 import net.sourceforge.phpdt.internal.compiler.problem.DefaultProblemFactory;
 import net.sourceforge.phpdt.internal.compiler.problem.ProblemReporter;
 import net.sourceforge.phpeclipse.internal.compiler.ast.CompilationUnitDeclaration;
-import net.sourceforge.phpeclipse.internal.compiler.ast.MethodDeclaration;
-import net.sourceforge.phpeclipse.internal.compiler.ast.TypeDeclaration;
-
-import org.apache.lucene.analysis.standard.StandardAnalyzer;
-import org.apache.lucene.document.Document;
-import org.apache.lucene.document.Field;
-import org.apache.lucene.index.IndexWriter;
-import org.apache.lucene.queryParser.ParseException;
-import org.apache.lucene.queryParser.QueryParser;
-import org.apache.lucene.search.Hits;
-import org.apache.lucene.search.IndexSearcher;
-import org.apache.lucene.search.Query;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
 
 public class LuceneTest extends AbstractCompilerTest {
        public LuceneTest(String name) {
@@ -101,9 +87,11 @@ public class LuceneTest extends AbstractCompilerTest {
 
                PHPSearcher indexSearcher = new PHPSearcher(indexPath);
 
+               indexSearcher.getIncludeInfo("hello_world");
                indexSearcher.getClassInfo("Overlib");
                indexSearcher.getAttributeInfo("$ol_closetext");
                indexSearcher.getMethodInfo("set");
+
        }
 
        /**