diff options
author | 2014-02-04 17:47:14 +0900 | |
---|---|---|
committer | 2014-02-04 17:47:14 +0900 | |
commit | 54622d38c246cb5b2ccb24c6756df25b0ce730f4 (patch) | |
tree | 2f6bb2bfb414bc2107db62c5bf2f453fd2593e59 /native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h | |
parent | 08d72c52f9f543968224e23758b8ac81bfba4115 (diff) | |
download | latinime-54622d38c246cb5b2ccb24c6756df25b0ce730f4.tar.gz latinime-54622d38c246cb5b2ccb24c6756df25b0ce730f4.tar.xz latinime-54622d38c246cb5b2ccb24c6756df25b0ce730f4.zip |
Don't boost exact matches for personalized dicts.
Bug: 12800726
Change-Id: Ia3a2f82db6cdc9645cad0e329c0b79328d7452cc
Diffstat (limited to 'native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h')
-rw-r--r-- | native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h b/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h index a44f9f0fc..1320c6560 100644 --- a/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h +++ b/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h @@ -146,6 +146,11 @@ class HeaderPolicy : public DictionaryHeaderStructurePolicy { return mHasHistoricalInfoOfWords; } + AK_FORCE_INLINE bool shouldBoostExactMatches() const { + // TODO: Investigate better ways to handle exact matches for personalized dictionaries. + return !isDecayingDict(); + } + void readHeaderValueOrQuestionMark(const char *const key, int *outValue, int outValueSize) const; |