Skip to content

Commit 991618c

Browse files
committed
Add conversation index yml, fix indexing unavailable columns
1 parent 18d0f3a commit 991618c

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
-
2+
group_id: 1
3+
max_index: 5
4+
5+
-
6+
group_id: 2
7+
max_index: 2
8+
9+
-
10+
group_id: 3
11+
max_index: 2
12+
13+
-
14+
group_id: 10
15+
max_index: 1
16+
17+
-
18+
group_id: 32
19+
max_index: 2
20+
21+
-
22+
group_id: 48
23+
max_index: 1
24+
25+
-
26+
group_id: 42
27+
max_index: 1
28+
29+
-
30+
group_id: 50
31+
max_index: 1
32+
33+
-
34+
group_id: 51
35+
max_index: 1

modules/indexer/conversations/db/db.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ func (i *Indexer) Search(ctx context.Context, options *internal.SearchOptions) (
6060
subQuery := builder.Select("id").From("conversation").Where(repoCond)
6161

6262
cond = builder.Or(
63-
db.BuildCaseInsensitiveLike("conversation.name", options.Keyword),
64-
db.BuildCaseInsensitiveLike("conversation.content", options.Keyword),
6563
builder.In("conversation.id", builder.Select("id").
6664
From("comment").
6765
Where(builder.And(

0 commit comments

Comments
 (0)