You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-07-13 01:20:23 +02:00
Making autocompete finetuning #660
This commit is contained in:
@ -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.`
|
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({
|
@ConfigProperty({
|
||||||
type: 'unsignedInt',
|
type: 'unsignedInt',
|
||||||
|
@ -42,13 +42,13 @@ export class AutoCompleteService {
|
|||||||
|
|
||||||
this.keywords.push(this.searchQueryParserService.keywords.and);
|
this.keywords.push(this.searchQueryParserService.keywords.and);
|
||||||
this.keywords.push(this.searchQueryParserService.keywords.or);
|
this.keywords.push(this.searchQueryParserService.keywords.or);
|
||||||
for (let i = 0; i < 10; i++) {
|
for (let i = 0; i < 5; i++) {
|
||||||
this.keywords.push(
|
this.keywords.push(
|
||||||
i + '-' + this.searchQueryParserService.keywords.NSomeOf + ':( )'
|
i + '-' + this.searchQueryParserService.keywords.NSomeOf + ':( )'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i = 1; i < 5; i++) {
|
for (let i = 1; i < 3; i++) {
|
||||||
this.keywords.push(
|
this.keywords.push(
|
||||||
this.searchQueryParserService.keywords.lastNDays.replace(/%d/g, i.toString()) + ':'
|
this.searchQueryParserService.keywords.lastNDays.replace(/%d/g, i.toString()) + ':'
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user