mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-01-02 03:37:54 +02:00
renaming "from" and "to" to "after" and "before" in search query #309
This commit is contained in:
parent
d0153e58d9
commit
f84f555182
@ -138,26 +138,28 @@ export class BenchmarkRunner {
|
||||
await this.setupDB();
|
||||
|
||||
const queryKeywords: QueryKeywords = {
|
||||
NSomeOf: '-of',
|
||||
NSomeOf: 'of',
|
||||
and: 'and',
|
||||
caption: 'caption',
|
||||
directory: 'directory',
|
||||
file_name: 'file-name',
|
||||
from: 'from',
|
||||
keyword: 'keyword',
|
||||
or: 'or',
|
||||
|
||||
from: 'after',
|
||||
to: 'before',
|
||||
landscape: 'landscape',
|
||||
maxRating: 'max-rating',
|
||||
maxResolution: 'max-resolution',
|
||||
minRating: 'min-rating',
|
||||
minResolution: 'min-resolution',
|
||||
or: 'or',
|
||||
orientation: 'orientation',
|
||||
|
||||
any_text: 'any-text',
|
||||
keyword: 'keyword',
|
||||
caption: 'caption',
|
||||
directory: 'directory',
|
||||
file_name: 'file-name',
|
||||
person: 'person',
|
||||
portrait: 'portrait',
|
||||
position: 'position',
|
||||
someOf: 'some-of',
|
||||
to: 'to',
|
||||
kmFrom: 'km-from'
|
||||
};
|
||||
const queryParser = new SearchQueryParser(queryKeywords);
|
||||
|
@ -8,24 +8,26 @@ export class SearchQueryParserService {
|
||||
public readonly keywords: QueryKeywords = {
|
||||
NSomeOf: 'of',
|
||||
and: 'and',
|
||||
caption: 'caption',
|
||||
directory: 'directory',
|
||||
file_name: 'file-name',
|
||||
from: 'from',
|
||||
keyword: 'keyword',
|
||||
or: 'or',
|
||||
|
||||
from: 'after',
|
||||
to: 'before',
|
||||
landscape: 'landscape',
|
||||
maxRating: 'max-rating',
|
||||
maxResolution: 'max-resolution',
|
||||
minRating: 'min-rating',
|
||||
minResolution: 'min-resolution',
|
||||
or: 'or',
|
||||
orientation: 'orientation',
|
||||
|
||||
any_text: 'any-text',
|
||||
keyword: 'keyword',
|
||||
caption: 'caption',
|
||||
directory: 'directory',
|
||||
file_name: 'file-name',
|
||||
person: 'person',
|
||||
portrait: 'portrait',
|
||||
position: 'position',
|
||||
someOf: 'some-of',
|
||||
to: 'to',
|
||||
kmFrom: 'km-from'
|
||||
};
|
||||
private readonly parser: SearchQueryParser;
|
||||
|
@ -20,26 +20,28 @@ import {
|
||||
import {QueryKeywords, SearchQueryParser} from '../../../src/common/SearchQueryParser';
|
||||
|
||||
const queryKeywords: QueryKeywords = {
|
||||
NSomeOf: '-of',
|
||||
NSomeOf: 'of',
|
||||
and: 'and',
|
||||
caption: 'caption',
|
||||
directory: 'directory',
|
||||
file_name: 'file-name',
|
||||
from: 'from',
|
||||
keyword: 'keyword',
|
||||
or: 'or',
|
||||
|
||||
from: 'after',
|
||||
to: 'before',
|
||||
landscape: 'landscape',
|
||||
maxRating: 'max-rating',
|
||||
maxResolution: 'max-resolution',
|
||||
minRating: 'min-rating',
|
||||
minResolution: 'min-resolution',
|
||||
or: 'or',
|
||||
orientation: 'orientation',
|
||||
|
||||
any_text: 'any-text',
|
||||
keyword: 'keyword',
|
||||
caption: 'caption',
|
||||
directory: 'directory',
|
||||
file_name: 'file-name',
|
||||
person: 'person',
|
||||
portrait: 'portrait',
|
||||
position: 'position',
|
||||
someOf: 'some-of',
|
||||
to: 'to',
|
||||
kmFrom: 'km-from'
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user