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.

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

admin3
Node Clone

Specifically,

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"])

sufficient

1 ACCEPTED SOLUTION

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.

View solution in original post

1 REPLY 1

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.