r109159 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109158‎ | r109159 | r109160 >
Date:16:34, 17 January 2012
Author:oren
Status:deferred
Tags:
Comment:
reverting deletions
Modified paths:
  • /trunk/lucene-search-2/src/org/wikimedia/lsearch/analyzers/Aggregate.java (replaced) (history)

Diff [purge]

Index: trunk/lucene-search-2/src/org/wikimedia/lsearch/analyzers/Aggregate.java
@@ -1,7 +1,6 @@
22 package org.wikimedia.lsearch.analyzers;
33
44 import java.io.IOException;
5 -import java.io.StringReader;
65 import java.util.ArrayList;
76 import java.util.HashSet;
87
@@ -29,7 +28,7 @@
3029 * @throws IOException */
3130 public Aggregate(String text, float boost, IndexId iid, Analyzer analyzer,
3231 String field, HashSet<String> stopWords, Flags flags) throws IOException{
33 - setTokens(toTokenArray(analyzer.tokenStream(field,new StringReader(text))),stopWords);
 32+ setTokens(toTokenArray(analyzer.tokenStream(field,text)),stopWords);
3433 this.boost = boost;
3534 this.flags = flags;
3635
@@ -61,7 +60,7 @@
6261 * @throws IOException */
6362 public Aggregate(String text, float boost, IndexId iid, Analyzer analyzer,
6463 String field, Flags flags) throws IOException{
65 - this.tokens = toTokenArray(analyzer.tokenStream(field,new StringReader(text)));
 64+ this.tokens = toTokenArray(analyzer.tokenStream(field,text));
6665 this.boost = boost;
6766 this.noStopWordsLength = noAliasLength();
6867 this.flags = flags;
Property changes on: trunk/lucene-search-2/src/org/wikimedia/lsearch/analyzers/Aggregate.java
___________________________________________________________________
Deleted: svn:eol-style
6968 - native

Status & tagging log