From: Jochen L. <lie...@ub...> - 2013-01-17 09:31:23
|
Hello, I have a problem with YAML and colon. I implemented following rule in searchspecs.yaml. (si is our solr field for the callnumbers in our library). si: CustomMunge: rds_si: - [preg_replace, '/[:]/', '\:'] - [preg_replace, '/[ ]/', ""] QueryFields: - si: - [rds_si, ~] If I search for: LS: Med 994/35 the search in solr looks like this: si:(LS\:Med994/35) perfect!!!! LS:Med 994/35 (without a blank after :) the search in solr looks like this: LS:Med+994/35 ..... not good and if I try to use * for the search ... it seems the YAML does not do, what I expect: LS: Med 993/* the search in solr looks like this: LS:+Med+994/* So ... two questions .... why does my rule not work it there is no space after the colon and why does it not react, if I use an asterisk? Thanks and greetings Jochen |