mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 13:44:33 -04:00
wip
This commit is contained in:
parent
40c0403962
commit
49a1dad51e
@ -34,4 +34,7 @@ POSTGRES_DB=kyooDB
|
|||||||
POSTGRES_SERVER=postgres
|
POSTGRES_SERVER=postgres
|
||||||
POSTGRES_PORT=5432
|
POSTGRES_PORT=5432
|
||||||
|
|
||||||
|
MEILI_HTTP_ADDR="http://meilisearch:7700"
|
||||||
|
MEILI_MASTER_KEY="ghvjkgisbgkbgskegblfqbgjkebbhgwkjfb"
|
||||||
|
|
||||||
# vi: ft=sh
|
# vi: ft=sh
|
||||||
|
@ -351,6 +351,14 @@ namespace Kyoo.Core.Controllers
|
|||||||
.FirstOrDefaultAsync(where);
|
.FirstOrDefaultAsync(where);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async Task<ICollection<T>> FromIds(IList<int> ids)
|
||||||
|
{
|
||||||
|
return await Database.Set<T>()
|
||||||
|
.Where(x => ids.Contains(x.Id))
|
||||||
|
.OrderBy(x => ids.IndexOf(x.Id))
|
||||||
|
.ToListAsync();
|
||||||
|
}
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public abstract Task<ICollection<T>> Search(string query);
|
public abstract Task<ICollection<T>> Search(string query);
|
||||||
|
|
||||||
|
@ -97,7 +97,19 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
|
meilisearch:
|
||||||
|
image: getmeili/meilisearch:v1.4
|
||||||
|
ports:
|
||||||
|
- "7700:7700"
|
||||||
|
volumes:
|
||||||
|
- search:/meili_data
|
||||||
|
environment:
|
||||||
|
- MEILI_ENV=development
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
kyoo:
|
kyoo:
|
||||||
db:
|
db:
|
||||||
metadata:
|
metadata:
|
||||||
|
search:
|
||||||
|
@ -70,7 +70,17 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
|
meilisearch:
|
||||||
|
image: getmeili/meilisearch:v1.4
|
||||||
|
volumes:
|
||||||
|
- search:/meili_data
|
||||||
|
environment:
|
||||||
|
- MEILI_ENV=production
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
kyoo:
|
kyoo:
|
||||||
db:
|
db:
|
||||||
metadata:
|
metadata:
|
||||||
|
search:
|
||||||
|
@ -70,7 +70,17 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
|
meilisearch:
|
||||||
|
image: getmeili/meilisearch:v1.4
|
||||||
|
volumes:
|
||||||
|
- search:/meili_data
|
||||||
|
environment:
|
||||||
|
- MEILI_ENV=production
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
kyoo:
|
kyoo:
|
||||||
db:
|
db:
|
||||||
metadata:
|
metadata:
|
||||||
|
search:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user