Tests for indexing a PHP AST with Lucene search engine;
[phpeclipse.git] / net.sourceforge.phpeclipse.tests / src / net / sourceforge / phpdt / core / tests / lucene / PHPWriter.java
index d370d3b..74240dc 100644 (file)
@@ -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