Skip to content

Commit

Permalink
Add doctype_boost (#224)
Browse files Browse the repository at this point in the history
* Add doctype_boost to the schema

* Change field name

* Enable completely disabling cite_read_boost
  • Loading branch information
JCRPaquin authored Dec 5, 2024
1 parent c6a9f9b commit b88e9bb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions deploy/adsabs/server/solr/collection1/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,19 @@

<!--
@api.doc
* doctype_boost
Float values containing normalized (float) boost factors. These
can be used with functional queries to modify ranking of results.
Example:
q={!func}product(product(0.5,$scaledQ),product(0.5,field('doctype_boost')))
qq={!aqp}black hole
fq={!query v=$qq}
-->
<field name="doctype_boost" type="tfloat" indexed="true"
stored="true" omitNorms="true" omitTermFreqAndPositions="true" />

<!--
@api.doc
* cite_read_boost
Float values containing normalized (float) boost factors. These
can be used with functional queries to modify ranking of results.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class AqpChangeRewriteMethodProcessor extends

protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException {

if (first && getConfigVal("aqp.classic_scoring.modifier", "") != "") {
if (first && getConfigVal("aqp.classic_scoring.modifier", "").strip() != "") {
// TODO: i don't want to make the source field be changed with URL params
// but i'd like it to be configurable

Expand Down

0 comments on commit b88e9bb

Please sign in to comment.