Skip to content
Snippets Groups Projects
Commit fa3a04b3 authored by vkovtun's avatar vkovtun
Browse files

SSDM-13449: Switching from the LIKE to the full text search.

parent 45a3fc33
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -113,11 +113,7 @@ public class HibernateSearchDAOV3Adaptor implements IHibernateSearchDAO { ...@@ -113,11 +113,7 @@ public class HibernateSearchDAOV3Adaptor implements IHibernateSearchDAO {
// Obtain global criteria // Obtain global criteria
GlobalSearchCriteria globalSearchCriteria = getCriteria(searchableEntity); GlobalSearchCriteria globalSearchCriteria = getCriteria(searchableEntity);
if (searchTerm.startsWith("\"") && searchTerm.endsWith("\"")) { globalSearchCriteria.withText().thatMatches(searchTerm);
globalSearchCriteria.withText().thatContainsExactly(searchTerm.substring(1, searchTerm.length() - 1));
} else {
globalSearchCriteria.withText().thatContains(searchTerm);
}
operationLog.info("ADAPTED [FULL TEXT SEARCH] : " + searchableEntity + " [" + searchTerm + "] " + useWildcardSearchMode); operationLog.info("ADAPTED [FULL TEXT SEARCH] : " + searchableEntity + " [" + searchTerm + "] " + useWildcardSearchMode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment