I don't think it makes sense in general. As synonyms are usually about data not structure. Labels are about structure / roles.
If you REALLY want to do that (be warned): How many synonyms do you have in total. Usually nodes should have just a few (< 5) labels and the total number of labels should also kept in check. Otherwise youc an use match (n:Item) call apoc.create.addLabels(n, n.synonyms) On Wed, Feb 28, 2018 at 7:46 AM, satish kumar <ksatis...@gmail.com> wrote: > I have a large graph. Each node has attributes like name and a list of > synonyms. Synonyms need to be indexed as find node by synonym is required. > Can we store them as node label? Synonyms are variables and can be added or > removed from a specific node. Is there any option to do it by cypher. I am > getting an error that cypher query doesn't allow labels as parameters. > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.