
marvin at rectangular
Jul 13, 2007, 3:12 PM
Post #4 of 4
(660 views)
Permalink
|
On Jul 13, 2007, at 11:49 AM, Nathan Kurz wrote: > if someone tries uses a > search() offset and then resets the Hits offset to zero to start over, > they won't be getting the same Hit they got the first time. Not a problem. Because there is no public API for resetting the offset, this is an implementation detail. We can change the internals later if we decide to add that public functionality. > What should I tackle next? I've got a ToDo list on the wiki: http://www.rectangular.com/kinosearch/wiki/ToDoList Pick whatever you'd like except for Windows compat, which I'm working on. I'd guess that the task you'd enjoy most would be this one (: it's nice and "reductive" :)... Remove position-generating code in Scorer subclasses and Tally, now that the decision has been made not to implement the position-aware BooleanScorer in core. To elaborate: we'll keep Tally as an extensible container for scoring information, but the core Scorer subclasses will only use it for score and num_matchers. * The ScoreProx class can be eliminated entirely. * TermScorer: o Eliminate the sprox member var. o Deal with the fallout of eliminating sprox in TermScorer's subclasses. * PhraseScorer: o Eliminate the sprox member var. o Kill off the static function build_prox(). * ANDScorer: o Eliminate the vestigial raw_prox_bb member var. * Tally: o Eliminate the the sprox_cap, num_sproxen and sproxen member vars. o Eliminate the Tally_Add_Sprox and Tally_Zap_Sproxen methods. o Kill Tally_Destroy, since inheriting from Obj_Destroy is fine once we eliminate the sproxen member var. That sounds like a lot, but it's not. Basically, "svn remove" ScoreProx.h and ScoreProx.c, then keep deleting other stuff until the library compiles again, at which point I think all tests will pass. Lemme know if you get a successful compile and tests are still failing. (Watch out for the Build.PL bug that Edward Betts just encountered -- use "./Build distclean" liberally.) While you're deleting all that stuff, you might glance over it. It'll probably find its way back into position-aware scorers that either you write or I write. (FYI, the "rich positions" stuff will still work, since it depends on the behavior of RichPosting, not ScoreProx and Tally.) Marvin Humphrey Rectangular Research http://www.rectangular.com/
|