update match

This commit is contained in:
waterbeach 2017-04-12 10:24:57 +08:00
parent b7d16f4bc3
commit 3dde959ff2
3 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -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);

View File

@ -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");
}