 #define POSTINGS_FILE4 "resources/mini_seq_posting.txt"
 #define DOCUMENTS_NORM "resources/documents_norm.txt"
 
-typedef struct Query {
-   int size;
-   float *weights;
-   int *termsId;
-	 float norm;
- } Query;
-
 Posting* postingsFromSeqFile(FILE *postingsFile, int totalTerms);
 float* docsNormFromSeqFile(FILE *docsNormFile, int totalDocs);
 void index_collection();
-void resolveQuery(char *query);
-Query parseQuery(char* queryStr);
+void resolveQuery(char *queryStr);
+Query parseQuery(char *queryStr);
 void handleKernelError();
 cudaError_t checkCuda(cudaError_t result);
+
 // to use only during developing, delete on production
 Posting* LoadDummyPostings(int size);
 void displayPosting(Posting *postings, int size);
-
+void displayQuery(Query q);
 
 
 // global variables that are allocated in device during indexing

#include <stdlib.h>
#include <string.h>
#include "index_loader.h"

#define POSTINGS_FILE "resources/seq_posting.txt"
#define POSTINGS_FILE2 "resources/mini_postings.txt"

	cudaEventCreate(&resolveQueryStop);
  int i;
	Query q = parseQuery(queryStr);
	/*
  int previousCharIsSpace = 0;
  int spacesCounter = 0;
