java/code/src/com/redhat/rhn/frontend/action/systems/SystemSearchSetupAction.java
| 4 +++-
search-server/src/java/com/redhat/satellite/search/scheduler/tasks/GenericIndexTask.java
| 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
New commits:
commit db538084615708f9e45270793470e4bb0cbccc55
Author: John Matthews <jmatthew(a)redhat.com>
Date: Fri May 29 15:06:08 2009 -0400
487014 - SystemSearch reducing scrore threshold for a single result to redirect to SDC
page
diff --git
a/java/code/src/com/redhat/rhn/frontend/action/systems/SystemSearchSetupAction.java
b/java/code/src/com/redhat/rhn/frontend/action/systems/SystemSearchSetupAction.java
index 43d0fb5..80f74b0 100644
--- a/java/code/src/com/redhat/rhn/frontend/action/systems/SystemSearchSetupAction.java
+++ b/java/code/src/com/redhat/rhn/frontend/action/systems/SystemSearchSetupAction.java
@@ -168,16 +168,18 @@ public class SystemSearchSetupAction extends RhnAction implements
Listable {
helper.execute();
List results = (List)request.getAttribute(getDataSetName());
+ log.info("SystemSearch results.size() = " + results.size());
if ((results != null) && (results.size() == 1)) {
SystemSearchResult s = (SystemSearchResult) results.get(0);
Double score = s.getScore();
+ log.info("SystemSearch s.getScore() = " + s.getScore());
if (score != null) {
/** Adding a rule so we only redirect to a specific system id
* when we are pretty sure the search result is what the user
* expects. We are using the lucene score for this result to
* gauge this.
*/
- if (score > 0.85) {
+ if (score > 0.50) {
try {
response.sendRedirect(
"/rhn/systems/details/Overview.do?sid=" +
diff --git
a/search-server/src/java/com/redhat/satellite/search/scheduler/tasks/GenericIndexTask.java
b/search-server/src/java/com/redhat/satellite/search/scheduler/tasks/GenericIndexTask.java
index 8f1e848..48e7b94 100644
---
a/search-server/src/java/com/redhat/satellite/search/scheduler/tasks/GenericIndexTask.java
+++
b/search-server/src/java/com/redhat/satellite/search/scheduler/tasks/GenericIndexTask.java
@@ -184,6 +184,8 @@ public abstract class GenericIndexTask implements Job {
log.info("GenericIndexTask<" + super.getClass().toString() +
" last processed id = " + sid + ", lastRun was "
+ lastRun);
retval = srvrQuery.loadList(params);
+ log.info("GenericIndexTask<" + super.getClass().toString() +
+ " number of results returned = " + retval.size());
}
finally {
srvrQuery.close();
Show replies by date