summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2021-06-28 16:40:51 +0200
committerJon Bratseth <bratseth@gmail.com>2021-06-28 16:40:51 +0200
commit55bbae63665929d4b2e11af9a40392df2e409413 (patch)
tree65a671c0e756e32f3470b9fd1e9d3b6487a74658 /container-search
parent294127fe37e66cc19c85e9e784ca52299fff3dcc (diff)
No functional changes
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/query/TermItem.java30
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; }
}