private boolean segmentStart(int i,int j,int previousJ) {
        metrics.onNewSegment(i, j, previousJ);

        if (previousJ>=0)
            metrics.onPair(i,j,previousJ);

        if (collectTrace)
            metrics.trace().add("    new segment at:   " + i + "->" + j + " (" + query.getTerms()[i] + ")" + "\n");
        return true;
    }
Returns whether this segment was accepted as a starting point
searchlib/src/main/java/com/yahoo/searchlib/ranking/features/fieldmatch/FieldMatchMetricsComputer.java