// This class doesn't appear to be used at all

import BaseModel from '../BaseModel';

export default class Search extends BaseModel {
	public static tableName(): string {
		throw new Error('Not using database');
	}

	public static modelType() {
		return BaseModel.TYPE_SEARCH;
	}

	public static keywords(query: string): string[] {
		const trimmed = query.trim();
		const output = trimmed.split(/[\s\t\n]+/);
		return output.filter((o: string) => !!o);
	}
}
