[open-ils-commits] r8936 - trunk/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Mar 9 13:57:07 EDT 2008
Author: miker
Date: 2008-03-09 13:24:11 -0400 (Sun, 09 Mar 2008)
New Revision: 8936
Modified:
trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql
Log:
only search where search_field is true
Modified: trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql 2008-03-09 16:41:31 UTC (rev 8935)
+++ trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql 2008-03-09 17:24:11 UTC (rev 8936)
@@ -222,7 +222,7 @@
CASE WHEN core_rel_limit > 0 THEN ' LIMIT ' || core_rel_limit::TEXT ELSE '' END || ' ) AS ' || query_part.table_alias ||
' ON ( m.source = ' || query_part.table_alias || '.source )' ||
' JOIN config.metabib_field AS ' || query_part.table_alias || '_weight' ||
- ' ON ( ' || query_part.table_alias || '.field = ' || query_part.table_alias || '_weight.id )';
+ ' ON ( ' || query_part.table_alias || '.field = ' || query_part.table_alias || '_weight.id AND ' || query_part.table_alias || '_weight.search_field)';
from_alias_array := array_append(from_alias_array, query_part.table_alias);
More information about the open-ils-commits
mailing list