equal
deleted
inserted
replaced
294 |
294 |
295 |
295 |
296 void IndexReader::setNorm(int32_t doc, const TCHAR* field, float_t value){ |
296 void IndexReader::setNorm(int32_t doc, const TCHAR* field, float_t value){ |
297 setNorm(doc, field, CL_NS(search)::Similarity::encodeNorm(value)); |
297 setNorm(doc, field, CL_NS(search)::Similarity::encodeNorm(value)); |
298 } |
298 } |
299 |
299 bool IndexReader::indexExists(){ |
|
300 //Func - Checks if an index exists in the directory |
|
301 //Pre - directory is a valid reference |
|
302 //Post - Returns true if an index exists at the specified directory-> |
|
303 // If the directory does not exist or if there is no index in it. |
|
304 // false is returned. Added for usecases like connecting device in mass storage mode |
|
305 return this->indexExists(this->directory); |
|
306 } |
300 bool IndexReader::indexExists(const Directory* directory){ |
307 bool IndexReader::indexExists(const Directory* directory){ |
301 //Func - Static method |
308 //Func - Static method |
302 // Checks if an index exists in the directory |
309 // Checks if an index exists in the directory |
303 //Pre - directory is a valid reference |
310 //Pre - directory is a valid reference |
304 //Post - Returns true if an index exists at the specified directory-> |
311 //Post - Returns true if an index exists at the specified directory-> |