Class SearchUtility


  • public final class SearchUtility
    extends java.lang.Object
    Utility for fuzzy text searching.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean fuzzyContains​(java.lang.String text, java.lang.String query)
      Returns true if query if approximately a substring of text, not taking into account capitalization, whitespace, or minor typos.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • fuzzyContains

        public static boolean fuzzyContains​(java.lang.String text,
                                            java.lang.String query)
        Returns true if query if approximately a substring of text, not taking into account capitalization, whitespace, or minor typos.
        Parameters:
        text - The text to search.
        query - The text to use as a query.