Skip to main content
April 23, 2024
Solved

How can I do fuzzy search on text field when queryrecordtype

  • April 23, 2024
  • 8 replies
  • 0 views

How can I do fuzzy search on text field when queryrecordtype, like "like '%text%' " in sql

    Best answer by shubhama926776

     [mention:2aea1bf0b6954f94815518e79da990c7:e9ed411860ed4f2ba0265705b8793d05] 

    You can use includes operator 

    a!queryRecordType(
      recordType: Replace_RecordYType,
      filters: a!queryFilter(
        field: Replace_ FieldName,
        operator: "includes",
        value: Replace_Value
      ),
      pagingInfo: a!pagingInfo(1, 5000)
    )

    8 replies

    stefanhelzle0001
    Brainy
    April 23, 2024

    I remember that you are talking to an API to do that. In that case, the API needs to support it directly.

    April 23, 2024

    I made a recordtype that connects to the API, the recordtype has snyc all the data from API, I want to query from the recordtype, is it possible to do fuzzy search on recordtype?

    rohitm7223
    April 23, 2024

    You can create a Stored Procedure, which can utilize various algo's like , JARO Winkler, Levenshtein etc. on the specific text field in the backend. which can return Primary keys of record. and then you can use those as per your requirement. 

    shubhama926776
    Brainy
    April 23, 2024

     [mention:2aea1bf0b6954f94815518e79da990c7:e9ed411860ed4f2ba0265705b8793d05] 

    You can use includes operator 

    a!queryRecordType(
      recordType: Replace_RecordYType,
      filters: a!queryFilter(
        field: Replace_ FieldName,
        operator: "includes",
        value: Replace_Value
      ),
      pagingInfo: a!pagingInfo(1, 5000)
    )

    शुभम्
    April 23, 2024

    Awesome, thank you! 

    shubhama926776
    Brainy
    April 23, 2024

    Is this what you're looking for?

    शुभम्