Skip to content

Commit

Permalink
Fix: 高度な検索でノート本文に含まれないタグが検索対象外なのを修正 (yojo-art#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net authored Nov 5, 2024
1 parent b2b9c79 commit c647faa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG_YOJO.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Cherrypick 4.11.1
- Fix: サーバー情報画面で公式タグを選択するとヘッダが公式タグのままになる不具合を修正 [#527](https://github.com/yojo-art/cherrypick/pull/527)

### Server
- Fix: 高度な検索でノート本文に含まれないタグが検索対象外なのを修正
- Enhance: リモートユーザーの`/api/clips/show``/api/users/clips`の応答にemojisを追加 [#466](https://github.com/yojo-art/cherrypick/pull/466)
- Fix: Opensearch利用時ファイルのセンシティブ状態が変更されたとき変更されるように
- Change: `notes/advanced-search``query`が必須ではなくなりました
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/core/AdvancedSearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ export class AdvancedSearchService {
}

if (q && q !== '') {
const fields = [opts.useStrictSearch ? 'text.keyword' : 'text'];
const fields = ['tags', opts.useStrictSearch ? 'text.keyword' : 'text'];
if (!opts.excludeCW) { fields.push(opts.useStrictSearch ? 'cw.keyword' : 'cw' );}
osFilter.bool.must.push({ simple_query_string: { fields: fields, 'query': q, default_operator: 'and' } });
}
Expand Down

0 comments on commit c647faa

Please sign in to comment.