Author: daniele
Date: 2007-05-22 14:14:11 +0200 (Tue, 22 May 2007)
New Revision: 5135
Modified:
trunk/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/CatalogueSearchCommand.java
Log:
GULD-601: frasesok.
Modified:
trunk/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/CatalogueSearchCommand.java
===================================================================
---
trunk/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/CatalogueSearchCommand.java
2007-05-22 11:47:20 UTC (rev 5134)
+++
trunk/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/CatalogueSearchCommand.java
2007-05-22 12:14:11 UTC (rev 5135)
@@ -453,7 +453,6 @@
* is, wrap term in " " characters and use none-phonetic composite field
* in index for part of query.
*
- * If the term is '', also ignore it.
* @param clause the clause to process.
*/
@Override
@@ -513,11 +512,14 @@
// SEARCH-1796
if( ((OperationClause)longestCkr).getFirstClause() == clause ){
-
- appendToQueryRepresentation(
- "lemiypcfkeywords:\"^"
- + ckr.getTerm().replaceAll("\\(|\\)", "")
- + "$\"");
+ String kwTerm = ckr.getTerm().replaceAll("\\(|\\)", "");
+
+ appendToQueryRepresentation(
+ '('
+ + "iypcfphnavn:\"^" + kwTerm + "$\" ANY "
+ + "lemiypcfkeywords:\"^" + kwTerm + "$\" ANY "
+ + "lemiypcfkeywordslow:\"^" + kwTerm
+ + "$\"");
}
}else{
_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits