I'm moving from one server to another, and I've installed a fresh copy of Solr 6.6.0. I have it all working, apart from the synonyms. This is an example of what I have in my synonyms.txt file:
cartoon, comic, cartoons, funny, drawing, sketch, draw, drawings, draw
I have restarted solr, and then tested with:
((keywords:"cartoon") OR (description:"cartoon"))
However, it gives no results. If I search for:
((keywords:"cartoons") OR (description:"cartoons"))
...then I get results. Do I need to do something else to enable the synonyms?
Here is the schema contents: https://pastebin.com/eV3emAjv
Here is my synonyms.txt file: https://pastebin.com/TjYxEfbi
Interestingly, it DOES seem to work on a much smaller scale. If I just put this in the file:
cartoon, comic, cartoons, funny, drawing, sketch, draw, drawings, draw
...restart Solr, and voila it works (31,000 results). However, as soon as I put the rest of the contents back in I get nothing. There must be something in my synonyms.txt file that is causing it to not parse it correctly (or something like that). Is there no way to debug that file? I have over 1000 rules that would need checking one by one otherwise - not something I'm too keep on the idea of!
UPDATE: I have tracked it down to one line. If I comment this out, it works fine (took a lot of removing, reloading, testing, etc etc):
clipart, clip-art, image, art, graphics, clip, images, picture, pictures, vemultimedia, cartoon, royalty+free, royalty-free
Any ideas why it wouldn't like that one?
UPDATE 2: I have found the problem - but now I'm not too sure what the solution is. Basically, we had 2 lines that have the word "cartoon" in:
cartoon, comic, cartoons, funny, drawing, sketch, draw, drawings, draw
clipart, clip-art, image, art, graphics, clip, images, picture, pictures, vemultimedia, royalty+free, royalty-free, cartoon
After a bit more debugging - I've found that it doesn't seem to like + or - in the words:
royalty+free
royalty-free
Surely this must be possible? Can we use dashes and spaces between words? :/