You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2011/07/05 19:26:09 UTC
[Solr Wiki] Update of "FunctionQuery" by YonikSeeley
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "FunctionQuery" page has been changed by YonikSeeley:
http://wiki.apache.org/solr/FunctionQuery?action=diff&rev1=77&rev2=78
Comment:
add ttf,sttf
. Example Syntax: '''termfreq''''''(text,'memory')'''
+ === totaltermfreq ===
+ '''totaltermfreq(field,term)''' returns the number of times the term appears in the field in the entire index. '''ttf''' is an alias of '''totaltermfreq'''.
+
+ . Example Syntax: '''ttf''''''(text,'memory')'''
+
+ === sumtotaltermfreq ===
+ '''sumtotaltermfreq(field)''' returns the sum of totaltermfreq values for all terms in the field in the entire index (i.e. the number of indexed tokens for that field). '''sttf''' is an alias of '''sumtotaltermfreq'''.
+
+ . Example Syntax: '''sttf''''''(text)'''
+
=== idf ===
- '''idf(field,term)''' returns the inverse document frequency for the given term, using the [[http://lucene.apache.org/java/3_0_0/api/core/org/apache/lucene/search/Similarity.html|Similarity] for the field.
+ '''idf(field,term)''' returns the inverse document frequency for the given term, using the [[http://lucene.apache.org/java/3_0_0/api/core/org/apache/lucene/search/Similarity.html|Similarity]] for the field.
. Example Syntax: '''idf(text,'solr')'''
=== tf ===
- '''tf(field,term)''' returns the term frequency factor for the given term, using the [[http://lucene.apache.org/java/3_0_0/api/core/org/apache/lucene/search/Similarity.html|Similarity] for the field.
+ '''tf(field,term)''' returns the term frequency factor for the given term, using the [[http://lucene.apache.org/java/3_0_0/api/core/org/apache/lucene/search/Similarity.html|Similarity]] for the field.
. Example Syntax: '''tf(text,'solr')'''