Skip to content

Commit 2f3b4d4

Browse files
author
=
committed
- fixes compilation error
1 parent 0bc51a7 commit 2f3b4d4

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

docker-compose.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,17 @@ version: '3'
44
services:
55

66
manticore:
7-
image: manticoresearch/manticore:6.2.12
7+
image: manticoresearch/manticore:7.4.6
88
environment:
9-
EXTRA: 1
10-
# Will attempt to index 'gamenode' on startup
11-
CREATE_PLAIN_TABLES: gamenode
9+
CREATE_PLAIN_TABLES: games:0 3 * * *;users:0 * * * *;games;users
1210

1311
restart: no
1412
ports:
1513
# Note: ManticoreSearch as minimum built-in security,
1614
# so it's not recommended to expose it to the host in production.
1715
# SQL port, use it with care.
18-
- "127.0.0.1:9306:9306"
19-
- "127.0.0.1:9308:9308"
16+
- "9306:9306"
17+
- "9308:9308"
2018

2119
ulimits:
2220
nproc: 65535

search/games/search_games.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ func buildManticoreOrderString() string {
9494
func buildManticoreSearchRequest(dto *schema.GameSearchRequestDto) (string, error) {
9595

9696
matchString, _ := buildManticoreMatchString(dto)
97-
filterString, _ := buildManticoreFilterString(dto)
98-
paginationString := buildManticorePaginationString(dto)
99-
orderString := buildManticoreOrderString()
97+
// filterString, _ := buildManticoreFilterString(dto)
98+
// paginationString := buildManticorePaginationString(dto)
99+
// orderString := buildManticoreOrderString()
100100

101101
selectString := fmt.Sprintf("SELECT * FROM games WHERE match('%s') OPTION fuzzy=1;", matchString)
102102

0 commit comments

Comments
 (0)