I am exploring elastic search capabilities inside pega, I am able to retrieve data from elasticsearch index by calling report definition by using pxRetrieveSearchData. Now i am working on Fuzzy search configuartion inside pega(ReferedLink). Configuration part is completed successfully, but it not returning results as expected.
I went thorugh community articles related to this fuzzy search . But all of them still unresolved. Can anyone help me to acheive this..
Call pxRetrieveSearchData with below parameter values
→ pySearchString - value which needs to be searched
→ pySearchMethod - EXACT
→ pyReportClassName- Name of the class on which you have created the report
→ pyReportName- Name of the report
→ pyDoFuzzySearch - true
→ pyFuzziness - 2
→ pyMaxExpansions - 100 (maximum number of words fuzzy will match before stopping the query- higher number can hamper the performance)
Enable loggers on PegaSearch.Searcher.ESSearcher
You will notice that query looks something like this ( ~ symbol in the query indicates that this is a fuzzy query and you can also check other parameters like the fuzziness or the fuzzymaxexpansions)