Posts

Showing posts with the label solr

How to use Spring Data Solr SimpleStringCriteria for multiValued fields?

Image
Clash Royale CLAN TAG #URR8PPP How to use Spring Data Solr SimpleStringCriteria for multiValued fields? I have Solr database with three indexed fields. Two of them are text fields and one of them is multiValued field. I have built a custom query using SimpleSearchCriteria from Spring data for Apache Solr. I am successfully able to search on the text fields but I am not able to figure how to search on the multiValued field. I went through the documentation to look for a solution. I found out that in method can be used to perform search on an iterable(multiValued field) but I am unable to figure out how to use it Am I right in assuming that the "in method" will be useful in achieving what I want or is there some other way to do that? How can I use the "in method" if that is the only way to search on multiValued fields? By clicking "Post Your Answer", you acknowledge that you have read our up...