# Note able use bool followed by must followed by should

**URL:** <https://discuss.elastic.co/t/note-able-use-bool-followed-by-must-followed-by-should/275865>\
**Category:** Elasticsearch\
**Created:** [June 14, 2021, 3:46pm UTC](https://discuss.elastic.co/t/note-able-use-bool-followed-by-must-followed-by-should/275865 "2021-06-14T15:46:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anurag\_Mishra2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anurag_mishra2/32/90282_2.png) [@Anurag\_Mishra2](https://discuss.elastic.co/u/Anurag_Mishra2)\
**Post date:** [June 14, 2021, 3:46pm UTC](https://discuss.elastic.co/t/note-able-use-bool-followed-by-must-followed-by-should/275865/1 "2021-06-14T15:46:19Z")

</div>

Hi I am trying to search but not getting desired result.  
I have condition like this  
detail '--\>' account '--\>' List '--\>' credential '--\>' active  
also  
detail '--\>' List '--\>' List '--\> 'credential '--\>' active  
if(detail '--\>' account '--\>' List '--\>' credential '--\>' active) is not found then  
go for detail '--\>' List '--\>' List '--\> 'credential '--\>' active

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 15, 2021, 3:36am UTC](https://discuss.elastic.co/t/note-able-use-bool-followed-by-must-followed-by-should/275865/2 "2021-06-15T03:36:19Z")

</div>

The full boolean expression is evaluated at once and I do not think you can include conditional logic like that.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 13, 2021, 3:36am UTC](https://discuss.elastic.co/t/note-able-use-bool-followed-by-must-followed-by-should/275865/3 "2021-07-13T03:36:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
