Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on the federated search algorithm #2

Open
jrao1 opened this issue May 11, 2012 · 3 comments
Open

Clarification on the federated search algorithm #2

jrao1 opened this issue May 11, 2012 · 3 comments

Comments

@jrao1
Copy link

jrao1 commented May 11, 2012

Hi,

I took a quick look at the code related to FederatorRunHandler, am I right to assume when performing federated search, the results of each search is mixed together only by 3 methods: sequentially, round robin and randomly? This means the federated search result doesn't at all consider the score or other sorting method when merging the results?

Thanks

@michaelsembwever
Copy link
Owner

Actually only sequentially is implemented in FederatorRunHandler. see handleRunningQuery(..).

FederatorRunHandlerConfig.Blend should ultimately be service provider interface (spi). The current code using an enum and a switch statement is unfortunate really. It would be nice to see it turned pluggable, replacing the enum with something extendable and some inversion of control in FederatorRunHandler so that it delegates out to the different implementations for blending. Such inversion of control pattern is common throughout the possom architecture.

Maybe you're interested in providing a patch here...?

@jrao1
Copy link
Author

jrao1 commented May 11, 2012

Ok, thanks for the clarification. I'm not sure how useful these blends would be helpful for people who actually wants federated search though, as I understand it federated search should merge the results and sort them by some factor, so that the results would look like they're coming from one search engine. Do you know any algorithm or design that can do this? Any open source implementation for them?

@michaelsembwever
Copy link
Owner

On Fri, 2012-05-11 at 06:20 -0700, raojx wrote:

I'm not sure how useful these blends would be helpful for people who
actually wants federated search though, as I understand it federated
search should merge the results and sort them by some factor, so that
the results would look like they're coming from one search engine. Do
you know any algorithm or design that can do this? Any open source
implementation for them?

The results indeed will look like they came from one search engine.
Merging the results and sorting them by whatever algorithm you want is
just to code away. Sesam has run with complicated federating before as
you allude to, and Possom is the framework to achieve it. Of course the
more complicated the merging and weighting is the longer the result list
from each individual back end search engine will need to be.

~mck

"The Matrix is the world that has been pulled over your eyes to blind
you from the truth."

| http://github.com/finn-no | http://tech.finn.no |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants