MCPcopy Create free account
hub / github.com/BaseXdb/basex / score

Method score

basex-core/src/main/java/org/basex/query/value/node/FTNode.java:68–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 }
67
68 @Override
69 public double score() {
70 if(score == null) {
71 if(matches == null) return 0;
72 score = Scoring.textNode(matches.size(), is, tl, data().textLen(pre(), true));
73 }
74 return score;
75 }
76
77 /**
78 * Sets a new score value.

Callers 2

itemMethod · 0.95
nextMethod · 0.95

Calls 5

textNodeMethod · 0.95
sizeMethod · 0.65
preMethod · 0.65
textLenMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected