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

@Query problem with more of 10 params

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for Feedback
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.5.4 (Gosling SR4)
    • Fix Version/s: None
    • Component/s: Repository
    • Labels:
      None
    • Sprint:
      Kay RC1, Kay RC3, Kay GA, Kay SR1, Lovelace M1, Lovelace M2 / M3, Lovelace RC1, Lovelace GA, Lovelace SR1, Moore RC1, Moore RC2, Moore SR1, Moore SR2, Neumann M3, Neumann M4, Neumann RC1, 2020.0.0 - Ockham M1

      Description

      Hello,

      I have a {{@Query{{ with over 10 params, the problem is that when Spring is doing param replacement, the "?10" param is not equals to the 10'th parameter of the fonction.

      public interface ShopRepository extends SolrCrudRepository<Shop, String> {
      @Query("location: [?0,?1 TO ?2,?3] AND country_id: ?4 AND region_id: ?5 AND city_id: ?6 AND district_id: ?7 AND dealer_id: ?8 AND NOT tags: *?9* AND brand: *?10* AND lang_code: ?11")
          ArrayList<Shop> findByBoundingBox(Double southWestLat, Double southWesLng, Double northEastLat, Double northEastLng,
                                            String countryId, String regionId, String cityId, String districtId,
                                            String dealerId, String tags, String brand, String langCode
          );
      }
      

        Attachments

          Activity

            People

            Assignee:
            cstrobl Christoph Strobl
            Reporter:
            tkerambloch tkerambloch
            Last updater:
            Christoph Strobl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: