mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 11:27:31 -07:00
Adjust search term logging + use filtered search query
This commit is contained in:
parent
44478db3e6
commit
243b4fb60b
1 changed files with 7 additions and 4 deletions
|
@ -41,9 +41,6 @@ export type MeilisearchNote = {
|
|||
|
||||
export default hasConfig ? {
|
||||
search: (query : string, limit : number, offset : number) => {
|
||||
logger.info(`Searching for ${query}`);
|
||||
logger.info(`Limit: ${limit}`);
|
||||
logger.info(`Offset: ${offset}`);
|
||||
|
||||
/// Advanced search syntax
|
||||
/// from:user => filter by user + optional domain
|
||||
|
@ -88,7 +85,13 @@ export default hasConfig ? {
|
|||
return true;
|
||||
})
|
||||
|
||||
return posts.search(query, {
|
||||
logger.info(`Searching for ${query}`);
|
||||
logger.info(`Limit: ${limit}`);
|
||||
logger.info(`Offset: ${offset}`);
|
||||
logger.info(`Filters: ${constructedFilters}`)
|
||||
|
||||
|
||||
return posts.search(splitSearch.join(" "), {
|
||||
limit: limit,
|
||||
offset: offset,
|
||||
filter: constructedFilters
|
||||
|
|
Loading…
Reference in a new issue