From 4e37d3f43e276babfc3c6a89bc843f79234b9462 Mon Sep 17 00:00:00 2001 From: axelcl Date: Fri, 2 Sep 2005 19:39:42 +0000 Subject: [PATCH 1/1] Tests for indexing a PHP AST with Lucene search engine; Needs more ideas how to store the meta-information :-) --- .../phpdt/core/tests/lucene/PHPWriter.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpdt/core/tests/lucene/PHPWriter.java b/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpdt/core/tests/lucene/PHPWriter.java index d370d3b..74240dc 100644 --- a/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpdt/core/tests/lucene/PHPWriter.java +++ b/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpdt/core/tests/lucene/PHPWriter.java @@ -50,7 +50,7 @@ public PHPWriter(String indexPath, boolean create) throws IOException { // add the php function name String function = new String(m.selector); doc.add(Field.Keyword("f", function)); - doc.add(Field.UnIndexed(function, "class meta-info")); + doc.add(Field.UnIndexed(function, "function meta-info")); } else if (obj instanceof TypeDeclaration) { c = (TypeDeclaration) obj; // add the class-name -- 1.7.1