r55390 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55389‎ | r55390 | r55391 >
Date:18:47, 20 August 2009
Author:werdna
Status:deferred
Tags:
Comment:
Prepend thread subject to content in index to make thread subjects searchable
Modified paths:
  • /branches/lucene-search-2.1/src/org/wikimedia/lsearch/index/WikiIndexModifier.java (modified) (history)

Diff [purge]

Index: branches/lucene-search-2.1/src/org/wikimedia/lsearch/index/WikiIndexModifier.java
@@ -734,6 +734,10 @@
735735 String contents = article.getContents();
736736 contents = article.getTitle()+". "+contents;
737737
 738+ if( article.DiscussionThreadingInfo.containsKey("ThreadSubject") ) {
 739+ contents = article.DiscussionThreadingInfo.get("ThreadSubject") + ". " + contents;
 740+ }
 741+
738742 /** Following fields can be optionally case-dependent */
739743 for(FieldBuilder.BuilderSet bs : builder.getBuilders()){
740744 FieldNameFactory fields = bs.getFields();

Status & tagging log