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:
parent
b1813d7258
commit
b744c72c31
@ -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',
|
||||
|
@ -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()) + ':'
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user