Do I need to create mupltiple or only one fulltext Node Indexes in cases where these nodes have a common label?


My graph is like this
(:Profile:Main {name:"something",username:"something else"})
(:Brand:Main {name:"something",username:"something else"})
(:Manufacturer:Main {name:"something",username:"something else"})

Sometimes I need to do a full search on all entities (Main) and some other times I only need to do on specific entities (either Profile either Brand either Manufacturer).

Do I need to create multiple indexes or is

CALL db.index.fulltext.createNodeIndex('main', ['Main'], ["name","username"])


In your case it's "one index to rule 'em all".

Since you build the index on :Main label, anything carrying the label will be in the index.

1 Like