6 Replies Latest reply: Nov 20, 2012 2:39 PM by Terue RSS

    how to show relevance ranking score?

    Terue
      Is there any way to show ranking score in result page?
      Similar to Oracle Secure Enterprise Search.
        • 1. Re: how to show relevance ranking score?
          Pravin Chikhale
          You can use Nx parameter with whyrank as argument in your query.
          for example:

          http://<Host>:<Port>/endeca_jspref/controller.jsp?eneHost=localhost&enePort=15000&sid=13B042728E1B&N=0&Ntk=All&Ntt=red&Nty=1&D=red&Ntx=mode+matchall&Dx=mode+matchall&*Nx=whyrank*

          and it will give you below response:

          +DGraph.WhyRank:      [ { "freq" : { "evaluationTime" : "0", "stratumRank" : "2", "stratumDesc" : "Raw number of occurrences: 2", "perTermCount" : { "red" : "2" } }}, { "nterms" : { "evaluationTime" : "0.0009765625", "stratumRank" : "100", "stratumDesc" : "Matched 1 of 1 terms" }} ]+

          Here stratumRank is the ranking score for that record in freq module.

          You can test this in jspref.

          HTH

          --Pravin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
          • 2. Re: how to show relevance ranking score?
            Terue
            Thanks for quick reply. I've tried Nx=whyrank parameter in my orange application and it works.
            One more question.
            I may ask you a strange question but is it possible to combine the score of each modules?
            In your example, you use "freq" and "nterms". I want to show 1 score for each record.

            Thanks,
            Terue
            • 3. Re: how to show relevance ranking score?
              Pravin Chikhale
              Actually you can't and you should not combine. The score/rank given is depending upon the matching of search term against all modules in same order specified while creating your search interface. The rank for search term is independent of previous or next module (order).

              For example in a search result:
              for product ABC, freq rank=10|nterm rank=15
              for product XYZ, freq rank=9|nterm rank=19

              where the order we specified in Search interface is
              freq
              nterm

              HTH

              --Pravin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
              • 4. Re: how to show relevance ranking score?
                Terue
                Pravin

                Now I'm very clear. Thank you for your help!
                • 5. Re: how to show relevance ranking score?
                  Kristen G-Oracle
                  Just a quick note that whyrank and whymatch are definitely the way to go, but be aware they aren't recommended for use in a production environment because there will be a performance hit.
                  • 6. Re: how to show relevance ranking score?
                    Terue
                    OK, Thanks!