Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Search should support fuzzy search

Avatar

Level 2

4/11/23

Request for Feature Enhancement (RFE) Summary: Search should support fuzzy search
Use-case: Portal User is searching for specific pages on portal
Current/Experienced Behavior: Search Index just returns exact matches
Improved/Expected Behavior: Search Index returns fuzzy search matches as well
Environment Details (AEM version/service pack, any other specifics if applicable): 2023.3.11382.20230315T073850Z
Customer-name/Organization name: Telefonica Germany B2B
Screenshot (if applicable): vhochsteinTef_0-1681211679610.pngvhochsteinTef_1-1681211709846.png

 

 

Code package (if applicable):  
2 Comments

Avatar

Administrator

4/19/23

@vhochsteinTef Is this related to the AEM Omni search Or published in-site search? can you please share more details related to this?

 

Status changed to: Needs Info

Avatar

Level 2

4/23/23

Hi, thanks for reaching out.

Let me add a code example..

 

Query query = queryBuilder.createQuery(PredicateGroup.create(createSearchMapQuery(searchTerm,searchFilter,startResult)), session);
SearchResult result = query.getResult();

private Map<String,String> createSearchMapQuery(String searchText,String[] searchFilter, int startResult){
		Map<String, String> map = new HashMap<>();
		map.put("path", "/content/testproject/de/de_DE");
		map.put("type", "cq:Page");
		map.put("fulltext", searchText);
  return map;
}