Class RankField

  • public class RankField
    extends FieldType
    RankFields can be used to store scoring factors to improve document ranking. They should be used in combination with RankQParserPlugin. To use:

    Define the RankField fieldType in your schema:

     <fieldType name="rank" class="solr.RankField" />

    Add fields to the schema, i.e.:

     <field name="pagerank" type="rank" />
    Query using the RankQParserPlugin, for example
     http://localhost:8983/solr/techproducts?q=memory _query_:{!rank f='pagerank', function='log' scalingFactor='1.2'}
    See Also:
    WARNING: This API is experimental and might change in incompatible ways in the next release.