Hi Jayant,
Did you check Function Queries in solr? I am not sure but It would
solve your problem in this case. Functions Queries are a way to affect
scoring according to different factors like page view etc.
http://wiki.apache.org/solr/FunctionQuery

Jak

On Fri, Sep 24, 2010 at 8:38 AM, Jayant Patil
<jayan...@peopleinteractive.in> wrote:
> Hi,
>
> Thanks for your reply.
>
> In our case as products get added or deleted, the DocFreq of a particular
> category changes.
> For example, if today we have total 100 Docs and out of these 50 are
> Electronics, 30 are Mobile Phones and 20 are Electricals. This may vary
> next week or any other day, such that 50 are Mobile Phones 20 Are
> Electronics and 30 are Electricals. In such a scenario, increasing the
> boost factor will not work as intended.
>
> Regards,
> Jayant
>
>
>
> -----Original Message-----
> From: Jak Akdemir <jakde...@gmail.com>
> To: solr-user@lucene.apache.org, jayan...@peopleinteractive.in
> Date: Thu, 23 Sep 2010 20:13:22 +0300
> Subject: Re: Issue with Solr Boosting
>
>> I think if you don't need to add more categories, just increasing
>> boost factor of Electronics would work.
>> As you said  because of DocFreq of "Mobile Phones", scoring algorithm
>> is working as expected way.
>>
>> On Thu, Sep 23, 2010 at 3:42 PM, Jayant Patil
>> <jayan...@peopleinteractive.in> wrote:
>> > Hi,
>> >
>> > We are using Solr for our searches. We are facing issues while
>> applying
>> > boost on particular fields.
>> > E.g.
>> > We have a field Category, which contains values like Electronics,
>> > Computers, Home Appliances, Mobile Phones etc.
>> > We want to boost the category Electronics and Mobile Phones, we are
>> using
>> > the following query
>> > (category:Electronics^2 OR category:Mobile Phones^1 OR category:[* TO
>> *]^0)
>> >
>> > The results are unexpected as Category Mobile Phones gets more boost
>> than
>> > Electronics even if we are specifying the boost factor 2 for
>> electronics
>> > and 1 for mobile phones respectively.
>> > On debugging we found that DocFreq is manipulating the scores and
>> hence
>> > affecting the overall boost. The no. of docs for mobile phones is
>> much
>> > lower than that for electronics and solr is giving higher score to
>> mobile
>> > phones for this reason.
>> >
>> > Please suggest a solution.
>> >
>> > Regards,
>> > Jayant
>> >
>> >
>> >
>> ***********************************************************************
>> *********
>> > People Interactive DISCLAIMER and CONFIDENTIALITY CAUTION
>> >
>> ***********************************************************************
>> *********
>> > This email and any files transmitted with it are confidential and
>> intended solely for the use of the individual or entity to whom they
>> are addressed. Unauthorized reading, dissemination, distribution or
>> copying of this communication is prohibited. If you are not the
>> intended recipient, any disclosure, copying, distribution or any action
>> taken or omitted to be taken in reliance on it, is prohibited and may
>> be unlawful. If you have received this communication in error, please
>> notify us immediately and promptly destroy the original communication.
>> Thank you for your cooperation.
>> >
>> > Please note that any views or opinions presented in this email are
>> solely those of the author and may not necessarily represent those of
>> the company. Communicating through email is not secure and capable of
>> interception, corruption and delays. Anyone communicating with People
>> Interactive (I) Private Limited by email accepts the risks involved and
>> their consequences. The recipient should check this email and any
>> attachments for the presence of viruses. People Interactive (I) Private
>> Limited accepts no liability for any damage caused by any virus
>> transmitted by this email.
>> >
>> >
>
>
>

Reply via email to