try again, cypress blackbox

This commit is contained in:
Moriz Wahl 2020-01-06 18:02:11 +01:00
parent 45e806defd
commit de6053dfa3

View File

@ -10,9 +10,9 @@ export default {
.replace(/\s+/g, ' ')
.replace(/[[@#:*~\\$|^\]?/"'(){}+?!,.-]/g, '')
.split(' ')
.map(s => '"' + s + '"*')
.map(s => s.toLowerCase().match(/^(not|and|or)$/)? '"' + s + '"' : s + '*')
.join(' ')
// console.log(myQuery)
//console.log(myQuery)
const postCypher = `
CALL db.index.fulltext.queryNodes('post_fulltext_search', $query)
YIELD node as resource, score