Re: How to count the number of hits in each abstract
Posted: Tue May 14, 2024 10:42 am
The code now selects the Abstract directly from the database, and you can do the same with dnum.
You should see code like:
that selects the Abstract.
After that you would want something like:
I haven't actually tested the code in the script, but the SQL expression works, and should return the dnumhits variable.
You should see code like:
Code: Select all
<$resultVars = $resultVars "Abstract">
<makeAbstractSqlExpression>
<$resultVarExps = $resultVarExps $ret>
After that you would want something like:
Code: Select all
<$resultVars = $resultVars "dnumhits">
<strfmt $qsrchfmt $txtquery>
<queryfixup var=$ret>
<$cleanMMQuery=$ret>
<$resultVarExps = $resultVarsExps "mminfo ($$cleanMMQuery,Body, 0,0, 6) - '203 hits: '">