Skip to content

Conversation

@Radheshhathwar
Copy link

Changes for Course search API

@karthik-tarento karthik-tarento changed the base branch from release-4.8.0 to release-4.8.0_cb November 9, 2022 10:34
@karthik-tarento karthik-tarento changed the base branch from release-4.8.0_cb to release-4.8.0 November 9, 2022 10:35

search.es_conn_info="localhost:9200"
search.fields.query=["name^100","title^100","lemma^100","code^100","domain","subject","description^10","keywords^100","ageGroup^10","filter^10","theme^10","genre^10","objects^25","contentType^100","language^200","teachingMode^25","skills^10","learningObjective^10","curriculum^100","gradeLevel^100","developer^100","attributions^10","identifier^100","IL_UNIQUE_ID^100","owner^50","board^100","relatedBoards^100","creator^100", "dialcodes^100","text","words","releaseNotes"]
search.fields.query=["name^100.0","keywords^60.0","competencies_v3.name^60.0","systemTopics^60","purpose^60","source^50.0","description^5.0","language^5.0"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check this can be over ridden via deployment script -- so that no code change is required.

return searchDTO.isFuzzySearch() ? prepareFilteredSearchQuery(searchDTO) : prepareSearchQuery(searchDTO);
}

return searchDTO.isFuzzySearch() ? (prepareSearchQuery(searchDTO) == null ? prepareFilteredSearchQuery(searchDTO) : prepareSearchQuery(searchDTO)) : prepareSearchQuery(searchDTO);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the chances of prepareSearchQuery becomes null ?
If prepareSearchQuery is not null - then the default SB behaviour of calling prepareFilteredSearchQuery won't be used in Sunbird environment. So this solution can not be proposed to Sunbird - we need better way of coding which is not causing any issues in Sunbird environment.

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.

3 participants