Changeset 3203
- Timestamp:
- 2002-07-02T16:08:40+12:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/mgqueryfilter.cpp
r2134 r3203 487 487 // This is a special hack for the BBC collection's ProgNumber index 488 488 489 // if we're searching a ProgNumber index we want to: 490 // 1. Remove all non-alphanumeric characters from the query string 491 // 2. Make it a boolean search 492 // 3. Turn off case-folding 489 // if we're searching the zzAB/zzAN index we want to remove all 490 // non-alphanumeric characters from the query string 493 491 text_t longindex; text_tarray splitindex; 494 492 indexmap.to2from ((*query_here).index, longindex); 495 493 splitchar (longindex.begin(), longindex.end(), ':', splitindex); 496 494 text_t &indextype = splitindex[1]; 497 if (indextype == "ProgNumber") { 498 (*query_here).search_type = 0; 499 (*query_here).casefolding = 0; 495 if (indextype == "zzabn") { 500 496 text_t new_querystring; 501 497 text_t::const_iterator here = (*query_here).querystring.begin(); … … 511 507 } 512 508 #endif 513 514 509 query_here ++; 515 510 }
Note:
See TracChangeset
for help on using the changeset viewer.