-
Notifications
You must be signed in to change notification settings - Fork 1
Matching
####Location Current matching code is located within the database server class, DatabaseServer.java under gs-rest-server under /src/main/java/carleton/comps/
####Function Matching code goes through a few stages of query requests in the database. First the server connects to the database so it can access the ngram index table which will host all of the ngrams found within the master_table. Secondly it uses the ngrams found in the tokens passed in from the client to find the corresponding code that matches in the master_table. We use an aggregate query to grab the the top five matching codes grouped by the number of ngrams that matched with it. We perform an additionally matching algorithm: Levanshtein distance algorithm. We then return a client file object with the corresponding "fixed tokens"