1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

Making autocompete finetuning #660

This commit is contained in:
Patrik J. Braun 2023-06-22 08:43:41 +02:00
parent b1813d7258
commit b744c72c31
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ export class AutoCompleteItemsPerCategoryConfig {
},
description: $localize`Maximum number autocomplete items shown at once. If there is not enough items to reach this value, it takes upto double of the individual items.`
})
maxItems: number = 30;
maxItems: number = 20;
@ConfigProperty({
type: 'unsignedInt',

View File

@ -42,13 +42,13 @@ export class AutoCompleteService {
this.keywords.push(this.searchQueryParserService.keywords.and);
this.keywords.push(this.searchQueryParserService.keywords.or);
for (let i = 0; i < 10; i++) {
for (let i = 0; i < 5; i++) {
this.keywords.push(
i + '-' + this.searchQueryParserService.keywords.NSomeOf + ':( )'
);
}
for (let i = 1; i < 5; i++) {
for (let i = 1; i < 3; i++) {
this.keywords.push(
this.searchQueryParserService.keywords.lastNDays.replace(/%d/g, i.toString()) + ':'
);