mirror of https://github.com/apache/lucene.git
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:
parent
c2130982e3
commit
c607f48fef
21
CHANGES.txt
21
CHANGES.txt
|
@ -38,20 +38,17 @@ API Changes
|
||||||
token (to avoid creating a new String() for each Token). (Mike
|
token (to avoid creating a new String() for each Token). (Mike
|
||||||
McCandless)
|
McCandless)
|
||||||
|
|
||||||
2. LUCENE-944: Remove deprecated methods setUseScorer14() and
|
2. LUCENE-963: Add setters to Field to allow for re-using a single
|
||||||
getUseScorer14() from BooleanQuery. (Paul Elschot via Michael Busch)
|
|
||||||
|
|
||||||
3. LUCENE-963: Add setters to Field to allow for re-using a single
|
|
||||||
Field instance during indexing. This is a sizable performance
|
Field instance during indexing. This is a sizable performance
|
||||||
gain, especially for small documents. (Mike McCandless)
|
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
|
permit re-using of Token and TokenStream instances during
|
||||||
indexing. Changed Token to use a char[] as the store for the
|
indexing. Changed Token to use a char[] as the store for the
|
||||||
termText instead of String. This gives faster tokenization
|
termText instead of String. This gives faster tokenization
|
||||||
performance (~10-15%). (Mike McCandless)
|
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
|
should take place and when, as well as MergeScheduler, which
|
||||||
determines when the selected merges should actually run, out of
|
determines when the selected merges should actually run, out of
|
||||||
IndexWriter. The default merge policy is now
|
IndexWriter. The default merge policy is now
|
||||||
|
@ -59,27 +56,27 @@ API Changes
|
||||||
scheduler is now ConcurrentMergeScheduler (see
|
scheduler is now ConcurrentMergeScheduler (see
|
||||||
LUCENE-870). (Steven Parkes via Mike McCandless)
|
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
|
that allows you to reduce memory usage of the termInfos by further
|
||||||
sub-sampling (over the termIndexInterval that was used during
|
sub-sampling (over the termIndexInterval that was used during
|
||||||
indexing) which terms are loaded into memory. (Chuck Williams,
|
indexing) which terms are loaded into memory. (Chuck Williams,
|
||||||
Doug Cutting via Mike McCandless)
|
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)
|
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()
|
setData(byte[] data, int offset, int length), getData(), getOffset()
|
||||||
and clone() methods to o.a.l.index.Payload. Also add the field name
|
and clone() methods to o.a.l.index.Payload. Also add the field name
|
||||||
as arg to Similarity.scorePayload(). (Michael Busch)
|
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.
|
"partially optimize" an index down to maxNumSegments segments.
|
||||||
(Mike McCandless)
|
(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)
|
(Shai Erera via Michael Busch)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -344,6 +344,20 @@ public class BooleanQuery extends Query {
|
||||||
return allowDocsOutOfOrder;
|
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 {
|
protected Weight createWeight(Searcher searcher) throws IOException {
|
||||||
return new BooleanWeight(searcher);
|
return new BooleanWeight(searcher);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue