Re: index-time boost ... query

2009-11-20 Thread Lance Norskog
No, the reverse is true. Sorting is very very fast in Lucene. The
first sort operation spends a lot of time making a data structure and
then following sort calls use it.

On Thu, Nov 19, 2009 at 1:52 PM, Anil Cherian
 wrote:
> Hi David,
>
> I just now tried a sorting on the results and I got the records with latest
> approval_dt first.
>
> My question now is will index-time boosting method increase the response. ie
> will I be able to acheive the same thing i achieved
> using sorting much faster if i use index-time boosting.
>
> If you feel it helps could you please send me a sample query also.
>
> Thanks,
> Anil.
> On Thu, Nov 19, 2009 at 3:36 PM, Smiley, David W.  wrote:
>
>> Anil, without delving into why your boosting isn't working as you expect,
>> why don't you simply sort?  Based on a message you sent to me directly
>> (excerpted bellow), it seems you want sorting, not boosting.  You could
>> subsequently sort by score after approval_dt.
>>
>> ~ David Smiley
>> Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/
>>
>> >
>> > My ultimate aim is to always bring up records in the result having
>>  latest approval_dt to appear first using index-time boosting in SOLR. Could
>> you pls help me with some directions.
>>
>>
>>  On Nov 19, 2009, at 12:25 PM, Anil Cherian wrote:
>>
>> > Hi,
>> >
>> > I am working on index-time boosting.
>> > I have a field named approval_dt. I have created that  in my SOLR
>> xml
>> > to be uploaded, by sorting my query in ascending order of approval_dt and
>> > then increasing the boost for this field by 0.1 as i encounter new
>> records
>> > from database. In my schema.xml that field has omitNorms=false (> > name="approval_dt" type="date" indexed="true" stored="true"
>> > omitNorms="false"/>)
>> >
>> > Suppose I am searching for a keyword say *India*. I want my results to
>> come
>> > in such a way that the ones with latest/ recent approval_dt should come
>> > first.
>> >
>> > I achieved this using query-time boosting  bf parameter. I am not trying
>> it
>> > using the index-time approach.
>> > Any help is appreciated.
>> >
>> > Thank you.
>> > Anil
>>
>>
>



-- 
Lance Norskog
goks...@gmail.com


Re: index-time boost ... query

2009-11-19 Thread Anil Cherian
Hi David,

I just now tried a sorting on the results and I got the records with latest
approval_dt first.

My question now is will index-time boosting method increase the response. ie
will I be able to acheive the same thing i achieved
using sorting much faster if i use index-time boosting.

If you feel it helps could you please send me a sample query also.

Thanks,
Anil.
On Thu, Nov 19, 2009 at 3:36 PM, Smiley, David W.  wrote:

> Anil, without delving into why your boosting isn't working as you expect,
> why don't you simply sort?  Based on a message you sent to me directly
> (excerpted bellow), it seems you want sorting, not boosting.  You could
> subsequently sort by score after approval_dt.
>
> ~ David Smiley
> Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/
>
> >
> > My ultimate aim is to always bring up records in the result having
>  latest approval_dt to appear first using index-time boosting in SOLR. Could
> you pls help me with some directions.
>
>
>  On Nov 19, 2009, at 12:25 PM, Anil Cherian wrote:
>
> > Hi,
> >
> > I am working on index-time boosting.
> > I have a field named approval_dt. I have created that  in my SOLR
> xml
> > to be uploaded, by sorting my query in ascending order of approval_dt and
> > then increasing the boost for this field by 0.1 as i encounter new
> records
> > from database. In my schema.xml that field has omitNorms=false ( > name="approval_dt" type="date" indexed="true" stored="true"
> > omitNorms="false"/>)
> >
> > Suppose I am searching for a keyword say *India*. I want my results to
> come
> > in such a way that the ones with latest/ recent approval_dt should come
> > first.
> >
> > I achieved this using query-time boosting  bf parameter. I am not trying
> it
> > using the index-time approach.
> > Any help is appreciated.
> >
> > Thank you.
> > Anil
>
>


Re: index-time boost ... query

2009-11-19 Thread Anil Cherian
Hi David,

Thank you for the mail.

It seems you are right.sorting might solve the issue as it is not giving
any special weightage to any record other than its approval_dt is the latest
one.. I think i am convinced for now.

I am eagerly waiting for your book around thanks giving so taht i can spend
4 days completely on it. I am fascinated by SOLR and what to master it ASAP.

Best Rgds,
Anil.
On Thu, Nov 19, 2009 at 3:36 PM, Smiley, David W.  wrote:

> Anil, without delving into why your boosting isn't working as you expect,
> why don't you simply sort?  Based on a message you sent to me directly
> (excerpted bellow), it seems you want sorting, not boosting.  You could
> subsequently sort by score after approval_dt.
>
> ~ David Smiley
> Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/
>
> >
> > My ultimate aim is to always bring up records in the result having
>  latest approval_dt to appear first using index-time boosting in SOLR. Could
> you pls help me with some directions.
>
>
>  On Nov 19, 2009, at 12:25 PM, Anil Cherian wrote:
>
> > Hi,
> >
> > I am working on index-time boosting.
> > I have a field named approval_dt. I have created that  in my SOLR
> xml
> > to be uploaded, by sorting my query in ascending order of approval_dt and
> > then increasing the boost for this field by 0.1 as i encounter new
> records
> > from database. In my schema.xml that field has omitNorms=false ( > name="approval_dt" type="date" indexed="true" stored="true"
> > omitNorms="false"/>)
> >
> > Suppose I am searching for a keyword say *India*. I want my results to
> come
> > in such a way that the ones with latest/ recent approval_dt should come
> > first.
> >
> > I achieved this using query-time boosting  bf parameter. I am not trying
> it
> > using the index-time approach.
> > Any help is appreciated.
> >
> > Thank you.
> > Anil
>
>


Re: index-time boost ... query

2009-11-19 Thread Smiley, David W.
Anil, without delving into why your boosting isn't working as you expect, why 
don't you simply sort?  Based on a message you sent to me directly (excerpted 
bellow), it seems you want sorting, not boosting.  You could subsequently sort 
by score after approval_dt.

~ David Smiley
Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/

>  
> My ultimate aim is to always bring up records in the result having  latest 
> approval_dt to appear first using index-time boosting in SOLR. Could you pls 
> help me with some directions.


On Nov 19, 2009, at 12:25 PM, Anil Cherian wrote:

> Hi,
> 
> I am working on index-time boosting.
> I have a field named approval_dt. I have created that  in my SOLR xml
> to be uploaded, by sorting my query in ascending order of approval_dt and
> then increasing the boost for this field by 0.1 as i encounter new records
> from database. In my schema.xml that field has omitNorms=false ( name="approval_dt" type="date" indexed="true" stored="true"
> omitNorms="false"/>)
> 
> Suppose I am searching for a keyword say *India*. I want my results to come
> in such a way that the ones with latest/ recent approval_dt should come
> first.
> 
> I achieved this using query-time boosting  bf parameter. I am not trying it
> using the index-time approach.
> Any help is appreciated.
> 
> Thank you.
> Anil