You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Milan Krendzelak <mk...@mtld.mobi> on 2007/06/19 16:14:59 UTC

Searching Filter

Hi all,
I have this scenario:
lets say that I have meta-data which belong to particular web site and it is stored in index.
This meta-data could have one of these values (0,1,2,3,4,5) and lets say it is a rating of the site
( popularity ).

Now lets say I would like to get search results according to the relevancy but only for whose web sites which has popularity 5 or 4 or 3 only!

How can I achieve that?

Any ideas?

Thanks.
Regards,
Milan

p.s.: new nutch user

Re: Searching Filter

Posted by Milan Krendzelak <mi...@gmail.com>.
Thanks to all who replied on my question.

The solution is RangeQuery.

Cheers,

Milan

On 19/06/07, Milan Krendzelak <mi...@gmail.com> wrote:
>
> This is a second example of the problem.
>
> Let's say I indexed web sites and I have a field category.
>
> How to get result only from category 2 and 3?
>
> Thanks.
>
> Milan
>
> p.s.: in SQL we can do that really simple:
> - select * from table where categoryId in ( 2,3);
> or
> - select * from table where categoryId=2 or categoryId=3;
>
> On 19/06/07, Milan Krendzelak < mkrendzela@mtld.mobi> wrote:
> >
> >
> > Hi all,
> > I have this scenario:
> > lets say that I have meta-data which belong to particular web site and
> > it is stored in index.
> > This meta-data could have one of these values (0,1,2,3,4,5) and lets say
> > it is a rating of the site
> > ( popularity ).
> >
> > Now lets say I would like to get search results according to the
> > relevancy but only for whose web sites which has popularity 5 or 4 or 3
> > only!
> >
> > How can I achieve that?
> >
> > Any ideas?
> >
> > Thanks.
> > Regards,
> > Milan
> >
> > p.s.: new nutch user
> >
>
>

Re: Searching Filter

Posted by Milan Krendzelak <mi...@gmail.com>.
This is a second example of the problem.

Let's say I indexed web sites and I have a field category.

How to get result only from category 2 and 3?

Thanks.

Milan

p.s.: in SQL we can do that really simple:
- select * from table where categoryId in ( 2,3);
or
- select * from table where categoryId=2 or categoryId=3;

On 19/06/07, Milan Krendzelak <mk...@mtld.mobi> wrote:
>
>
> Hi all,
> I have this scenario:
> lets say that I have meta-data which belong to particular web site and it
> is stored in index.
> This meta-data could have one of these values (0,1,2,3,4,5) and lets say
> it is a rating of the site
> ( popularity ).
>
> Now lets say I would like to get search results according to the relevancy
> but only for whose web sites which has popularity 5 or 4 or 3 only!
>
> How can I achieve that?
>
> Any ideas?
>
> Thanks.
> Regards,
> Milan
>
> p.s.: new nutch user
>