mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-06 01:25:31 +00:00
try again, cypress blackbox
This commit is contained in:
parent
45e806defd
commit
de6053dfa3
@ -10,9 +10,9 @@ export default {
|
|||||||
.replace(/\s+/g, ' ')
|
.replace(/\s+/g, ' ')
|
||||||
.replace(/[[@#:*~\\$|^\]?/"'(){}+?!,.-]/g, '')
|
.replace(/[[@#:*~\\$|^\]?/"'(){}+?!,.-]/g, '')
|
||||||
.split(' ')
|
.split(' ')
|
||||||
.map(s => '"' + s + '"*')
|
.map(s => s.toLowerCase().match(/^(not|and|or)$/)? '"' + s + '"' : s + '*')
|
||||||
.join(' ')
|
.join(' ')
|
||||||
// console.log(myQuery)
|
//console.log(myQuery)
|
||||||
const postCypher = `
|
const postCypher = `
|
||||||
CALL db.index.fulltext.queryNodes('post_fulltext_search', $query)
|
CALL db.index.fulltext.queryNodes('post_fulltext_search', $query)
|
||||||
YIELD node as resource, score
|
YIELD node as resource, score
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user