If you are using a standard lucene query, add it as a clause
  +text:foo category:premium^10

If you are using dismax, add it via bq (a boosting query)
bq=category:premium^10

-Yonik

On Nov 28, 2007 4:01 PM, anuvenk <[EMAIL PROTECTED]> wrote:
>
> Hi, Forgive me if this question is silly..did u mean adding the param
> qf=category:premium forms^10 to the request to solr? Anything else to be
> added?
>
>
>
> Yonik Seeley wrote:
> >
> > On Nov 28, 2007 12:01 PM, anuvenk <[EMAIL PROTECTED]> wrote:
> >> My index data is grouped in to categories. For certain search terms ,
> >> results
> >> from 'forms' category comes up first. Similar results exist in 'premium
> >> forms' category too..But they are pushed to the bottom of the result set.
> >> But ideally we want the 'premium forms' results to come up first. Any way
> >> i
> >> can add more weightage to results from 'premium forms' category?
> >
> > Add an optional boosted clause for docs that match the premium category:
> > category:premium^10
> >
> > -Yonik
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/How-to-Add-weightage-to-results-from-a-certain-category-tf4889619.html#a14009866
>
> Sent from the Solr - Dev mailing list archive at Nabble.com.
>
>

Reply via email to