mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Fixing test script, changing min match to add in searching
This commit is contained in:
@@ -38,7 +38,7 @@ echo "sent data":
|
|||||||
sentdata="{
|
sentdata="{
|
||||||
\"questions\": [
|
\"questions\": [
|
||||||
{
|
{
|
||||||
\"q\": \"${q}\",
|
\"Q\": \"${q}\",
|
||||||
\"subj\": \"${subj}\",
|
\"subj\": \"${subj}\",
|
||||||
\"data\": ${data}
|
\"data\": ${data}
|
||||||
}
|
}
|
||||||
|
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"pornvids": {
|
|
||||||
"path": "./modules/pornvids/pornvids.js",
|
|
||||||
"publicdirs": [
|
|
||||||
"publicDirs/vids/"
|
|
||||||
],
|
|
||||||
"name": "pornvids",
|
|
||||||
"urls": [
|
|
||||||
"pornvids.frylabs.net"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
@@ -40,7 +40,7 @@ import utils from './utils/utils'
|
|||||||
import dbtools from './utils/dbtools'
|
import dbtools from './utils/dbtools'
|
||||||
import reqlogger from './middlewares/reqlogger.middleware'
|
import reqlogger from './middlewares/reqlogger.middleware'
|
||||||
import idStats from './utils/ids'
|
import idStats from './utils/ids'
|
||||||
const extraModulesFile = './src/extraModules.json'
|
const extraModulesFile = './data/extraModules.json'
|
||||||
const statExcludeFile = './data/statExclude.json'
|
const statExcludeFile = './data/statExclude.json'
|
||||||
const modulesFile = './src/modules.json'
|
const modulesFile = './src/modules.json'
|
||||||
const usersDBPath = './data/dbs/users.db'
|
const usersDBPath = './data/dbs/users.db'
|
||||||
|
@@ -33,7 +33,7 @@ const specialChars = ['&', '\\+']
|
|||||||
/* Percent minus for length difference */
|
/* Percent minus for length difference */
|
||||||
const lengthDiffMultiplier = 10
|
const lengthDiffMultiplier = 10
|
||||||
/* Minimum ammount to consider that two questions match during answering */
|
/* Minimum ammount to consider that two questions match during answering */
|
||||||
const minMatchAmmount = 60
|
const minMatchAmmount = 70
|
||||||
/* If all of the results are below this match percent (when only one subject is searched due to
|
/* If all of the results are below this match percent (when only one subject is searched due to
|
||||||
* subject name matching) then all subjects are searched for answer */
|
* subject name matching) then all subjects are searched for answer */
|
||||||
const minMatchToNotSearchOtherSubjects = 90
|
const minMatchToNotSearchOtherSubjects = 90
|
||||||
|
Submodule submodules/qmining-page updated: dca3ebdbfb...7d5b14456f
Reference in New Issue
Block a user