[Yum-devel] ranked multiterm searching

seth vidal skvidal at linux.duke.edu
Tue Jun 5 13:16:30 UTC 2007

On Tue, 2007-06-05 at 07:24 -0400, James Bowes wrote:
> On Tue, 05 Jun 2007 00:27:24 -0400, seth vidal wrote:
> > I implemented a ranked multi-term search routine in searchGenerator()
> > Cons:
> >  - b/c you have to sort the search results after you get them it slows
> > down the results and partially defeats the purpose of the generator, at
> > all.
> >  - the more terms you add the slower it gets for obvious reasons.
> Another con for me is that it takes the union of the results, rather
> than the intersection. While adding more search terms does give me
> better results at the top of the list, the list is longer and so harder
> to sort through. Though I am willing to accept that I'm the only person
> who'd want the intersection ;)

well, I was trying to get it to behave similarly to how google behaves.

ie: I ask for foo bar

and it gives me:
pages with foo and bar
pages with just foo
pages with just bar

we could add an argument to searchGenerator() to only return the results
that match every term. That'd be pretty easy.


More information about the Yum-devel mailing list