if (val >= 0x1000000)
{
const gchar *p = special_case_table + val - 0x1000000;
- int len=0;
+ //int len=0;
wchar_t ret=0;
lucene_utf8towc(&ret,p,6);
#ifdef _UCS2
size_t lucene_utf8towcs(wchar_t * result, const char * str, size_t result_length){
char *sp = (char*)str;
wchar_t *rp = result;
- int i = 0;
while (rp < result + result_length && *sp!=0){
size_t r = lucene_utf8towc(rp,sp,6);
open = false;
useCompoundFile = true;
- int32_t maxBufferedDocs = IndexWriter::DEFAULT_MAX_BUFFERED_DOCS;
+ this->maxBufferedDocs = IndexWriter::DEFAULT_MAX_BUFFERED_DOCS;
this->maxFieldLength = IndexWriter::DEFAULT_MAX_FIELD_LENGTH;
- int32_t mergeFactor = IndexWriter::DEFAULT_MERGE_FACTOR;
+ this->mergeFactor = IndexWriter::DEFAULT_MERGE_FACTOR;
this->directory = _CL_POINTER(directory);
createIndexReader();
// start with zero or 1 seg so optimize the current
optimize();
- int32_t start = segmentInfos.size();
+ // int32_t start = segmentInfos.size();
//Iterate through the directories
for (int32_t i = 0; dirs[i] != NULL; ++i) {
try {
IndexReader* reader = NULL;
- int32_t maxDoc = 0;
//Iterate through all readers
for (uint32_t i = 0; i < readers.size(); i++) {
// get the i-th reader
free(buffer);
terms[numTerms]=NULL; //null terminate terms array
- SegmentTermVector* tv = NULL;
if (storePositions || storeOffsets){
return _CLNEW SegmentTermPositionVector(field, terms, termFreqs, positions, offsets);
}else {
void QueryParserBase::discardEscapeChar(TCHAR* source) const{
int len = _tcslen(source);
- int j = 0;
for (int i = 0; i < len; i++) {
if (source[i] == '\\' && source[i+1] != '\0' ) {
_tcscpy(source+i,source+i+1);