I tried to create this full-text index, the goal is to be able to search the whole graph at once, not just one type of label.
Do I misunderstand the FT index ?
CREATE FULLTEXT INDEX GlobalFT IF NOT EXISTS
FOR (n:Activity) ON EACH [n.id, n.description]
FOR (n:BusinessGlossary) ON EACH [n.name]
OPTIONS { indexConfig: { 'fulltext.analyzer': 'standard' } }
but it seems there is a limitation: only one nodeType per index ?
So the workaround is:
CALL db.index.fulltext.queryNodes("ActivityFT", "search_term")
YIELD node, score
RETURN node, score
UNION ALL
CALL db.index.fulltext.queryNodes("BusinessGlossaryFT", "search_term")
YIELD node, score
RETURN node, score;