on 10-23-2020 3:24 PM
Hi Friends,
I am using fuzzy search functionality to look up for specific keywords in the description column. So, if any line item description contains these keywords, those line items will be flagged for reporting further. I am using below feature to search these keywords:
CONTAINS("ITEM_DESC", 'TA', FUZZY(0.8,''similarCalculationMode=substringsearch''))
This shows that I am looking for keyword = TA in the column ITEM_DESC and this will return all the rows having score greater than 0.8.
Coming to the issue - if my ITEM_DESC contains:
1) 'Anderson Pre-TA YM117 078 -> This line item is caught rightly as it contains TA. This is expected.
2) 'Bird Equip Rental Svcs Execute 051' -> The issue is even this is caught as this description also contains 'ta' in the description text. I want to avoid this scenario.
Even for text - 'INSTRUMENTATION SERVICES' - This is getting caught by fuzzy search as 'TA' is part of the string. What I want is only scenario 1 to happen.
Anybody, any thoughts here?
Thanks,
Gaurav
HDB 2.0 SP3
if you add flag with option 'i', it automatically takes care of case sensitivity. The only issue here is now it is apple to apple comparison. So, we need to include a space before and after the search string otherwise again it will catch other unwanted strings from the database. In short, now my search string is ' TA ' in the LIKE_REGEXPR. If my search string is 'TA' then it will still match my other records and I am back to square.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its better you add additional comment with UPPER in your fuzzy search
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's not what a fuzzy search is for, it is to find similar matches.
Your description is more like an exact whole word match, which can be achieved using LIKE_REGEXPR, see LIKE_REGEXPR documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.