Skip to content

Commit

Permalink
fix: 日本語周りをもとに戻す
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Sep 20, 2023
1 parent 7162de7 commit 295415e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ mixin SearchableDocumentMixin<T> on DocumentBase<T> {
...rawData,
searchValueFieldKey: searchText
.toLowerCase()
.toHankakuNumericAndAlphabet()
.toZenkakuKatakana()
.toKatakana()
// .toHankakuNumericAndAlphabet()
// .toZenkakuKatakana()
// .toKatakana()
.splitByCharacterAndBigram()
.distinct()
.toMap((e) => MapEntry(e, true)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ mixin SearchableInitialCollectionMixin<T> on ModelInitialCollection<T> {
...rawData,
searchValueFieldKey: searchText
.toLowerCase()
.toHankakuNumericAndAlphabet()
.toZenkakuKatakana()
.toKatakana()
// .toHankakuNumericAndAlphabet()
// .toZenkakuKatakana()
// .toKatakana()
.splitByCharacterAndBigram()
.distinct()
.toMap((e) => MapEntry(e, true)),
Expand Down
7 changes: 4 additions & 3 deletions packages/katana_model/lib/src/model_query.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1270,9 +1270,10 @@ class ModelQueryFilter {
return false;
}
final splitBygram = target
.toHankakuNumericAndAlphabet()
.toZenkakuKatakana()
.toKatakana()
.toLowerCase()
// .toHankakuNumericAndAlphabet()
// .toZenkakuKatakana()
// .toKatakana()
.splitByCharacterAndBigram()
.distinct();
for (final text in splitBygram) {
Expand Down
2 changes: 1 addition & 1 deletion packages/katana_model/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ packages:
path: "../katana"
relative: true
source: path
version: "2.4.1"
version: "2.4.2"
lints:
dependency: transitive
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,10 @@ abstract class FirestoreModelFieldValueConverter {
case ModelQueryFilterType.like:
final texts = filter.value
.toString()
.toHankakuNumericAndAlphabet()
.toZenkakuKatakana()
.toKatakana()
.toLowerCase()
// .toHankakuNumericAndAlphabet()
// .toZenkakuKatakana()
// .toKatakana()
.splitByCharacterAndBigram()
.distinct();
for (final text in texts) {
Expand Down
6 changes: 3 additions & 3 deletions packages/katana_model_firestore/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -278,21 +278,21 @@ packages:
path: "../katana"
relative: true
source: path
version: "2.4.1"
version: "2.4.2"
katana_firebase:
dependency: "direct main"
description:
path: "../katana_firebase"
relative: true
source: path
version: "2.0.12"
version: "2.0.13"
katana_model:
dependency: "direct main"
description:
path: "../katana_model"
relative: true
source: path
version: "2.12.1"
version: "2.12.2"
lints:
dependency: transitive
description:
Expand Down

0 comments on commit 295415e

Please sign in to comment.