neo4j - No way to use in cypher the term case insensitivity = ~ (? i), when I'm using parameter? -


i tried way did not work.

params.put("name", g );    final queryresult<map<string,object>> result = engine.query("match a:conceito --> b:livro a.nome =~'(?i){name}' return b.autor, b.titulo, b.edicao", params); //executa query 

this error:

exception in thread "main" org.neo4j.rest.graphdb.restresultexception: expected valid query body "match a:conceito --> b:livro a.nome =~'(?i){name}' return b.autor, b.titulo, b.edicao"                                                  ^ @ 

the query runs if remove expression ~ (?i)

excuse english because i'm brazil.

works me, see: http://console.neo4j.org/r/tutchx

start n=node:node_auto_index(name='neo')  n.name =~ '(?i)neo'  return n 

as use parameter, have pass in whole regexp (including flag) param value:

params.put("name", "(?i)"+g );    final queryresult<map<string,object>> result =    engine.query("match a:conceito --> b:livro a.nome =~ {name} return b.autor, b.titulo, b.edicao", params); //executa query 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -