Hi,
I have to create a query with . . . WHERE labels(e) in [["Lex"],['Alert']] . . .
My code is:
public Collection<ResultFeed> findText(String email, String texto, List<String> label_list) {
return this.neo4jClient
.query("CALL db.index.fulltext.queryNodes('IdxLabels', $texto +'~2')\r\n"
+ "YIELD node, score\r\n"
+ "with node as label, score order by score desc limit 100\r\n"
+ "match (label)<-[:prefLabel]-(c:Concept)\r\n"
+ "with c, max(score) as maxScore\r\n"
+ "order by maxScore desc limit 10\r\n"
+ "call {\r\n"
+ "match p=(e)-[:RELACIONADO_CON]->(c)\r\n"
+ "WHERE labels(e) in $label_list \r\n"
. . .
.bind(label_list).to("label_list")
and the query is created with:
:params {texto: 'aditivos', label_list: ['Lex', 'Alert'],
but the correct format will be: [["Lex"],['Alert']]
How can I solve this format problem?
Thanks in advance
Regards