public static SignificanceHeuristic parse(XContentParser parser) throws IOException, QueryShardException { // move to the closing bracket if (!parser.nextToken().equals(XContentParser.Token.END_OBJECT)) { throw new ElasticsearchParseException( "failed to parse [jlh] significance heuristic. expected an empty object, but found [{}] instead", parser.currentToken()); } return new JLHScore(); }
checkFrequencyValidity(subsetFreq, subsetSize, supersetFreq, supersetSize, "JLHScore"); if ((subsetSize == 0) || (supersetSize == 0)) {
@Override public SignificanceHeuristic readResult(StreamInput in) throws IOException { return readFrom(in); }
@Override public SignificanceHeuristic parse(XContentParser parser, ParseFieldMatcher parseFieldMatcher, SearchContext context) throws IOException, QueryParsingException { // move to the closing bracket if (!parser.nextToken().equals(XContentParser.Token.END_OBJECT)) { throw new ElasticsearchParseException("failed to parse [jhl] significance heuristic. expected an empty object, but found [{}] instead", parser.currentToken()); } return new JLHScore(); }
checkFrequencyValidity(subsetFreq, subsetSize, supersetFreq, supersetSize, "JLHScore"); if ((subsetSize == 0) || (supersetSize == 0)) {
public static SignificanceHeuristic parse(XContentParser parser) throws IOException, QueryShardException { // move to the closing bracket if (!parser.nextToken().equals(XContentParser.Token.END_OBJECT)) { throw new ElasticsearchParseException( "failed to parse [jlh] significance heuristic. expected an empty object, but found [{}] instead", parser.currentToken()); } return new JLHScore(); }
checkFrequencyValidity(subsetFreq, subsetSize, supersetFreq, supersetSize, "JLHScore"); if ((subsetSize == 0) || (supersetSize == 0)) {
public static SignificanceHeuristic parse(XContentParser parser) throws IOException, QueryShardException { // move to the closing bracket if (!parser.nextToken().equals(XContentParser.Token.END_OBJECT)) { throw new ElasticsearchParseException( "failed to parse [jlh] significance heuristic. expected an empty object, but found [{}] instead", parser.currentToken()); } return new JLHScore(); }
checkFrequencyValidity(subsetFreq, subsetSize, supersetFreq, supersetSize, "JLHScore"); if ((subsetSize == 0) || (supersetSize == 0)) {
public static SignificanceHeuristic parse(QueryParseContext context) throws IOException, QueryShardException { XContentParser parser = context.parser(); // move to the closing bracket if (!parser.nextToken().equals(XContentParser.Token.END_OBJECT)) { throw new ElasticsearchParseException( "failed to parse [jlh] significance heuristic. expected an empty object, but found [{}] instead", parser.currentToken()); } return new JLHScore(); }
checkFrequencyValidity(subsetFreq, subsetSize, supersetFreq, supersetSize, "JLHScore"); if ((subsetSize == 0) || (supersetSize == 0)) {