Domain based scoring algorithm for Apache Nutch 2.3.1












0















I have setup Hadoop/Hbase and Nutch 2.3.1 ecosystem to crawl few domains from web. Crawler is not restricted to the seed only and will grow with time ( from the outlinks). I have to customize ranking according to my own needs. I want to set score centralized for each domain and for any document, its score will be fetched from its domain rather than document level. Just to make thing more clear



S = S1 + S2 + S3 + ... + Sn
Sd = S/(total docs)


Where S is total score i.e., sum of the score of each document. Sd is the average of total score. S1 (and so on) is the score that will be given to document based on its quality.
I basically want to make a guess for new coming document whether it is good to fetch or not.



For that, Its implementation is problematic (it may be due to I am a newbie) and I could not add a new document in scoring classes in Nutch. First of all, is it possible or is there any alternative and better solution available? and if yes then how to add a new (domain) document if it does not exist in datastore at runtime.










share|improve this question



























    0















    I have setup Hadoop/Hbase and Nutch 2.3.1 ecosystem to crawl few domains from web. Crawler is not restricted to the seed only and will grow with time ( from the outlinks). I have to customize ranking according to my own needs. I want to set score centralized for each domain and for any document, its score will be fetched from its domain rather than document level. Just to make thing more clear



    S = S1 + S2 + S3 + ... + Sn
    Sd = S/(total docs)


    Where S is total score i.e., sum of the score of each document. Sd is the average of total score. S1 (and so on) is the score that will be given to document based on its quality.
    I basically want to make a guess for new coming document whether it is good to fetch or not.



    For that, Its implementation is problematic (it may be due to I am a newbie) and I could not add a new document in scoring classes in Nutch. First of all, is it possible or is there any alternative and better solution available? and if yes then how to add a new (domain) document if it does not exist in datastore at runtime.










    share|improve this question

























      0












      0








      0








      I have setup Hadoop/Hbase and Nutch 2.3.1 ecosystem to crawl few domains from web. Crawler is not restricted to the seed only and will grow with time ( from the outlinks). I have to customize ranking according to my own needs. I want to set score centralized for each domain and for any document, its score will be fetched from its domain rather than document level. Just to make thing more clear



      S = S1 + S2 + S3 + ... + Sn
      Sd = S/(total docs)


      Where S is total score i.e., sum of the score of each document. Sd is the average of total score. S1 (and so on) is the score that will be given to document based on its quality.
      I basically want to make a guess for new coming document whether it is good to fetch or not.



      For that, Its implementation is problematic (it may be due to I am a newbie) and I could not add a new document in scoring classes in Nutch. First of all, is it possible or is there any alternative and better solution available? and if yes then how to add a new (domain) document if it does not exist in datastore at runtime.










      share|improve this question














      I have setup Hadoop/Hbase and Nutch 2.3.1 ecosystem to crawl few domains from web. Crawler is not restricted to the seed only and will grow with time ( from the outlinks). I have to customize ranking according to my own needs. I want to set score centralized for each domain and for any document, its score will be fetched from its domain rather than document level. Just to make thing more clear



      S = S1 + S2 + S3 + ... + Sn
      Sd = S/(total docs)


      Where S is total score i.e., sum of the score of each document. Sd is the average of total score. S1 (and so on) is the score that will be given to document based on its quality.
      I basically want to make a guess for new coming document whether it is good to fetch or not.



      For that, Its implementation is problematic (it may be due to I am a newbie) and I could not add a new document in scoring classes in Nutch. First of all, is it possible or is there any alternative and better solution available? and if yes then how to add a new (domain) document if it does not exist in datastore at runtime.







      java hadoop mapreduce nutch nutch2






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 13 '18 at 9:52









      ShafiqShafiq

      2,87742850




      2,87742850
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53278227%2fdomain-based-scoring-algorithm-for-apache-nutch-2-3-1%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53278227%2fdomain-based-scoring-algorithm-for-apache-nutch-2-3-1%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Florida Star v. B. J. F.

          Danny Elfman

          Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues