Package ai.chatur.cortex
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 TypeMethodDescriptionFinds resources by fuzzy full-text search over their labels.searchSubjects(String text) Searches the knowledge graph by free text and returns the matching subjects.
-
Method Details
-
search
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
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
-