We have a requirement that requires an additive score and I am not sure if it is possible and what the right way to go about it is. Assume, there are three fields - (a) Project name - contains text (b) Project description - contains text (c) Profile score - numeric
The basic idea is to implement the score as a linear function of term frequency for (a), (b) and add the score in (c). For example, if the project name is "Web PHP - Web Dev and Web Design" and the project description is "Web Design and Development", then a search for "Web" should yield, score for project name = 150 * 1 + 10 * 2, where the multiplying factor is 150 for the first occurrence of of "Web" and the factor is 10 for the next two occurrences. score for project description = 200 * 1, where the multiplying factor is 200. score for profile = 10 * 0.5, where 10 is the multiplying factor and 0.5 is a system generated user score. The total score would then be, 170 + 200 + 5 = 375. The DisjunctionMaxQuery seems to yield the maximum score only. From my understanding, I would need to do the following - (1) Create a new similarity function (2) Write a new Query class extension (3) Need to write a new linear function ?? It seems to be that some elements are probably already there, and I am not understanding the capabilities/possibilities very well. Thanks in advance. -- View this message in context: http://www.nabble.com/Question-about-similarity-manipulation...-tf2910171.html#a8131037 Sent from the Solr - User mailing list archive at Nabble.com.