title: Search API EntityRepresentationModel not found
body: <p>I am trying to create a customize search API.</p>
  <pre><code>@RepositoryRestResource( collectionResourceRel = &quot;products&quot;, path = &quot;products&quot; )
  public interface ProductFamilyRepository extends JpaRepository&lt;ProductFamily, UUID&gt; {
  
     @RestResource( path = &quot;pages&quot;, rel = &quot;pages&quot; )
     ProductFamily findByPageId( @Param( &quot;pageId&quot; ) String pageId );
  </code></pre>
  <p>Execute
  http://localhost:8080/products/search/pages?pageId=p33</p>
  <pre><code>org.springframework.data.rest.webmvc.ResourceNotFoundException: EntityRepresentationModel not found!
      at org.springframework.data.rest.webmvc.RepositorySearchController.lambda$toModel$2(RepositorySearchController.java:219)
      at java.base/java.util.Optional.orElseThrow(Optional.java:401)
      at org.springframework.data.rest.webmvc.RepositorySearchController.toModel(RepositorySearchController.java:219)
      at org.springframework.data.rest.webmvc.RepositorySearchController.executeSearch(RepositorySearchController.java:185)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      
      
  </code></pre>
  <p>What am I doing wrong?</p>