Repository navigation
Issue #29: Query Rewriter Interface and Tests - #75
Conversation
Merging master to yoda-query-rewriter after critical changes
|
Also, the checks are failing because of the |
|
As the first step, you can include the rewritten queries as a list of strings. If the test cases passed on the master, then it's your responsibility to look into the failed test cases in your branch. Let's talk in person after the lecture today. |
|
I fixed the failure professor. So, in that scenario is it okay if the |
|
Per our discussion, we want all major features to be incorporated as an operator (by implementing the IOperator interface) in order to be a "good citizen" in the system to be used by other operators in a plan. |
|
I have made changes such that our |
|
Please first fix the "All checks have failed" problem. |
|
@chenlica @JavierJia The interface and the tests are now complete. |
|
@sandeepreddy602 @rajesh9625 and @inkudo If you have time, can you review this PR? |
| */ | ||
| public class WordDictionary { | ||
|
|
||
| private static HashSet<String> wordDict; |
There was a problem hiding this comment.
Prof prefers Dictionary to Dict, could you change it to wordDictionary.
…ctionary; Added another test case
| TEXT, | ||
|
|
||
| //A field that is the list of strings | ||
| STRING_LIST; |
There was a problem hiding this comment.
We need to use the generic list field here. Once our pull request #77 is merged into master, you can make these changes
There was a problem hiding this comment.
Do you mean a list with a template and it can be any data type? @sandeepreddy602
|
@kishore-narendran .. Merged the pull request #77 to master. Please update this branch and make the changes accordingly. |
|
@sandeepreddy602, I have merged master into this branch. Pending your final review, this can be merged into master too. @chenlica @JavierJia |
|
@kishore-narendran Looks good to me. |
|
@kishore-narendran I will review it later today. After my approval, you can do the merge. |
| * try the query rewriting. | ||
| * | ||
| * This includes query strings like - "newyorkcity", "horseshoe" and other | ||
| * strings which stem from misppelt, missing spaces in search queries |
|
@chenlica @JavierJia @sandeepreddy602 : We made the changes suggested after the last commit. Can you give our code another review to merge? |
| */ | ||
| @Override | ||
| public void close() throws Exception { | ||
| //Uncomment below line when FuzzyTokenizer has been created |
There was a problem hiding this comment.
Remove all "FuzzyTokenizer"-related code from this PR completely since it doesn't belong here. Add it in your next PR.
|
@shiladityasen and @kishore-narendran I added more comments. Still the PR is NOT ready to merge. General comments:
|
|
|
||
| import java.util.List; | ||
|
|
||
| public class ListField<T> implements IField { |
There was a problem hiding this comment.
Can you remind me the reason to have this class of list of fields?
There was a problem hiding this comment.
This will be used, to return an ITuple that has a list of strings, that is the list of rewritten query strings that our operator sends.
|
@kishore-narendran : I left a minor comment. After addressing it, you can go ahead to do the merge. Congratulations! :-) |
| * Created by kishorenarendran on 25/04/16. | ||
| * QueryRewriter is an operator that converts a query search string which | ||
| * has faults in space placement to a list of meaningful search queries | ||
| * QueryRewriter internally uses the FuzzyTokenizer class to fulfill |
There was a problem hiding this comment.
Remove the sentence "QueryRewriter internally uses the FuzzyTokenizer class to fulfill its functionality" since it's related to the coming PR of implementation.
|
@chenlica I have addressed the minor comment professor. Thank you! 😄 |
Started off with the creation of an interface for the QueryRewriter.
QueryRewriterthat implementsIOperatorFuzzyTokenizerthat is the core class, that will perform the tokenizationsTestConstantsfor testing purposesQueryRewriterI am a little puzzled, about how the
QueryRewriterwill return a list of rewritten queries as strings, when the expected is anITuple. How do I proceed @chenlica @JavierJia ?@shiladityasen