[
https://issues.apache.org/jira/browse/SOLR-1932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yonik Seeley updated SOLR-1932:
-------------------------------
Attachment: SOLR-1932.patch
Half for fun, this is a draft (no tests, etc) that implements
- docfreq(field,val)
- termfreq(field,val)
- idf(field,val)
- tf(field,val)
- norm(field)
- maxdoc()
- numdocs()
Example:
http://localhost:8983/solr/select?defType=func&fl=id,score&debugQuery=true&q=termfreq(text,solr)
The field name and field value currently don't need to be quoted, but may be.
Param dereferencing should also be supported, but I haven't tested it.
The usefulness of these could grow when one considers new features such as
sort-by-function, and not yet implemented pseudo-fields (returning function
query values for every doc in a result).
> add relevancy function queries
> ------------------------------
>
> Key: SOLR-1932
> URL: https://issues.apache.org/jira/browse/SOLR-1932
> Project: Solr
> Issue Type: New Feature
> Reporter: Yonik Seeley
> Priority: Minor
> Fix For: 4.0
>
> Attachments: SOLR-1932.patch
>
>
> Add function queries for relevancy factors such as tf, idf, etc.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]