Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to handle configoverlay.json created by Solr's ConfigAPI #80

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kevinlacire
Copy link

I experienced a pretty though to found bug caused by the configoverlay.json file generated when using Solr's ConfigAPI.

Long story short Solr configoverlay.json unmarshalling returns a LinkedHashMap not a NamedList, which makes the line always true so nothing more happen.

Plus, as the unmarshalling returns a map of type Map<String, Object>, I made a really simple method to do the conversion of main types to String.

I experienced a pretty though to found bug caused by the configoverlay.json file generated when using Solr's ConfigAPI.

Long story short Solr configoverlay.json unmarshalling returns a LinkedHashMap not a NamedList, which makes the [line](https://github.com/healthonnet/hon-lucene-synonyms/blob/c87fb8ced0abc9e19381a4843c964cf8473e8912/src/main/java/com/github/healthonnet/search/SynonymExpandingExtendedDismaxQParserPlugin.java#L192) always true so nothing more happen.

Plus, as the unmarshalling returns a map of type Map<String, Object>, I made a really simple method to do the conversion of main types to String.
@kevinlacire
Copy link
Author

The part I don't like in my fix is the 'startsWith("filter")'. But I don't have much time to make it cleaner. Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant