mirror of https://github.com/apache/lucene.git
LUCENE-1808: Query.createWeight has been changed from protected to public
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@805189 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a77168d3c9
commit
7ae9cddfef
10
CHANGES.txt
10
CHANGES.txt
|
@ -94,6 +94,13 @@ Changes in backwards compatibility policy
|
|||
an interface to an abstract class.
|
||||
(Hugh Cayless, Mark Miller)
|
||||
|
||||
7. LUCENE-1808: Query.createWeight has been changed from protected to
|
||||
public. This will be a back compat break if you have overridden this
|
||||
method - but you are likely already affected by the LUCENE-1693 (make Weight
|
||||
abstract rather than an interface) back compat break if you have overridden
|
||||
Query.creatWeight, so we have taken the opportunity to make this change.
|
||||
(Tim Smith, Shai Erera via Mark Miller)
|
||||
|
||||
Changes in runtime behavior
|
||||
|
||||
1. LUCENE-1424: QueryParser now by default uses constant score auto
|
||||
|
@ -384,6 +391,9 @@ API Changes
|
|||
an interface to an abstract class.
|
||||
(Hugh Cayless, Mark Miller)
|
||||
|
||||
36. LUCENE-1808: Query.createWeight has been changed from protected to
|
||||
public. (Tim Smith, Shai Erera via Mark Miller)
|
||||
|
||||
Bug fixes
|
||||
|
||||
1. LUCENE-1415: MultiPhraseQuery has incorrect hashCode() and equals()
|
||||
|
|
|
@ -87,7 +87,7 @@ public abstract class Query implements java.io.Serializable, Cloneable {
|
|||
* <p>
|
||||
* Only implemented by primitive queries, which re-write to themselves.
|
||||
*/
|
||||
protected Weight createWeight(Searcher searcher) throws IOException {
|
||||
public Weight createWeight(Searcher searcher) throws IOException {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue