Interface CortexSearch

All Known Subinterfaces:
Cortex

public interface CortexSearch
Finds resources in the knowledge graph by fuzzy full-text search over their labels.
  • Method Summary

    Modifier and Type
    Method
    Description
    search(String text)
    Finds resources by fuzzy full-text search over their labels.
    Searches the knowledge graph by free text and returns the matching subjects.
  • Method Details

    • search

      String search(String text)
      Finds resources by fuzzy full-text search over their labels.

      Each term of the input is matched approximately, so small typos and spelling variations still find their target.

      Parameters:
      text - the text to search for
      Returns:
      the matches with their relevance scores, formatted as text and ranked best first
    • searchSubjects

      List<SearchResult> searchSubjects(String text)
      Searches the knowledge graph by free text and returns the matching subjects.

      Each term of the input is matched approximately, so small typos and spelling variations still find their target.

      Parameters:
      text - the text to search for
      Returns:
      the matching subjects ranked best first, empty if nothing matches