Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
6.4.2
-
None
Description
The parser that the ManagedSynonymFilterFactory uses to parse the JSON resource into a synonym map does not parse multi-term synonyms in the expected way.
If the synonym
{"foo bar":"baz"}is added to the managed resource, the expected behavior is that the multi-term synonym "foo bar" will be mapped to the synonym "baz".
In the analyze method of SynonymMap.Parser, multiple origin terms are concatenated with a separating SynonymMap.WORD_SEPARATOR, but the analyze method is not used by the parser in the ManagedSynonymFilterFactory.
As a workaround, multi-term synonyms can be uploaded separated by a null character, i.e., uploading
{"foo\u0000bar":"baz"}works.
Attachments
Attachments
Issue Links
- is related to
-
SOLR-10348 unexpected sow=false interaction with defaultSearchField
- Closed