Answers.Body: <h1>Solution 1</h1>
  
  <pre><code>tags:"=Classics.English" or tags:"=Classics.Russian" or tags:"=Classics"
  </code></pre>
  
  <p>can be reduced to </p>
  
  <pre><code>tags:"~^Classics"
  </code></pre>
  
  <p>It will show all the files whose tags start with "Classics"</p>
  
  <p>Another variation is</p>
  
  <pre><code>tags:"~Classics"
  </code></pre>
  
  <p>If you omit the <code>^</code>, then it will show those files too whose tags have "Classics" in them, but not necessarily in the beginning. For example </p>
  
  <pre><code>- Classics
   |__ Russian
   |__ English
  - Children Classics
  - Foreign Classics for University
  </code></pre>
  
  <h1>Solution 2</h1>
  
  <p>When you click on tag icon</p>
  
  <p><img src="https://i.sstatic.net/OGEGA.png" alt=""></p>
  
  <p>two times, it shows double plus sign. This happens only for tags that have subtags.</p>
  
  <p><img src="https://i.sstatic.net/IRMAY.png" alt=""></p>
  
  <p>When this double sign is on, Calibre shows all the books that are tagged with the tag or its subtags.</p>
  
  <h1>Solution 3</h1>
  
  <p>Use following search expression</p>
  
  <pre><code>tags:"=.&lt;tag name&gt;"
  </code></pre>
  
  <p>For example,</p>
  
  <pre><code>tags:"=.Fiction"
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-08T14:27:06.310Z
Answers.LastActivityDate: 2019-06-11T10:15:47.330Z
Answers.LastEditDate: 2019-06-11T10:15:47.330Z
Answers.UserDisplayName: Andrew-Dufresne
Body: <p>Calibre has a feature that lets you create subtags. See "Making subgroups of tags" in the <a href="http://blog.calibre-ebook.com/2011/10/calibres-tag-browser.html" rel="nofollow noreferrer">official blog post</a>.</p>
  
  <blockquote>
    <p>Now to actually get hierarchical tags, in the tags section of the metadata entry enter a tag of the form MainTag.SubTag. Like in the top figure on the right and example would be Classics.Russian or Classics.English.</p>
  </blockquote>
  
  <p>Say, I have tags</p>
  
  <pre><code>Classics
  |__ Russian
  |__ English
  </code></pre>
  
  <p>What search expression should I use to display all the books that are tagged with "Classics" or with its subtags i.e "Classics.English" and "Classics.Russian"?</p>
  
  <p>I can get the result with</p>
  
  <pre><code>tags:"=Classics.English" or tags:"=Classics.Russian" or tags:"=Classics"
  </code></pre>
  
  <p>But its becomes ungainly if there are more than few subtags.</p>
  
  <p>What search expression I should use here?</p>
  
Tags: <calibre>
Title: How to show all the books under a tag and its subtags?
UserDisplayName: Andrew-Dufresne
ThreadText: # How to show all the books under a tag and its subtags?
  
  (Asked by: username_0 on 2019-06-08)
  
  Calibre has a feature that lets you create subtags. See "Making subgroups of tags" in the [official blog post](http://blog.calibre-ebook.com/2011/10/calibres-tag-browser.html).
  
  > Now to actually get hierarchical tags, in the tags section of the metadata entry enter a tag of the form MainTag.SubTag. Like in the top figure on the right and example would be Classics.Russian or Classics.English.
  
  Say, I have tags
  
  ```
  Classics
  |__ Russian
  |__ English
  
  ```
  
  What search expression should I use to display all the books that are tagged with "Classics" or with its subtags i.e "Classics.English" and "Classics.Russian"?
  
  I can get the result with
  
  ```
  tags:"=Classics.English" or tags:"=Classics.Russian" or tags:"=Classics"
  
  ```
  
  But its becomes ungainly if there are more than few subtags.
  
  What search expression I should use here?
  
  **Tags:** calibre
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-06-08. Score: 1 | Accepted answer
  
  # Solution 1
  
  ```
  tags:"=Classics.English" or tags:"=Classics.Russian" or tags:"=Classics"
  
  ```
  
  can be reduced to
  
  ```
  tags:"~^Classics"
  
  ```
  
  It will show all the files whose tags start with "Classics"
  
  Another variation is
  
  ```
  tags:"~Classics"
  
  ```
  
  If you omit the `^`, then it will show those files too whose tags have "Classics" in them, but not necessarily in the beginning. For example
  
  ```
  - Classics
   |__ Russian
   |__ English
  - Children Classics
  - Foreign Classics for University
  
  ```
  
  # Solution 2
  
  When you click on tag icon
  
  ![](https://i.sstatic.net/OGEGA.png)
  
  two times, it shows double plus sign. This happens only for tags that have subtags.
  
  ![](https://i.sstatic.net/IRMAY.png)
  
  When this double sign is on, Calibre shows all the books that are tagged with the tag or its subtags.
  
  # Solution 3
  
  Use following search expression
  
  ```
  tags:"=.<tag name>"
  
  ```
  
  For example,
  
  ```
  tags:"=.Fiction"
  
  ```
  
  
  ---
  
  