diff options
| author | Ralph Amissah <ralph@amissah.com> | 2007-07-16 12:55:09 +0100 | 
|---|---|---|
| committer | Ralph Amissah <ralph@amissah.com> | 2007-07-16 12:55:09 +0100 | 
| commit | 1aac76e1431d796c1df1cabd0124d3dbb174e750 (patch) | |
| tree | 60d6eb7469862fa917091a9e06367a02e8bdfeec /lib | |
| parent | cgi_sql_common, generated sample search form, indentation (diff) | |
scope in matches of individual documents where AND is used as text matching criteria
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sisu/v0/cgi_pgsql.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/sisu/v0/cgi_pgsql.rb b/lib/sisu/v0/cgi_pgsql.rb index b3a7a82b..d4c620a5 100644 --- a/lib/sisu/v0/cgi_pgsql.rb +++ b/lib/sisu/v0/cgi_pgsql.rb @@ -173,7 +173,7 @@ module  SiSU_CGI_pgsql                                                                                   #%            search[:text].each{|x| @search_text << "#{x} AND " }            @search_text=@search_text.to_s.gsub!(/AND\s+$/,'') -          @search_text.gsub!(/(documents\.clean~\(\s*'[^']+'\s*\)\s+(?:(?:AND|OR)\s+documents\.clean~\(\s*'[^']+'\s*\))+)/,'(\1)') +          @search_text.gsub!(/(documents\.clean~[*]?\(\s*'[^']+'\s*\)\s+(?:(?:AND|OR)\s+documents\.clean~[*]?\(\s*'[^']+'\s*\))+)/,'(\1)')            search[:endnotes].each{|x| @search_endnotes << "#{x} AND " }            @search_endnotes=@search_endnotes.to_s.gsub!(/AND\s+$/,'')            @search_endnotes.gsub!(/(endnotes\.clean~\(\s*'[^']+'\s*\)\s+(?:(?:AND|OR)\s+endnotes\.clean~\(\s*'[^']+'\s*\))+)/,'(\1)') | 
