Hi I have the following query but spring data solr is putting in param 1 value instead of param 10 value for the last param: "AND days_ss:(?10)"... I guess it sees ?1 and not ?10
anyway around this, I tried using :days like one can do with JPA, but this interferes with lucene syntax
@Highlight(prefix = "<b>", postfix = "</b>")
@Query("""text:(?0) AND moduleLevel_s:(?1) AND programOfStudy_s:\"?2\" AND yearOfEntry_i:?3 AND yearOfStudy_i:?4 AND unitValue_d:?5 AND
department_s:(?6) AND teachers_ss:(?7) AND cappedAccess_b:?8 AND terms_ss:(?9) AND days_ss:(?10)""")
HighlightPage<CourseGuide> advancedSearch(@Param(value = "query") List<String> query,
@Param(value = "moduleLevel") List<ModuleLevel> moduleLevel,
@Param(value = "programOfStudy") String programOfStudy,
@Param(value = "yearOfEntry") def yearOfEntry,
@Param(value = "yearOfStudy") def yearOfStudy,
@Param(value = "unitValue") def unitValue,
@Param(value = "department") List<String> department,
@Param(value = "teachers") List<String> teachers,
@Param(value = "cappedAccess") def cappedAccess,
@Param(value = "terms") List<String> terms,
@Param(value = "days") List<String> days,Pageable pageable)
actually whats happening is that during its param replacement process, its looking for all occurrences of '?1' in the string and mistakenly messing with my ?10 placeholder. If it worked in the other direction things would probably be ok, ie process ?10 first then ?9, then ?8 etc