H all, I have a neo4j database, each node is a tweet with user informations. I have to build a social network using mentions in each tweet. the relevant properties are user\_name and tweet\_user\_mention. my strategy:

1. get all nodes.
2. for each nodes, get username and use it in query for getting a group of nodes have that string in tweet\_user\_mention
3. create oriented edges between nodes.

example:

```
*username to search: (node: {user_name: 'goofy' [...]})
*query -> match (n) where (tweet_user_mention: 'goofy') return n; get all nodes that mention 'goofy'.
*create links.

```

The problem I'm trying to put is that a node may have multiple mentions, and I don't know how to query on multiple mentions without knowing how many.

Now a node can have for example:

```
1 mention
tweet_user_mention_0: 'goofy'

3 mentions
tweet_user_mention_0: 'goofy_0'
tweet_user_mention_1: 'goofy_1'
tweet_user_mention_2: 'goofy_2'
...
n mentions
tweet_user_mention_n: 'goofy_n'

```

it is better to concatenate strings and keep them in a single property like this?

```
3 mentions
tweet_user_mentions: 'goofy_0 goofy_1 goofy_2'
How could it be the query? have I to user regex in cypher?

```

Thanks all.

I've edited my question. is clearer?