Revert Lucene-944

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@603415 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Busch 2007-12-11 23:38:01 +00:00
parent c2130982e3
commit c607f48fef
2 changed files with 23 additions and 12 deletions

View File

@ -38,20 +38,17 @@ API Changes
token (to avoid creating a new String() for each Token). (Mike
McCandless)
2. LUCENE-944: Remove deprecated methods setUseScorer14() and
getUseScorer14() from BooleanQuery. (Paul Elschot via Michael Busch)
3. LUCENE-963: Add setters to Field to allow for re-using a single
2. LUCENE-963: Add setters to Field to allow for re-using a single
Field instance during indexing. This is a sizable performance
gain, especially for small documents. (Mike McCandless)
4. LUCENE-969: Add new APIs to Token, TokenStream and Analyzer to
3. LUCENE-969: Add new APIs to Token, TokenStream and Analyzer to
permit re-using of Token and TokenStream instances during
indexing. Changed Token to use a char[] as the store for the
termText instead of String. This gives faster tokenization
performance (~10-15%). (Mike McCandless)
5. LUCENE-847: Factored MergePolicy, which determines which merges
4. LUCENE-847: Factored MergePolicy, which determines which merges
should take place and when, as well as MergeScheduler, which
determines when the selected merges should actually run, out of
IndexWriter. The default merge policy is now
@ -59,27 +56,27 @@ API Changes
scheduler is now ConcurrentMergeScheduler (see
LUCENE-870). (Steven Parkes via Mike McCandless)
6. LUCENE-1052: Add IndexReader.setTermInfosIndexDivisor(int) method
5. LUCENE-1052: Add IndexReader.setTermInfosIndexDivisor(int) method
that allows you to reduce memory usage of the termInfos by further
sub-sampling (over the termIndexInterval that was used during
indexing) which terms are loaded into memory. (Chuck Williams,
Doug Cutting via Mike McCandless)
7. LUCENE-743: Add IndexReader.reopen() method that re-opens an
6. LUCENE-743: Add IndexReader.reopen() method that re-opens an
existing IndexReader (see New features -> 9.) (Michael Busch)
8. LUCENE-1062: Add setData(byte[] data),
7. LUCENE-1062: Add setData(byte[] data),
setData(byte[] data, int offset, int length), getData(), getOffset()
and clone() methods to o.a.l.index.Payload. Also add the field name
as arg to Similarity.scorePayload(). (Michael Busch)
9. LUCENE-982: Add IndexWriter.optimize(int maxNumSegments) method to
8. LUCENE-982: Add IndexWriter.optimize(int maxNumSegments) method to
"partially optimize" an index down to maxNumSegments segments.
(Mike McCandless)
10. LUCENE-1080: Changed Token.DEFAULT_TYPE to be public.
9. LUCENE-1080: Changed Token.DEFAULT_TYPE to be public.
11. LUCENE-1064: Changed TopDocs constructor to be public.
10. LUCENE-1064: Changed TopDocs constructor to be public.
(Shai Erera via Michael Busch)

View File

@ -344,6 +344,20 @@ public class BooleanQuery extends Query {
return allowDocsOutOfOrder;
}
/**
* @deprecated Use {@link #setAllowDocsOutOfOrder(boolean)} instead.
*/
public static void setUseScorer14(boolean use14) {
setAllowDocsOutOfOrder(use14);
}
/**
* @deprecated Use {@link #getAllowDocsOutOfOrder()} instead.
*/
public static boolean getUseScorer14() {
return getAllowDocsOutOfOrder();
}
protected Weight createWeight(Searcher searcher) throws IOException {
return new BooleanWeight(searcher);
}