Skip to content
Snippets Groups Projects
Commit d28e4d8d authored by Nicholas Yang's avatar Nicholas Yang
Browse files

Merge remote-tracking branch 'origin/searcher' into searcher

parents 8627de2b 7b1bbca6
No related branches found
No related tags found
1 merge request!17Bunch of ISR Improvements
......@@ -237,6 +237,7 @@ add_executable(ISRMultiWordORTest
constraintSolver/ISRWord.cpp
constraintSolver/ISRAnd.cpp
constraintSolver/ISREndDoc.cpp
util/DataStructureLib/tuple.cpp
indexer/Corpus.cpp
indexer/Chunk.cpp
util/stringProcessing.cpp
......
File added
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -31,8 +31,8 @@ int main ( )
static const char HOST = '=';
*/
ISRWord q1 = ISRWord("moment");
ISRWord q2 = ISRWord("life");
ISRWord q1 = ISRWord("$trump");
ISRWord q2 = ISRWord("$russia");
queries.push_back(q2);
......
......@@ -27,8 +27,8 @@ int main ( )
static const char HOST = '=';
*/
ISRWord q1 = ISRWord("moment");
ISRWord q2 = ISRWord("life");
ISRWord q1 = ISRWord("$trump");
ISRWord q2 = ISRWord("$russia");
queries.push_back(q2);
......
......@@ -32,7 +32,7 @@ int main ( ) {
queries.push_back(queryWord);
}
*/
ISRWord queryWord( "%night" ) ;
ISRWord queryWord( "$trump" ) ;
queries.push_back(queryWord);
vector<size_t> locations;
set<string> urls;
......
......@@ -122,6 +122,11 @@ public:
CompleteUrl = string(temp_CompleteUrl, strlen(temp_CompleteUrl));
//remove question marks
size_t found = CompleteUrl.find("?");
if(found < CompleteUrl.size( ) )
CompleteUrl.erase(found, CompleteUrl.size( ));
Service = string(temp_Service, strlen(temp_Service));
Host = string(temp_Host, strlen(temp_Host));
......
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment