List Info

Thread: Re: Wildcards




Re: Wildcards
user name
2008-02-07 18:26:07

On Jan 25, 2008, at 11:34 AM, Marvin Humphrey wrote:

Using regexes to modify regexes is probably not something I would have thought to do, but that's all the better.  My goal is to provide the scaffolding.  I'm focused on getting Lexicon and PostingList right, so that you can use or abuse them as you wish.  

I¢m trying to implement my RegexpTermQuery class right now. I¢m stuck on one thing. I¢d like to use the TermScorer, so that it will be scored the same way as a single term. But looking at TermWeight, I see that $plist->;make_scorer is called inside sub scorer. I can¢t call that method on a posting list because I don¢t have just one. Am I using the right approach? Or should I be subclassing Scorer? If that is the case, what methods should I override? (I¢m still not sure exactly what the scorer is doing.)

I suppose the answers to these questions are precisely what you are working on.

Anyway, the attached patch shows what I¢ve been trying to do so far (completely untested).

  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )