|
@@ -40,9 +40,6 @@ import static org.elasticsearch.common.xcontent.ConstructingObjectParser.optiona
|
|
|
*/
|
|
|
public class PhraseSuggestion extends Suggest.Suggestion<PhraseSuggestion.Entry> {
|
|
|
|
|
|
- @Deprecated
|
|
|
- public static final int TYPE = 3;
|
|
|
-
|
|
|
public PhraseSuggestion(String name, int size) {
|
|
|
super(name, size);
|
|
|
}
|
|
@@ -56,11 +53,6 @@ public class PhraseSuggestion extends Suggest.Suggestion<PhraseSuggestion.Entry>
|
|
|
return PhraseSuggestionBuilder.SUGGESTION_NAME;
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public int getWriteableType() {
|
|
|
- return TYPE;
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
protected Entry newEntry(StreamInput in) throws IOException {
|
|
|
return new Entry(in);
|