Tests for indexing a PHP AST with Lucene search engine;
authoraxelcl <axelcl>
Fri, 2 Sep 2005 19:39:42 +0000 (19:39 +0000)
committeraxelcl <axelcl>
Fri, 2 Sep 2005 19:39:42 +0000 (19:39 +0000)
Needs more ideas how to store the meta-information :-)

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