Skip to content

Commit

Permalink
entities works
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit223 committed Dec 30, 2018
1 parent 536c2d6 commit 5129123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
8 changes: 1 addition & 7 deletions src/main/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ public class Main {


public static void main(String[] args) {
Path path= Paths.get("D:\\documents\\users\\ammo\\queries.txt");
try {
Vector<Pair<String,String>> answer=ReadFile.readQueriesFile(path);
System.out.println("d");
} catch (IOException e) {
e.printStackTrace();
}

}
}
5 changes: 1 addition & 4 deletions src/main/java/Searcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,7 @@ public Collection<Document> Search(String id, String query, boolean toTreatSeman
while (docNumIt.hasNext()) {
Integer docNum= docNumIt.next();
Vector<Pair<String, Integer>> entities;
if(_doc_Entities.contains(docNum)){
entities = _doc_Entities.get(docNum);
}
else entities = new Vector();
entities = _doc_Entities.get(docNum);
docs.add(new Document(docNum,docNameIt.next(),entities));
}
return docs;
Expand Down

0 comments on commit 5129123

Please sign in to comment.