]> source.dussan.org Git - gitblit.git/commitdiff
Incremental commit indexing was missing branch field
authorJames Moger <james.moger@gitblit.com>
Sat, 17 Mar 2012 15:00:17 +0000 (11:00 -0400)
committerJames Moger <james.moger@gitblit.com>
Sat, 17 Mar 2012 15:00:17 +0000 (11:00 -0400)
src/com/gitblit/LuceneExecutor.java

index e4ee0b67704c47e3587c76b66f9978dbb8400668..489d308dd0f195dbf68a3d1c59fb430af9ce959d 100644 (file)
@@ -680,6 +680,7 @@ public class LuceneExecutor implements Runnable {
                        writer.commit();\r
 \r
                        Document doc = createDocument(commit, null);\r
+                       doc.add(new Field(FIELD_BRANCH, branch, Store.YES, Index.ANALYZED));\r
                        result.commitCount++;\r
                        result.success = index(repositoryName, doc);\r
                } catch (Exception e) {\r