Uploaded image for project: 'Spring Data for Apache Solr'
  1. Spring Data for Apache Solr
  2. DATASOLR-369

Declared repository method does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.1 (Ingalls SR1)
    • Fix Version/s: None
    • Component/s: Repository
    • Labels:
      None

      Description

      I have this repository:

      public interface UserRepository extends UserRepositoryCustom, SolrCrudRepository<User, String> {
      
      	User findOneByUsername( String username );
      
      	List<User> findByUsernameIn( List<String> usernames );
      
      }
      
      

      While the first method works correctly the second produces a solr error like below.

      Caused by: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr: Expected mime type application/octet-stream
      t text/html. <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
      <title>Error 404 Not Found</title>
      </head>
      <body><h2>HTTP ERROR 404</h2>
      <p>Problem accessing /solr/select. Reason:
      <pre>    Not Found</pre></p>
      </body>
      

      It is as if the second called the solr server without core name!

        Attachments

          Activity

            People

            Assignee:
            cstrobl Christoph Strobl
            Reporter:
            biliboc constantin mitocaru
            Last updater:
            constantin mitocaru
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: