I index wikipedia dump file to solr with this format:
<page>
<title>Bruce Willis</title>
<ns>0</ns>
<id>64673</id>
<revision>
<id>789709463</id>
<parentid>789690745</parentid>
<timestamp>2017-07-09T02:27:39Z</timestamp>
<contributor>
<username>Materialscientist</username>
<id>7852030</id>
</contributor>
<comment>imdb is not a reliable source</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="57375">{{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.
And the schema file of the core:
<fieldType name="string" class="solr.StrField"/>
<fieldType name="date" class="solr.TrieDateField" precisionStep="0" positionIncrementGap="0"/>
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/>
<fieldType name="float" class="solr.TrieFloatField" precisionStep="0" positionIncrementGap="0"/>
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" positionIncrementGap="0"/>
<field name="id" type="string" indexed="true" stored="true" required="true"/>
<field name="_version_" type="long" indexed="true" stored="true"/>
<field name="TITLE" type="text_wiki" indexed="true" stored="true" termVectors="true" termPositions="true" termOffsets="true" />
<field name="REVISION_TEXT" type="text_wiki" indexed="true" stored="true" multiValued="true" termVectors="true" termPositions="true" termOffsets="true" />
<field name="REVISION_TIMESTAMP" type="date" indexed="true" stored="true" multiValued="true" />
<field name="CONTRIBUTOR_ID" type="int" indexed="true" stored="true" multiValued="true" />
<field name="CONTRIBUTOR_USERNAME" type="string" indexed="true" docValues="true" stored="true" multiValued="true" />
<dynamicField name="*" type="string" indexed="true" stored="true" multiValued="true"/>
<uniqueKey>id</uniqueKey>
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.
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