Each document that is stored in the IDOL Content component is given an AutnRank
value which indicates the importance of the document. By default Content ignores this value and gives all documents an AutnRank
value of 0
.
You can boost the relevance of documents according to how important they are to you by creating a field in the documents that indicates their importance, and instructing Content to read the AutnRank
value from this field. If two documents match a query equally well, the one that has the higher value in this field returns with a higher relevance rating.
In the [Server]
section of the IDOL Content component configuration file, set AutnRank
to True
.
This instructs Content to take the AutnRank
value of a document into account when it calculates the relevance that the document is given if it returns as a result.
In the [FieldProcessing]
section, set up a ranking process. This process allows Content to identify which field in a document contains its AutnRank
value.
For example:
[FieldProcessing] 0=SetAutnRankField
Create a section for the ranking process that you listed, in which you create a property for the process. Identify the field that you want to associate with the process.
To identify the fields, use the format /FieldName
to match root-level fields, */FieldName
to match all fields except root-level, or /Path/FieldName
to match fields that the specified path points to.
NOTE: The property that you create must not have the same name as the process.
For example:
[SetAutnRankField] Property=ReadAutnRank PropertyFieldCSVs=*/AUTNRANK
In this example Content reads the AutnRank
value of the document from its AUTNRANK
field.
Create a section for the property in which you set the AutnRankType
parameter to True
.
[ReadAutnRank] AutnRankType=True
Save and close the configuration file.
Restart the IDOL Content component for your changes to take effect.
|