3

In the below syntax:

fq = {!frange l=1 u=1}strdist(PR_EMP_ID_s, POSTN_PR_EMP_ROW_ID_s,edit)

how to interpret this expression?

I know the basic fq working.

I have one query where I found this expression, but I am not able to interpret this syntax.

f_puras
  • 2,521
  • 4
  • 33
  • 38
Rahul557
  • 31
  • 2
  • 2
    The filter calls `strdist` which returns the distance between the two strings. The `!frange` makes the selection that only a value of `1` is valid (lower bound 1, upper bound 1). If I read it correctly this should return any results with a single edit distance between `PR_EMP_ID_s` and the `POSTN_PR_EMP_ROW_ID_s` fields. – MatsLindh Nov 14 '22 at 14:44
  • Can you please explain, the meaning of distance between two strings. – Rahul557 Nov 14 '22 at 16:05
  • 1
    https://en.wikipedia.org/wiki/Edit_distance https://en.wikipedia.org/wiki/Levenshtein_distance – MatsLindh Nov 14 '22 at 19:41

0 Answers0