diff options
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/query/TermItem.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/prelude/query/TermItem.java | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/query/TermItem.java b/container-search/src/main/java/com/yahoo/prelude/query/TermItem.java index 2c33e7a2630..5df0cd120b2 100644 --- a/container-search/src/main/java/com/yahoo/prelude/query/TermItem.java +++ b/container-search/src/main/java/com/yahoo/prelude/query/TermItem.java @@ -97,37 +97,19 @@ public abstract class TermItem extends SimpleIndexedItem implements BlockItem { @Override public int getTermCount() { return 1; } - /** - * This refers to whether accent removal is a meaningful and possible - * operation for this word. It should be named "isTransformable" or similar, - * but for historical reasons that is not the case. This method has nothing - * to do with Unicode normalization. - * - * @return true if accent removal can/should be performed - */ - public boolean isNormalizable() { - return normalizable; - } + /** Returns whether accent removal is a meaningful and possible operation for this word. */ + public boolean isNormalizable() { return normalizable; } /** - * This refers to whether accent removal is a meaningful and possible - * operation for this word. It should be named "isTransformable" or similar, - * but for historical reasons that is not the case. This method has nothing - * to do with Unicode normalization. + * Sets whether accent removal is a meaningful and possible operation for this word. * * @param normalizable set to true if accent removal can/should be performed */ - public void setNormalizable(boolean normalizable) { - this.normalizable = normalizable; - } + public void setNormalizable(boolean normalizable) { this.normalizable = normalizable; } @Override - public SegmentingRule getSegmentingRule() { - return segmentingRule; - } + public SegmentingRule getSegmentingRule() { return segmentingRule; } - public void setSegmentingRule(SegmentingRule segmentingRule) { - this.segmentingRule = segmentingRule; - } + public void setSegmentingRule(SegmentingRule segmentingRule) { this.segmentingRule = segmentingRule; } } |