update match
This commit is contained in:
parent
b7d16f4bc3
commit
3dde959ff2
Binary file not shown.
|
|
@ -91,7 +91,7 @@ public class LuceneSearch {
|
|||
String prjId = d.get(LuceneIndex.prjIdFieldName);
|
||||
String[] prjNames = d.getValues(searchField);
|
||||
for(String prjName : prjNames){
|
||||
if (keyWords.contains(prjName)) {
|
||||
if (keyWords.contains(prjName.toLowerCase())) {
|
||||
int pId = Integer.parseInt(prjId);
|
||||
if (matchMap.containsKey(pId)) {
|
||||
matchMap.put(pId, matchMap.get(pId) + weight + sd.score/1000);
|
||||
|
|
|
|||
|
|
@ -172,6 +172,8 @@ public class Match {
|
|||
logger.error("insertPrjToMemoMatchResult error: " + e);
|
||||
}
|
||||
}
|
||||
if(list.size()!=0)
|
||||
batchInsertJDBC(list,getTargetTable(prjId));
|
||||
//System.out.println(prjId+" current insert time cost:"+(System.currentTimeMillis()-start)/1000+" seconds");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue