Question: If the below given Cypher query searches for multiple search items using "OR" condition, is there a way to return the matched token, both Exact match and partial match(sub word that matched).
Could able to return the Exact match using Regex matching given below, but partial match is not possible with this logic.
apoc.text.regexGroups(title, '(?i)(%(term1|term2|term3)s)') AS titleMatches
Query:
CALL db.index.fulltext.queryNodes("indexName", "term1 OR term2 OR term3") YIELD node, score
RETURN node.hasSourceLink AS Link, node.title AS Title, node.abstract AS Abstract, score
LIMIT 50