0

I am trying to use the mm (Minimum Should Match) parameter with the dismax parser. If I do just mm=2 or any other int value it seems to work fine. But if I try and add a percent as shown in the able, say mm=60%, then I get an "invalid digit" error for the query. How do I actually use the percentage for mm?

Solr ref guide mm table

(running solr 7.6 btw)

Caesium
  • 13
  • 6
  • Do you have an example of your actual query string? Make sure you've escaped '%' properly, as it's the beginning of an URL parameter escape code as well, which means that your query could end up sending a random character instead of what you think it's sending. – MatsLindh Mar 26 '19 at 22:21
  • How do you escape it? I tried \% as I know escapes characters in a lot of programming languages but this is different I guess as that didn't help. – Caesium Mar 26 '19 at 22:32
  • `%25` is the escape code for `%`. A quick way to find out is to open your browser's developer tools (F12 for Chrome on Windows), go to "Console" and type `encodeURIComponent('%')`. It'll return the encoded version of whatever you gave it. – MatsLindh Mar 27 '19 at 07:45
  • Cool. Thanks for the help! – Caesium Mar 27 '19 at 18:11

0 Answers0