Changeset 243
- Timestamp:
- 09/23/03 17:10:12 (5 years ago)
- Location:
- trunk
- Files:
-
- 6 modified
-
Build.PL (modified) (1 diff)
-
Changes (modified) (1 diff)
-
PREREQUISITES (modified) (1 diff)
-
lib/OpenGuides/SuperSearch.pm (modified) (2 diffs)
-
t/31_supersearch.t (modified) (3 diffs)
-
t/32_supersearch_simple_metadata.t (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Build.PL
r236 r243 194 194 'CGI::Carp' => 0, 195 195 'CGI::Cookie' => 0, 196 'CGI::Wiki' => '0.4 7',197 'CGI::Wiki::Formatter::UseMod' => '0.0 7', # for nested lists and bugfix196 'CGI::Wiki' => '0.49', 197 'CGI::Wiki::Formatter::UseMod' => '0.09', 198 198 'CGI::Wiki::Plugin::Categoriser' => 0, 199 199 'CGI::Wiki::Plugin::GeoCache' => 0, -
trunk/Changes
r240 r243 3 3 Search box now searches categories and locales as well as title and 4 4 body - so for example a search on "holborn & pubs" will DTRT. 5 NOT and phrase search tests were passing even though they shouldn't 6 have been - skip them for now. 5 7 6 8 0.24 8 September 2003 -
trunk/PREREQUISITES
r240 r243 6 6 CGI::Carp 7 7 CGI::Cookie 8 CGI::Wiki (version 0.4 7or later)9 CGI::Wiki::Formatter::UseMod (version 0.0 7or later)8 CGI::Wiki (version 0.49 or later) 9 CGI::Wiki::Formatter::UseMod (version 0.09 or later) 10 10 CGI::Wiki::Plugin::Categoriser 11 11 CGI::Wiki::Plugin::GeoCache -
trunk/lib/OpenGuides/SuperSearch.pm
r242 r243 190 190 # Search categories. 191 191 my @catmatches = $wiki->list_nodes_by_metadata( 192 metadata_type => "category",192 metadata_type => "category", 193 193 metadata_value => $search, 194 ignore_case => 1, 194 195 ); 195 196 … … 204 205 # Search locales. 205 206 my @locmatches = $wiki->list_nodes_by_metadata( 206 metadata_type => "locale",207 metadata_type => "locale", 207 208 metadata_value => $search, 209 ignore_case => 1, 208 210 ); 209 211 foreach my $node ( @locmatches ) { -
trunk/t/31_supersearch.t
r231 r243 112 112 113 113 # Test the NOT search 114 SKIP: { 115 skip "NOT search doesn't work yet", 1; 114 116 %tt_vars = $search->run( 115 117 return_tt_vars => 1, … … 120 122 "NOT search returns right results" ); 121 123 print "# Found in $_\n" foreach @found; 124 } 122 125 123 126 # Test the phrase search 127 SKIP: { 128 skip "phrase search doesn't work yet", 1; 124 129 $output = $search->run( 125 130 return_output => 1, … … 130 135 "phrase search returns right results" 131 136 ); 137 } 132 138 133 139 ##### -
trunk/t/32_supersearch_simple_metadata.t
r242 r243 50 50 "simple search looks in category" ); 51 51 52 SKIP: {53 skip "TODO - need case-insensitive metadata search", 1;54 52 %tt_vars = $search->run( 55 53 return_tt_vars => 1, … … 59 57 is_deeply( \@found, [ "Calthorpe_Arms", "Calthorpe_Arms_2" ], 60 58 "...and is case-insensitive" ); 61 }62 59 63 60 # Check that a search on its locale works. … … 70 67 "simple search looks in locale" ); 71 68 72 SKIP: {73 skip "TODO - need case-insensitive metadata search", 1;74 69 %tt_vars = $search->run( 75 70 return_tt_vars => 1, … … 79 74 is_deeply( \@found, [ "Calthorpe_Arms", "Calthorpe_Arms_2" ], 80 75 "...and is case-insensitive" ); 81 }82 76 83 77 # Test AND search in various combinations.
