Answers.Body: <p>Ah, found this: <a href="https://lab.civicrm.org/dev/core/-/issues/1864" rel="nofollow noreferrer">Advanced Search returns contacts in Trash even if 'Search in Trash' not ticked</a> which links to this pull:</p>
  <ul>
  <li><a href="https://github.com/civicrm/civicrm-core/pull/17798" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/17798</a></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-15T14:23:04.977Z
Answers.LastActivityDate: 2020-07-15T14:23:04.977Z
Answers.UserDisplayName: Laryn
Answers.Body: <p>I think this is already <a href="https://lab.civicrm.org/dev/core/-/issues/1864" rel="nofollow noreferrer">reported on git lab</a> and has fixed at <a href="https://github.com/civicrm/civicrm-core/pull/17798" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/17798</a></p>
  <p>The fix is available in 5.27.2 version of Civi. Try upgrading Civi to 5.27.2</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-15T14:23:16.390Z
Answers.LastActivityDate: 2020-07-15T14:23:16.390Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I just upgraded a Drupal site to <code>5.27.1</code> and am noticing that when I do a search for contacts, contacts that are in the trash are also showing up in results (which did not happen before). I was able to reproduce this on the official demo server as well (reporting <code>5.29.alpha1</code>) by deleting a contact and then running a search with that deleted contact's name -- they still show up in the results.</p>
  <p>When I click on the contact record it still does show correctly that the contact is deleted.</p>
  
Tags: <search><delete>
Title: Why are deleted contacts showing in search results?
ThreadText: # Why are deleted contacts showing in search results?
  
  (Asked by: username_0 on 2020-07-15)
  
  I just upgraded a Drupal site to `5.27.1` and am noticing that when I do a search for contacts, contacts that are in the trash are also showing up in results (which did not happen before). I was able to reproduce this on the official demo server as well (reporting `5.29.alpha1`) by deleting a contact and then running a search with that deleted contact's name -- they still show up in the results.
  
  When I click on the contact record it still does show correctly that the contact is deleted.
  
  **Tags:** search, delete
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-07-15. Score: 3 | Accepted answer
  
  I think this is already [reported on git lab](https://lab.civicrm.org/dev/core/-/issues/1864) and has fixed at <https://github.com/civicrm/civicrm-core/pull/17798>
  
  The fix is available in 5.27.2 version of Civi. Try upgrading Civi to 5.27.2
  
  
  ---
  
  ### Answer by username_0 on 2020-07-15. Score: 1
  
  Ah, found this: [Advanced Search returns contacts in Trash even if 'Search in Trash' not ticked](https://lab.civicrm.org/dev/core/-/issues/1864) which links to this pull:
  
  * <https://github.com/civicrm/civicrm-core/pull/17798>
  
  
  ---
  
  