From: Gilles D. <gr...@sc...> - 2003-01-22 20:24:29
|
According to Jean-Sebastien Morisset: > Anyone? > > Maybe my question wasn't clear enough... I'd like to limit search > results to ONLY documents that contain 2 or more patterns in the URL. > For example: > > htsearch?restrict=some/parm|another&words=whatever...etc. > > Would match the following URLs: > > http://www.somesite.com/?arg=/some/parm/or/other&and=miscstuff > ^^^^^^^^^ > http://www.somesite.com/?arg=/or/other&and=another > ^^^^^^^ > > When in fact, I would like htsearch to return *only* URLs that contain > BOTH patterns. i.e.: > > http://www.somesite.com/?arg=/some/parm/or/other&and=anotherpam > ^^^^^^^^^ ^^^^^^^ > > What do you think? Possible? Anything is possible with open source. But you'd need to change the source code to accomplish this. The places to change would be Display::includeURL() in htsearch/Display.cc, and Display::setLimit() in htsearch/Display.h. You'd need to use something other than the StringMatch class to implement this test. -- Gilles R. Detillieux E-mail: <gr...@sc...> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/ Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada) |