cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Fulltext query doesn't allow special symbols

lingvisa
Graph Fellow
CALL db.index.fulltext.queryNodes("NameIndex", "刘昊然[超话]")

YIELD node, score

RETURN properties(node) as properties, score LIMIT 50

The query string contains '[...]' which caused the syntax error:

Failed to invoke procedure `db.index.fulltext.queryNodes`: Caused by: org.apache.lucene.queryparser.classic.ParseException: Encountered " "]" "] "" at line 1, column 6.
Was expecting:
    "TO" ...

Is there a way to fix or bypass this error? For fulltext search, the user query can contains any symbols, just as you do on google.

1 REPLY 1

jonas1
Node Link

Hey @lingvisa, did you ever find a solution to this? I'm looking at the same problem right now.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online