this is the code:
...
line 43 STRCPY_AtoT( TQuery, buffer, strlen(buffer) );
Query *qdesc;
qdesc = QueryParser::parse( TQuery, _T("oferta"), &analyzer);
Hits *hdesc = s.search(qdesc);
HitCollector *algo = new MyCollector();
if( !normalizado ){
s._search((Query *)qdesc, NULL ,(HitCollector *)algo);
qsort (similarities, maxSimilarities, sizeof(float_t),
compareDec);
}
buffer[0] = 0;
for (int32_t i=0; (i < hdesc->length()) && (i<TOP_K); i++){
Document* doc = &hdesc->doc(i);
line 55 STRCPY_TtoA( temp, doc->get(_T("descricao")), 10000 );
strcpy( buffer, temp ); strcat( buffer, " " );
line 57 STRCPY_TtoA( temp, doc->get(_T("marca")), 10000 );
strcat( buffer, temp );
}
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
CLucene-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clucene-developers