r109915 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109914‎ | r109915 | r109916 >
Date:10:17, 24 January 2012
Author:oren
Status:deferred
Tags:
Comment:
added generated serial Id
Modified paths:
  • /trunk/lucene-search-3/src/main/java/org/apache/lucene/search/ArticleNamespaceScaling.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/apache/lucene/search/ArticleQueryWrap.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/apache/lucene/search/ArticleScaling.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/apache/lucene/search/ConstMinScore.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/apache/lucene/search/CustomBoostQuery.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/apache/lucene/search/LogTransformScore.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/apache/lucene/search/PositionalOptions.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/apache/lucene/search/RelevanceQuery.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/apache/lucene/search/RemoteSearchableMul.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/Article.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/IndexReportCard.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/Redirect.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/ReportId.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/ResultSet.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/SearchResults.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/Title.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/highlight/Highlight.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/highlight/HighlightResult.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/highlight/Snippet.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/index/IndexUpdateRecord.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/index/WikiSimilarity.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/AggregateInfoImpl.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/ArticleInfoImpl.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/CachedFilter.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/FilterWrapper.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/HighlightPack.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/MatchAllTitlesQuery.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/NamespaceCache.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/NamespaceCompositeFilter.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/NamespaceFilter.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/PrefixFilter.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/RankValue.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/SearcherCache.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/SuffixFilter.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/SuffixFilterCache.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/SuffixFilterWrapper.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/SuffixNamespaceFilter.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/SuffixNamespaceWrapper.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/spell/SuggestQuery.java (modified) (history)
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/spell/SuggestResult.java (modified) (history)

Diff [purge]

Index: trunk/lucene-search-3/src/main/java/org/apache/lucene/search/ArticleNamespaceScaling.java
@@ -6,6 +6,10 @@
77 import java.util.Map.Entry;
88
99 public class ArticleNamespaceScaling implements Serializable {
 10+ /**
 11+ *
 12+ */
 13+ private static final long serialVersionUID = 1784906723875795649L;
1014 protected float[] nsBoost = null;
1115 public static float talkPageScale = 0.25f;
1216
Index: trunk/lucene-search-3/src/main/java/org/apache/lucene/search/ArticleQueryWrap.java
@@ -13,6 +13,10 @@
1414 *
1515 */
1616 public class ArticleQueryWrap extends CustomBoostQuery {
 17+ /**
 18+ *
 19+ */
 20+ private static final long serialVersionUID = -1647356840755233019L;
1721 ArticleInfo article;
1822 ArticleScaling scale;
1923 AggregateInfo rank;
@@ -70,6 +74,10 @@
7175 }
7276
7377 protected class ArticleQueryWeight extends CustomWeight {
 78+ /**
 79+ *
 80+ */
 81+ private static final long serialVersionUID = -6334167925459892278L;
7482 public ArticleQueryWeight(Searcher searcher) throws IOException{
7583 super(searcher);
7684 }
Index: trunk/lucene-search-3/src/main/java/org/apache/lucene/search/CustomBoostQuery.java
@@ -51,7 +51,11 @@
5252 */
5353 public class CustomBoostQuery extends Query {
5454
55 - private Query subQuery;
 55+ /**
 56+ *
 57+ */
 58+ private static final long serialVersionUID = 1934182951954995292L;
 59+private Query subQuery;
5660 private Query boostQuery; // optional, can be null
5761 private boolean strict = false; // if true, boosting part of query does not take part in weights normalization.
5862
@@ -176,7 +180,11 @@
177181 //=========================== W E I G H T ============================
178182
179183 protected class CustomWeight implements Weight {
180 - Weight subQueryWeight;
 184+ /**
 185+ *
 186+ */
 187+ private static final long serialVersionUID = -9003307546921937389L;
 188+ Weight subQueryWeight;
181189 Weight boostWeight; // optional
182190 boolean qStrict;
183191 Similarity similarity;
Index: trunk/lucene-search-3/src/main/java/org/apache/lucene/search/LogTransformScore.java
@@ -8,6 +8,11 @@
99 */
1010 public class LogTransformScore extends CustomBoostQuery {
1111
 12+ /**
 13+ *
 14+ */
 15+ private static final long serialVersionUID = 1132683935546317625L;
 16+
1217 public LogTransformScore(Query subQuery) {
1318 super(subQuery);
1419 }
Index: trunk/lucene-search-3/src/main/java/org/apache/lucene/search/RemoteSearchableMul.java
@@ -12,7 +12,11 @@
1313 public class RemoteSearchableMul extends UnicastRemoteObject
1414 implements SearchableMul {
1515
16 - private Searchable local;
 16+ /**
 17+ *
 18+ */
 19+ private static final long serialVersionUID = -1624996715150939881L;
 20+ private Searchable local;
1721
1822 /** Constructs and exports a remote searcher. */
1923 public RemoteSearchableMul(Searchable local) throws RemoteException {
Index: trunk/lucene-search-3/src/main/java/org/apache/lucene/search/ArticleScaling.java
@@ -11,6 +11,11 @@
1212 */
1313 abstract public class ArticleScaling implements Serializable {
1414
 15+ /**
 16+ *
 17+ */
 18+ private static final long serialVersionUID = 2170644350907751230L;
 19+
1520 abstract public float score(float score, float diff);
1621 public String explain(float score, float diff){
1722 return "score="+score+", diff="+diff;
@@ -18,6 +23,10 @@
1924
2025 /** add to score ~ log(1/diff) between [0,max] */
2126 public static class Bonus extends ArticleScaling {
 27+ /**
 28+ *
 29+ */
 30+ private static final long serialVersionUID = 1100709052264451254L;
2231 float max;
2332 public Bonus(float max){
2433 this.max = max;
@@ -30,6 +39,10 @@
3140
3241 /** Scale score by ~ log(1/diff) between [min,max] */
3342 public static class Scaling extends ArticleScaling {
 43+ /**
 44+ *
 45+ */
 46+ private static final long serialVersionUID = 5974506142878361951L;
3447 float max, min;
3548 public Scaling(float min, float max){
3649 this.max = max;
@@ -43,6 +56,10 @@
4457 }
4558 /** Scale score by ~ sqrt(1/diff) between [min,max] */
4659 public static class SqrtScale extends ArticleScaling {
 60+ /**
 61+ *
 62+ */
 63+ private static final long serialVersionUID = 2046408434470271501L;
4764 float max, min;
4865 public SqrtScale(float min, float max){
4966 this.max = max;
@@ -63,6 +80,10 @@
6481
6582 /** Return scores based on a step function of time */
6683 public static class StepScale extends ArticleScaling {
 84+ /**
 85+ *
 86+ */
 87+ private static final long serialVersionUID = 1291538363159806255L;
6788 float[] chunks = new float[5];
6889 public StepScale(float min, float max){
6990 float inc = (max-min)/chunks.length;
@@ -94,6 +115,11 @@
95116
96117 /** No scaling */
97118 public static class None extends ArticleScaling {
 119+ /**
 120+ *
 121+ */
 122+ private static final long serialVersionUID = -65887438293294573L;
 123+
98124 @Override
99125 public final float score(float score, float diff) {
100126 return score;
Index: trunk/lucene-search-3/src/main/java/org/apache/lucene/search/ConstMinScore.java
@@ -1,6 +1,10 @@
22 package org.apache.lucene.search;
33
44 public class ConstMinScore extends CustomBoostQuery {
 5+ /**
 6+ *
 7+ */
 8+ private static final long serialVersionUID = -2209798601936292749L;
59 float minScore;
610 public ConstMinScore(Query subQuery, float minScore) {
711 super(subQuery);
Index: trunk/lucene-search-3/src/main/java/org/apache/lucene/search/RelevanceQuery.java
@@ -20,6 +20,10 @@
2121 *
2222 */
2323 public class RelevanceQuery extends Query {
 24+ /**
 25+ *
 26+ */
 27+ private static final long serialVersionUID = -5784422445218817151L;
2428 private Query main;
2529 private ArrayList<Query> relevance = new ArrayList<Query>();
2630 private boolean strict = false; // if true, boosting part of query does not take part in weights normalization.
@@ -118,6 +122,10 @@
119123 *
120124 */
121125 protected class RelevanceWeight implements Weight {
 126+ /**
 127+ *
 128+ */
 129+ private static final long serialVersionUID = 3207960159834833506L;
122130 Weight mainWeight;
123131 ArrayList<Weight> relevanceWeight = new ArrayList<Weight>();
124132 boolean qStrict;
Index: trunk/lucene-search-3/src/main/java/org/apache/lucene/search/PositionalOptions.java
@@ -6,6 +6,10 @@
77 import org.wikimedia.lsearch.search.AggregateInfoImpl.RankInfo;
88
99 public class PositionalOptions implements Serializable {
 10+ /**
 11+ *
 12+ */
 13+ private static final long serialVersionUID = 8133507278162258948L;
1014 protected AggregateInfo aggregateMeta = null;
1115 protected RankInfo rankMeta = null;
1216
@@ -45,6 +49,11 @@
4650
4751 /** Options specific for phrases in contents */
4852 public static class Sloppy extends PositionalOptions {
 53+ /**
 54+ *
 55+ */
 56+ private static final long serialVersionUID = -6778997372025237713L;
 57+
4958 public Sloppy(){
5059 rankMeta = new RankInfo();
5160 useBeginBoost = true;
@@ -65,6 +74,11 @@
6675
6776 /** Options for alttitle field */
6877 public static class Alttitle extends PositionalOptions {
 78+ /**
 79+ *
 80+ */
 81+ private static final long serialVersionUID = -8151439171086838369L;
 82+
6983 public Alttitle(){
7084 aggregateMeta = new AggregateInfoImpl();
7185 takeMaxScore = true;
@@ -74,6 +88,11 @@
7589 }
7690 /** Match only whole entries on an aggregate field */
7791 public static class AlttitleWhole extends PositionalOptions {
 92+ /**
 93+ *
 94+ */
 95+ private static final long serialVersionUID = -44219584478834032L;
 96+
7897 public AlttitleWhole(){
7998 aggregateMeta = new AggregateInfoImpl();
8099 takeMaxScore = true;
@@ -85,6 +104,11 @@
86105 }
87106
88107 public static class AlttitleWholeSloppy extends PositionalOptions {
 108+ /**
 109+ *
 110+ */
 111+ private static final long serialVersionUID = -543978831961407868L;
 112+
89113 public AlttitleWholeSloppy(){
90114 aggregateMeta = new AggregateInfoImpl();
91115 takeMaxScore = true;
@@ -99,6 +123,11 @@
100124
101125 /** Options specific to related fields */
102126 public static class Related extends PositionalOptions {
 127+ /**
 128+ *
 129+ */
 130+ private static final long serialVersionUID = -2602121388756335605L;
 131+
103132 public Related(){
104133 aggregateMeta = new AggregateInfoImpl();
105134 takeMaxScore = true;
@@ -107,6 +136,11 @@
108137 }
109138
110139 public static class RelatedWhole extends PositionalOptions {
 140+ /**
 141+ *
 142+ */
 143+ private static final long serialVersionUID = 6098185842620225695L;
 144+
111145 public RelatedWhole(){
112146 aggregateMeta = new AggregateInfoImpl();
113147 takeMaxScore = true;
@@ -117,6 +151,11 @@
118152
119153 /** Options for additional alttitle query */
120154 public static class AlttitleSloppy extends PositionalOptions {
 155+ /**
 156+ *
 157+ */
 158+ private static final long serialVersionUID = -1855749973847919484L;
 159+
121160 public AlttitleSloppy(){
122161 aggregateMeta = new AggregateInfoImpl();
123162 takeMaxScore = true;
@@ -127,6 +166,11 @@
128167
129168 /** Options for additional alttitle query */
130169 public static class AlttitleExact extends PositionalOptions {
 170+ /**
 171+ *
 172+ */
 173+ private static final long serialVersionUID = -1774598698488092771L;
 174+
131175 public AlttitleExact(){
132176 aggregateMeta = new AggregateInfoImpl();
133177 takeMaxScore = true;
@@ -136,6 +180,11 @@
137181
138182 /** alttitle query to match redirects */
139183 public static class RedirectMatch extends PositionalOptions {
 184+ /**
 185+ *
 186+ */
 187+ private static final long serialVersionUID = 1371571685071626823L;
 188+
140189 public RedirectMatch(){
141190 aggregateMeta = new AggregateInfoImpl();
142191 takeMaxScore = true;
@@ -151,6 +200,11 @@
152201
153202 /** alttitle query to match complete titles */
154203 public static class RedirectComplete extends PositionalOptions {
 204+ /**
 205+ *
 206+ */
 207+ private static final long serialVersionUID = -8968024335275647874L;
 208+
155209 public RedirectComplete(){
156210 aggregateMeta = new AggregateInfoImpl();
157211 takeMaxScore = true;
@@ -163,6 +217,11 @@
164218
165219 /** Options for sections field */
166220 public static class Sections extends PositionalOptions {
 221+ /**
 222+ *
 223+ */
 224+ private static final long serialVersionUID = -8692410614019818270L;
 225+
167226 public Sections(){
168227 aggregateMeta = new AggregateInfoImpl();
169228 takeMaxScore = true;
@@ -172,6 +231,11 @@
173232
174233 /** Options for sections field */
175234 public static class SectionsWhole extends PositionalOptions {
 235+ /**
 236+ *
 237+ */
 238+ private static final long serialVersionUID = 1350993858005999931L;
 239+
176240 public SectionsWhole(){
177241 aggregateMeta = new AggregateInfoImpl();
178242 takeMaxScore = true;
@@ -181,6 +245,11 @@
182246 }
183247 /** Fallback to phasequery-type behaviour, no positional info */
184248 public static class PhraseQueryFallback extends PositionalOptions {
 249+ /**
 250+ *
 251+ */
 252+ private static final long serialVersionUID = 6589847326296430092L;
 253+
185254 public PhraseQueryFallback(){
186255 phraseQueryFallback = true;
187256 }
@@ -188,6 +257,11 @@
189258
190259 /** Near match phrases, when more than 50% of nonstopwords are matched */
191260 public static class AlttitleNearMatch extends PositionalOptions {
 261+ /**
 262+ *
 263+ */
 264+ private static final long serialVersionUID = 4735381044510834341L;
 265+
192266 public AlttitleNearMatch(){
193267 aggregateMeta = new AggregateInfoImpl();
194268 takeMaxScore = true;
@@ -195,9 +269,19 @@
196270 }
197271
198272 public abstract static class NamespaceBoost implements Serializable {
 273+ /**
 274+ *
 275+ */
 276+ private static final long serialVersionUID = 1355534237962528582L;
 277+
199278 public abstract float getBoost(int namespace);
200279
201280 public static class DefaultBoost extends NamespaceBoost {
 281+ /**
 282+ *
 283+ */
 284+ private static final long serialVersionUID = -3306348859577417462L;
 285+
202286 public float getBoost(int namespace){
203287 if(namespace % 2 == 1) // talk pages
204288 return 0.75f;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/spell/SuggestResult.java
@@ -7,6 +7,10 @@
88 import org.wikimedia.lsearch.ranks.StringList;
99
1010 public class SuggestResult implements Serializable {
 11+ /**
 12+ *
 13+ */
 14+ private static final long serialVersionUID = -467799933506179851L;
1115 String word;
1216 String decomposed;
1317 int frequency=0;
@@ -21,6 +25,10 @@
2226 HashSet<String> context = null;
2327
2428 public static class SimilarResult extends SuggestResult {
 29+ /**
 30+ *
 31+ */
 32+ private static final long serialVersionUID = -4990218719182038217L;
2533 String key;
2634 String redirectTo;
2735 public SimilarResult(String word, int frequency, int dist, String key, String redirectTo) {
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/spell/SuggestQuery.java
@@ -5,6 +5,10 @@
66
77 /** Result of suggestion for a query */
88 public class SuggestQuery implements Serializable {
 9+ /**
 10+ *
 11+ */
 12+ private static final long serialVersionUID = -2382192421633557329L;
913 protected String searchterm;
1014 protected ArrayList<Integer> ranges;
1115 protected ArrayList<String> similarTitles;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/Redirect.java
@@ -3,6 +3,10 @@
44 import java.io.Serializable;
55
66 public class Redirect implements Serializable {
 7+ /**
 8+ *
 9+ */
 10+ private static final long serialVersionUID = -3255489631746429906L;
711 int namespace;
812 String title;
913 int references;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/Title.java
@@ -5,8 +5,13 @@
66
77 /** Wiki article title */
88 public class Title implements java.io.Serializable {
9 - public int namespace;
 9+ /**
 10+ *
 11+ */
 12+ private static final long serialVersionUID = 2897016046547702537L;
1013
 14+ public int namespace;
 15+
1116 public String title;
1217
1318 public Title() {
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/Article.java
@@ -39,6 +39,10 @@
4040 *
4141 */
4242 public class Article implements Serializable {
 43+ /**
 44+ *
 45+ */
 46+ private static final long serialVersionUID = -6129349087807339628L;
4347 private String namespace, title, contents;
4448 private long pageId;
4549 private int references;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/SearchResults.java
@@ -15,6 +15,10 @@
1616 *
1717 */
1818 public class SearchResults implements Serializable {
 19+ /**
 20+ *
 21+ */
 22+ private static final long serialVersionUID = 5909734328451839045L;
1923 /** false if there is some sort of query-related error */
2024 protected boolean success;
2125 protected int numHits;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/ReportId.java
@@ -13,6 +13,10 @@
1414 *
1515 */
1616 public class ReportId implements Serializable {
 17+ /**
 18+ *
 19+ */
 20+ private static final long serialVersionUID = -7461961497310594804L;
1721 public long pageId;
1822 public long timestamp;
1923 /** string repesentation of index id */
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/ResultSet.java
@@ -9,6 +9,10 @@
1010
1111 /** A single search result */
1212 public class ResultSet implements Serializable {
 13+ /**
 14+ *
 15+ */
 16+ private static final long serialVersionUID = -3980290339174421410L;
1317 public double score;
1418 public String namespace;
1519 public String title;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/beans/IndexReportCard.java
@@ -10,6 +10,10 @@
1111 *
1212 */
1313 public class IndexReportCard implements Serializable {
 14+ /**
 15+ *
 16+ */
 17+ private static final long serialVersionUID = 3088690949562091144L;
1418 protected boolean succDelete;
1519 protected boolean succAdd;
1620 protected ReportId id;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/MatchAllTitlesQuery.java
@@ -36,6 +36,10 @@
3737 * @author John Wang
3838 */
3939 public class MatchAllTitlesQuery extends Query {
 40+ /**
 41+ *
 42+ */
 43+ private static final long serialVersionUID = -1601667485818315572L;
4044 protected String titleField;
4145
4246 public MatchAllTitlesQuery(String titleField) {
@@ -91,6 +95,10 @@
9296 }
9397
9498 private class MatchAllDocsWeight implements Weight {
 99+ /**
 100+ *
 101+ */
 102+ private static final long serialVersionUID = 3242930691905297732L;
95103 private Similarity similarity;
96104 private float queryWeight;
97105 private float queryNorm;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/PrefixFilter.java
@@ -11,6 +11,10 @@
1212 import org.apache.lucene.search.Filter;
1313
1414 public class PrefixFilter extends Filter {
 15+ /**
 16+ *
 17+ */
 18+ private static final long serialVersionUID = 8990422701366201752L;
1519 String[] prefixes;
1620
1721 public PrefixFilter(String[] prefixes){
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/ArticleInfoImpl.java
@@ -8,6 +8,10 @@
99 import org.wikimedia.lsearch.search.ArticleMeta.ArticleMetaSource;
1010
1111 public class ArticleInfoImpl implements ArticleInfo, Serializable {
 12+ /**
 13+ *
 14+ */
 15+ private static final long serialVersionUID = -6644676683172345759L;
1216 protected transient ArticleMetaSource src = null;
1317
1418
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/AggregateInfoImpl.java
@@ -19,6 +19,10 @@
2020 *
2121 */
2222 public class AggregateInfoImpl implements AggregateInfo, Serializable {
 23+ /**
 24+ *
 25+ */
 26+ private static final long serialVersionUID = -4735219536132923087L;
2327 private static final Logger log = Logger.getLogger(AggregateInfoImpl.class);
2428 protected transient AggregateMetaFieldSource src = null;
2529 protected boolean hasRankingData = false;
@@ -98,6 +102,11 @@
99103
100104 /** Provides ranking information */
101105 public static class RankInfo extends AggregateInfoImpl {
 106+ /**
 107+ *
 108+ */
 109+ private static final long serialVersionUID = 390927371201941688L;
 110+
102111 @Override
103112 public void init(IndexReader reader, String field) throws IOException {
104113 super.init(reader, "alttitle");
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/NamespaceCompositeFilter.java
@@ -15,6 +15,10 @@
1616 *
1717 */
1818 public class NamespaceCompositeFilter extends Filter {
 19+ /**
 20+ *
 21+ */
 22+ private static final long serialVersionUID = -745670120398519465L;
1923 protected ArrayList<Filter> filters;
2024 protected ArrayList<Filter> redirects;
2125
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/SuffixNamespaceFilter.java
@@ -8,6 +8,10 @@
99 import org.wikimedia.lsearch.config.IndexId;
1010
1111 public class SuffixNamespaceFilter extends Filter {
 12+ /**
 13+ *
 14+ */
 15+ private static final long serialVersionUID = -5307576223153302254L;
1216 protected SuffixFilter suffix;
1317 protected NamespaceFilter ns;
1418 protected String dbrole;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/NamespaceFilter.java
@@ -33,6 +33,10 @@
3434 /** A bean-like class that contains information about what namespaces
3535 * to filter */
3636 public class NamespaceFilter implements Serializable {
 37+ /**
 38+ *
 39+ */
 40+ private static final long serialVersionUID = -2952008708874152903L;
3741 private BitSet included;
3842
3943 protected void init(){
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/HighlightPack.java
@@ -13,6 +13,10 @@
1414 *
1515 */
1616 public class HighlightPack implements Serializable {
 17+ /**
 18+ *
 19+ */
 20+ private static final long serialVersionUID = 609396972424664393L;
1721 public Term[] terms;
1822 public int[] dfs;
1923 public int maxDoc;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/SuffixFilter.java
@@ -3,6 +3,10 @@
44 import java.io.Serializable;
55
66 public class SuffixFilter implements Serializable {
 7+ /**
 8+ *
 9+ */
 10+ private static final long serialVersionUID = -5870248339797151268L;
711 protected String excludeSuffix;
812
913 public SuffixFilter(String excludeSuffix) {
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/SuffixFilterWrapper.java
@@ -12,6 +12,10 @@
1313 *
1414 */
1515 public class SuffixFilterWrapper extends Filter {
 16+ /**
 17+ *
 18+ */
 19+ private static final long serialVersionUID = 3142341770292623568L;
1620 protected SuffixFilter filter;
1721
1822 public SuffixFilterWrapper(SuffixFilter filter){
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/CachedFilter.java
@@ -15,6 +15,10 @@
1616 *
1717 */
1818 public class CachedFilter extends Filter {
 19+ /**
 20+ *
 21+ */
 22+ private static final long serialVersionUID = 6539066674645937801L;
1923 protected Filter filter;
2024 protected transient WeakHashMap<Directory,BitSet> cache = new WeakHashMap<Directory,BitSet>();
2125
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/NamespaceCache.java
@@ -35,6 +35,11 @@
3636
3737 public static class AllFilter extends Filter {
3838
 39+ /**
 40+ *
 41+ */
 42+ private static final long serialVersionUID = 1054909244285213926L;
 43+
3944 @Override
4045 public BitSet bits(IndexReader reader) throws IOException {
4146 BitSet bits = new BitSet(reader.maxDoc());
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/SearcherCache.java
@@ -156,6 +156,10 @@
157157 }
158158
159159 public static class SearcherPoolStatus implements Serializable {
 160+ /**
 161+ *
 162+ */
 163+ private static final long serialVersionUID = 292789721313775724L;
160164 boolean ok = false;
161165 int poolSize = 0;
162166
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/SuffixNamespaceWrapper.java
@@ -7,6 +7,10 @@
88 import org.apache.lucene.search.Filter;
99
1010 public class SuffixNamespaceWrapper extends Filter {
 11+ /**
 12+ *
 13+ */
 14+ private static final long serialVersionUID = -424940152787744368L;
1115 SuffixNamespaceFilter filter = null;
1216
1317 public SuffixNamespaceWrapper(SuffixNamespaceFilter filter) {
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/FilterWrapper.java
@@ -16,6 +16,10 @@
1717 *
1818 */
1919 public class FilterWrapper extends Filter {
 20+ /**
 21+ *
 22+ */
 23+ private static final long serialVersionUID = -3471396522832993612L;
2024 protected NamespaceFilter nsFilter;
2125 /** custom filters AND-ed with nsFilter */
2226 protected ArrayList<Filter> filters = new ArrayList<Filter>();
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/RankValue.java
@@ -14,6 +14,10 @@
1515 *
1616 */
1717 public class RankValue implements ScoreValue, Serializable {
 18+ /**
 19+ *
 20+ */
 21+ private static final long serialVersionUID = 9177306416695849726L;
1822 protected transient RankFieldSource src;
1923 protected float coefficient;
2024
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/search/SuffixFilterCache.java
@@ -16,6 +16,10 @@
1717
1818 /** class to create the bitset that is to be cached */
1919 protected static class SuffixFilterBuilder extends Filter {
 20+ /**
 21+ *
 22+ */
 23+ private static final long serialVersionUID = -1255620294875782513L;
2024 SuffixFilter filter;
2125
2226 public SuffixFilterBuilder(SuffixFilter filter) {
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/highlight/Snippet.java
@@ -10,7 +10,16 @@
1111 *
1212 */
1313 public class Snippet implements Serializable {
 14+ /**
 15+ *
 16+ */
 17+ private static final long serialVersionUID = 3541172706793191310L;
 18+
1419 public static class Range implements Serializable {
 20+ /**
 21+ *
 22+ */
 23+ private static final long serialVersionUID = -1747783281795706440L;
1524 public int start;
1625 public int end;
1726
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/highlight/HighlightResult.java
@@ -10,6 +10,10 @@
1111 *
1212 */
1313 public class HighlightResult implements Serializable {
 14+ /**
 15+ *
 16+ */
 17+ private static final long serialVersionUID = -1883566809164096486L;
1418 protected Snippet title = null;
1519 protected Snippet redirect = null;
1620 protected Snippet section = null;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/highlight/Highlight.java
@@ -60,6 +60,10 @@
6161
6262 /** Results from higlighting multiple articles */
6363 public static class ResultSet implements Serializable {
 64+ /**
 65+ *
 66+ */
 67+ private static final long serialVersionUID = 3890215904401087086L;
6468 public HashMap<String,HighlightResult> highlighted;
6569 /** phrases matched in document, word1_word2 (i.e. separated by underscore) */
6670 public HashSet<String> phrases;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/index/IndexUpdateRecord.java
@@ -21,6 +21,10 @@
2222 *
2323 */
2424 public class IndexUpdateRecord implements Serializable {
 25+ /**
 26+ *
 27+ */
 28+ private static final long serialVersionUID = 6558036612988171250L;
2529 protected Article article;
2630 public enum Action { ADD, UPDATE, DELETE };
2731 protected Action action;
Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/index/WikiSimilarity.java
@@ -12,6 +12,10 @@
1313 *
1414 */
1515 public class WikiSimilarity extends DefaultSimilarity {
 16+ /**
 17+ *
 18+ */
 19+ private static final long serialVersionUID = 2976567527058649924L;
1620 static Logger log = Logger.getLogger(WikiSimilarity.class);
1721 /**
1822 * For content:

Status & tagging log