Before I index this field I classify this field with some other mechanism and build some score.So When I index this id field i also index score(which is float) for this field.So when i search for this id field in the results i need the score i indexed for this field instead of default score for the document.
If I used QueryElevationComponent how can I get the custom score which I indexed for this field. Thanks, Raju Shalin Shekhar Mangar wrote: > > On Thu, Apr 23, 2009 at 10:49 PM, Raju444us <gudipal...@gmail.com> 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 that id q="id:1234".What I want 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. >> > > What is the use-case here? > > Do you 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.