title: Filter results from QueryDSL search
body: <p>I'm using QueryDSL as part of Spring Data Rest to search entities from our API. </p>
  
  <p>Is it possible to somehow filter the search API, so that by default it won't find for example Car entities that are "deactivated"?</p>
  
  <p>Currently I've a flag on car entity that when it's set to true, it shouldn't be exposed through our search API, and the cars that have this property set should be left out from search.</p>
  
  <p><a href="https://docs.spring.io/spring-data/jpa/docs/1.9.0.RELEASE/reference/html/#core.web.type-safe" rel="nofollow noreferrer">https://docs.spring.io/spring-data/jpa/docs/1.9.0.RELEASE/reference/html/#core.web.type-safe</a></p>