Re: Custom score for a id field

2009-04-24 Thread Shalin Shekhar Mangar
On Fri, Apr 24, 2009 at 7:38 PM, Raju444us wrote: > > Thanks,Yonik for quick reply. But How can I override the relevancy score > with > my fieldScore for that document when I get back the results. If possible an > example code is helpfull. > > Note: Iam storing the fieldScore. so that I can retri

Re: Custom score for a id field

2009-04-24 Thread Raju444us
> > You can sort directly on the fieldScore field (no need to make the > relevancy score equal to the fieldScore). > > You can also use fieldScore as part or all of the relevancy score > using function query. > q={!func}fieldScore > > > -Yonik > http://www.lucidimagina

Re: Custom score for a id field

2009-04-24 Thread Yonik Seeley
On Thu, Apr 23, 2009 at 1:19 PM, Raju444us wrote: > I have a requirement.I index a field "id" and a calculated score for that > field named "fieldScore". > > Note:I have many other fields which are also indexed.But only for this id > field i want a custom calculated score. > > So when I search for

Re: Custom score for a id field

2009-04-24 Thread Raju444us
ou just want to fix the position of that document in the results? If > yes, look at the QueryElevationComponent. > > -- > Regards, > Shalin Shekhar Mangar. > > -- View this message in context: http://www.nabble.com/Custom-score-for-a-id-field-tp23197465p23216650.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Custom score for a id field

2009-04-23 Thread Shalin Shekhar Mangar
On Thu, Apr 23, 2009 at 10:49 PM, Raju444us wrote: > > I have a requirement.I index a field "id" and a calculated score for that > field named "fieldScore". > > Note:I have many other fields which are also indexed.But only for this id > field i want a custom calculated score. > > So when I search

Re: Custom score for a id field

2009-04-23 Thread Marcus Herou
gt; Please let me know the solution to do this. > > Thanks, > Raju > > > -- > View this message in context: > http://www.nabble.com/Custom-score-for-a-id-field-tp23197465p23197465.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- Marcus Herou CTO

Custom score for a id field

2009-04-23 Thread Raju444us
ant is in the results if I use result.getScore() i should get the indexed score(fieldName :fieldScore) for the id instead of the default solr score. Please let me know the solution to do this. Thanks, Raju -- View this message in context: http://www.nabble.com/Custom-score-for-a-id-field-tp23