add yacy
This commit is contained in:
parent
ca86a7e358
commit
af4b97b766
7 changed files with 134 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ import { searchSearxng } from '../lib/searchEngines/searxng';
|
|||
import { searchGooglePSE } from '../lib/searchEngines/google_pse';
|
||||
import { searchBingAPI } from '../lib/searchEngines/bing';
|
||||
import { searchBraveAPI } from '../lib/searchEngines/brave';
|
||||
import { searchYaCy } from '../lib/searchEngines/yacy';
|
||||
import { getSearchEngineBackend } from '../config';
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
|
|
@ -227,6 +228,9 @@ class MetaSearchAgent implements MetaSearchAgentType {
|
|||
case 'brave':
|
||||
res = await searchBraveAPI(question);
|
||||
break;
|
||||
case 'yacy':
|
||||
res = await searchYaCy(question);
|
||||
break;
|
||||
default:
|
||||
throw new Error(`Unknown search engine ${searchEngine}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue