# Indexing links

**URL:** https://community.neo4j.com/t/indexing-links/9051
**Category:** Neo4j Graph Platform
**Tags:** index
**Created:** [July 26, 2019, 12:13pm UTC](https://community.neo4j.com/t/indexing-links/9051 "2019-07-26T12:13:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![leonard.panichi](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/leonard.panichi/32/1484_2.png) [@leonard.panichi](https://community.neo4j.com/u/leonard.panichi)
#### Post date: [July 26, 2019, 12:13pm UTC](https://community.neo4j.com/t/indexing-links/9051/1 "2019-07-26T12:13:40Z")

</div>

Hi,  
I have a graph with a lot of relationships and I would like to have an index on one link type.  
The goal is to run queries such as

```auto
match(n)<-[l:is_linked]-(p) 
where l.uuid = "405b6b8b-139a-4569-a695-708d018e61c1"
return n, p

```

And avoid the huge _AllNodesScan_, _expandAll_ and _filter_ of this query. What I need is simply a constraint assert unique on link property.  
Is that possible ? I tried the relationship property existence constraint but it doesn't index things.

---

<div class="post-metadata">

### Author: ![stefan.armbruster](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/stefan.armbruster/32/74_2.png) [@stefan.armbruster](https://community.neo4j.com/u/stefan.armbruster)
#### Post date: [July 26, 2019, 3:46pm UTC](https://community.neo4j.com/t/indexing-links/9051/2 "2019-07-26T15:46:39Z")

</div>

In 3.5 you can have fulltext indexes on relationships, see [https://neo4j.com/docs/cypher-manual/3.5/schema/index/#schema-index-fulltext-search](https://neo4j.com/docs/cypher-manual/3.5/schema/index/#schema-index-fulltext-search).

---

<div class="post-metadata">

### Author: ![leonard.panichi](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/leonard.panichi/32/1484_2.png) [@leonard.panichi](https://community.neo4j.com/u/leonard.panichi)
#### Post date: [July 27, 2019, 6:27pm UTC](https://community.neo4j.com/t/indexing-links/9051/3 "2019-07-27T18:27:59Z")

</div>

Excellent, works perfectly as expected, thank you very much 🙂
