Implement more relevant textual search queries #558
Labels
area:matches
area:players
area:tournaments
database:schema-change
Items that contain or propose schema changes to the database
project:Database
Items related to the Database project
type:feature
SQL Full text search
Currently to search by name for tournaments, matches, players, etc we are using
EF.Functions.ILike()
(ref) which often produces results that are questionably relevant with no way to sort.I think the most promising and straightforward solution to this would be to start using full text search, which NpgSQL has native support for within EF. This would allow us to perform natural language text searches instead of pattern matching, as well as being able to sort the results by "relevance" (how well the input matches the text vector).
References
High level task overview
tournaments
should be compound{ name, abbreviation }
matches
should be{ name }
players
should be{ username }
EF.Functions.ILike()
to use full text search operations (i.e.TournamentsRepository.SearchAsync()
,IQueryable<Match>.WhereName()
)The text was updated successfully, but these errors were encountered: