You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Jayant Kumar Gandhi <ja...@gmail.com> on 2006/06/26 15:06:17 UTC

Generate links to narrow down/ broaden the search..

Short Desc:- I need to develop the links to allow the user to narrow
down or broaden the search results. How can I achieve it? I have
thought of the possible algo for it which is given in the end.

Detailed Desc. with example:-
Suppose I have 3 fields that are indexed and searchable namely
vehicletype, vehiclebrand, vehiclemodel.
The hierarchy is as follows.. there may be many vehicletypes.. each
vehicletype may have many vehiclebrands.. each vehiclebrand may have
many models

Suppose there are 3 possible values of vehicletype: car,truck,bike
brand for car might be toyota,lexus,ford,honda etc
brand for bike might be suzuki,honda etc
models are like modelA, modelB,modelC etc

The person searches for "something vehiclebrand:lexus". Some results
will come. I want to give the user the ability to narrow down/ broaden
the results depending upon the results recieved. Suppose 5 modelA
come, 3 modelB come in the results.
I will like to give the user a link to narrow down on one of these
models, so essentially making the search query as "something
vehiclebrand:lexus vehiclebrand:modelA" or "something
vehiclebrand:lexus vehiclebrand:modelB"
Also to allow him to broaden the search results to all cars rather
than just lexus cars, so suggesting the query "something
vehicletype:car" or the broadest query "something"

Again, if the user searches for this broadest query "something", we
will get suggestion to narrow down either to vehicletype car or truck
or bike or maybe even to vehiclebrand:lexus

Possible algo:-
Traverse all the results, read all the field values of the indexfields
for each result and do a frequency analysis. On the values of the
indexfields.

Does anything exist which can help me? What are the classes I need to look at?

-- 
www.jkg.in | http://www.jkg.in/contact-me/
Jayant Kr. Gandhi

Re: Generate links to narrow down/ broaden the search..

Posted by Jayant Kumar Gandhi <ja...@gmail.com>.
Forgot to mention, I am using Nutch 0.7.2


On 6/26/06, Jayant Kumar Gandhi <ja...@gmail.com> wrote:
> Short Desc:- I need to develop the links to allow the user to narrow
> down or broaden the search results. How can I achieve it? I have
> thought of the possible algo for it which is given in the end.
>
> Detailed Desc. with example:-
> Suppose I have 3 fields that are indexed and searchable namely
> vehicletype, vehiclebrand, vehiclemodel.
> The hierarchy is as follows.. there may be many vehicletypes.. each
> vehicletype may have many vehiclebrands.. each vehiclebrand may have
> many models
>
> Suppose there are 3 possible values of vehicletype: car,truck,bike
> brand for car might be toyota,lexus,ford,honda etc
> brand for bike might be suzuki,honda etc
> models are like modelA, modelB,modelC etc
>
> The person searches for "something vehiclebrand:lexus". Some results
> will come. I want to give the user the ability to narrow down/ broaden
> the results depending upon the results recieved. Suppose 5 modelA
> come, 3 modelB come in the results.
> I will like to give the user a link to narrow down on one of these
> models, so essentially making the search query as "something
> vehiclebrand:lexus vehiclebrand:modelA" or "something
> vehiclebrand:lexus vehiclebrand:modelB"
> Also to allow him to broaden the search results to all cars rather
> than just lexus cars, so suggesting the query "something
> vehicletype:car" or the broadest query "something"
>
> Again, if the user searches for this broadest query "something", we
> will get suggestion to narrow down either to vehicletype car or truck
> or bike or maybe even to vehiclebrand:lexus
>
> Possible algo:-
> Traverse all the results, read all the field values of the indexfields
> for each result and do a frequency analysis. On the values of the
> indexfields.
>
> Does anything exist which can help me? What are the classes I need to look at?
>

-- 
www.jkg.in | http://www.jkg.in/contact-me/
Jayant Kr. Gandhi