// we just count the number of distinct terms matched
while(nextMatch != null) {
freq += nextMatch.getFrequency();
nextMatch = nextMatch.getNextMatch();
}
result = new DoubleValue(freq);
}
if (context.getProfiler().isEnabled())
{context.getProfiler().end(this, "", result);}