title: How to use solr to calculate the pagerank of a node?
body: <p>I index wikipedia dump file to solr with this format:</p>
  
  <pre><code>&lt;page&gt;
      &lt;title&gt;Bruce Willis&lt;/title&gt;
      &lt;ns&gt;0&lt;/ns&gt;
      &lt;id&gt;64673&lt;/id&gt;
      &lt;revision&gt;
        &lt;id&gt;789709463&lt;/id&gt;
        &lt;parentid&gt;789690745&lt;/parentid&gt;
        &lt;timestamp&gt;2017-07-09T02:27:39Z&lt;/timestamp&gt;
        &lt;contributor&gt;
          &lt;username&gt;Materialscientist&lt;/username&gt;
          &lt;id&gt;7852030&lt;/id&gt;
        &lt;/contributor&gt;
        &lt;comment&gt;imdb is not a reliable source&lt;/comment&gt;
        &lt;model&gt;wikitext&lt;/model&gt;
        &lt;format&gt;text/x-wiki&lt;/format&gt;
        &lt;text xml:space="preserve" bytes="57375"&gt;{{Use mdy dates|date=March 2012}}
  {{Infobox person
   | name = Bruce Willis
   | image = Bruce Willis by Gage Skidmore.jpg
   | caption = Willis at the 2010 [[San Diego Comic-Con]].
   | birth_name = Walter Bruce Willis
   | birth_date = {{Birth date and age|1955|3|19}} 
  | 
   | birth_place = [[Idar-Oberstein]], West Germany
   | nationality = [[American people|American]]
   | residence = [[Los Angeles]], [[California]], U.S.
  </code></pre>
  
  <p>And the schema file of the core:</p>
  
  <pre><code>&lt;fieldType name="string" class="solr.StrField"/&gt;
      &lt;fieldType name="date" class="solr.TrieDateField" precisionStep="0" positionIncrementGap="0"/&gt;
      &lt;fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/&gt;
      &lt;fieldType name="float" class="solr.TrieFloatField" precisionStep="0" positionIncrementGap="0"/&gt;
      &lt;fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/&gt;
      &lt;fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" positionIncrementGap="0"/&gt;
  
      &lt;field name="id" type="string" indexed="true" stored="true" required="true"/&gt;
      &lt;field name="_version_" type="long" indexed="true" stored="true"/&gt;
      &lt;field name="TITLE" type="text_wiki" indexed="true" stored="true" termVectors="true" termPositions="true" termOffsets="true" /&gt;
      &lt;field name="REVISION_TEXT" type="text_wiki" indexed="true" stored="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true" /&gt;
      &lt;field name="REVISION_TIMESTAMP" type="date" indexed="true" stored="true" multiValued="true" /&gt;
      &lt;field name="CONTRIBUTOR_ID" type="int" indexed="true" stored="true" multiValued="true" /&gt;
      &lt;field name="CONTRIBUTOR_USERNAME" type="string" indexed="true" docValues="true" stored="true" multiValued="true" /&gt;
  
      &lt;dynamicField name="*" type="string" indexed="true" stored="true" multiValued="true"/&gt;
      &lt;uniqueKey&gt;id&lt;/uniqueKey&gt;
  </code></pre>
  
  <p>I did not post all content of schema.xml. I know we can use solr to get the score or similarity. Similarity is calculated based on (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)). I think page rank is based on number of incoming and outgoing pages. But with this typeField I cannot retrieve incoming and outgoing pages. </p>
  
  <p>So I don't know how to calculate pagerank using solr. Did I understand wrong? Could you give me some advice if you know how to do this? Thanks</p>