Bowker Contributor.

BIASVAL on mimetype

I'm trying to bias URLs that report their mime type as HTML documents over PDFs and other types.

I've add this to the query and it does not affect the results.


If I use the same field specification with MATCH{text%2Fhtml} I only get back HTML documents so the field exists and has the values I expect.  But I've not found a way to promote all the HTML and/or demote non-HTML

Any guess what I'm missing?

1 Reply
Micro Focus Contributor
Micro Focus Contributor

Re: BIASVAL on mimetype

Have you checked that DOCUMENT_KEYVIEW_CONTENTTYPE_STRING is configured as either MatchType or ParametricType (with ParametricNumericMapping enabled)?

If it's not you should be getting back the warning:

BIASVAL must be restricted to MatchType or ParametricNumericMapping fields only. The bias will not occur

You can check which fields the engine has configured as those types with:


To verify, pick one document with the right value and try:



You should see the <autn:weight> of your one hit change accordingly. If it is changing then the BIASVAL is working correctly and perhaps some other aspect of your results scoring is making you think that it isn't having an effect.




The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.