# How to filter accurately?

**URL:** <https://discuss.dgraph.io/t/how-to-filter-accurately/18911>\
**Category:** Dgraph\
**Created:** [September 15, 2023, 9:03am UTC](https://discuss.dgraph.io/t/how-to-filter-accurately/18911 "2023-09-15T09:03:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qwe1593575564](https://avatars.discourse-cdn.com/v4/letter/q/77aa72/32.png) [@qwe1593575564](https://discuss.dgraph.io/u/qwe1593575564)\
**Post date:** [September 15, 2023, 9:03am UTC](https://discuss.dgraph.io/t/how-to-filter-accurately/18911/1 "2023-09-15T09:03:57Z")

</div>

I hope that I can use a func like ‘regexp’ because it can search accurately.

For example, here is a sentence ‘I hope that I can fly in the future’, I save it as a predicate ‘sentence’,if I give dgraph ‘fut’,it can match {‘sentence’ : ‘I hope that I can fly in the future’} because ‘future’ contains a continuous ‘fut’.Unlike ‘allofterms’ or ‘alloftext’ or others, they can only match full word like ‘future’ so I cannot use them in my actual use.

In my another topic:[how to use regexp in filter](http://discuss.hypermode.com/t/how-to-use-regexp-in-filter/18901/8), I found that ‘regexp’ has performance issues, so I want to know that if dgraph has a match function that can substitute ‘regexp’?

If you have any ideas,please leave me a message,thank you!
