|
@@ -8,6 +8,7 @@
|
|
|
|
|
|
|
|
package org.elasticsearch.example.customsuggester;
|
|
package org.elasticsearch.example.customsuggester;
|
|
|
|
|
|
|
|
|
|
+import org.elasticsearch.Version;
|
|
|
import org.elasticsearch.xcontent.ParseField;
|
|
import org.elasticsearch.xcontent.ParseField;
|
|
|
import org.elasticsearch.common.ParsingException;
|
|
import org.elasticsearch.common.ParsingException;
|
|
|
import org.elasticsearch.common.io.stream.StreamInput;
|
|
import org.elasticsearch.common.io.stream.StreamInput;
|
|
@@ -129,4 +130,8 @@ public class CustomSuggestionBuilder extends SuggestionBuilder<CustomSuggestionB
|
|
|
return customSuggestionsContext;
|
|
return customSuggestionsContext;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Version getMinimalSupportedVersion() {
|
|
|
|
|
+ return Version.V_EMPTY;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|