lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "FunctionQuery" by GrantIngersoll
Date Mon, 23 Nov 2009 17:28:47 GMT
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 GrantIngersoll.
http://wiki.apache.org/solr/FunctionQuery?action=diff&rev1=42&rev2=43

--------------------------------------------------

  
  Example: geohash(lat, lon)
  
+ == strdist ==
+ [[Solr1.5]]   See: https://issues.apache.org/jira/browse/SOLR-1302
+ 
+ Calculate the distance between two strings.  Uses the Lucene spell checker StringDistance
interface and supports all of the implementations available in that package, plus allows applications
to plug in their own via Solr's resource loading capabilities.
+ 
+ Signature: strdist(ValueSource, ValueSource, {jw|edit|ngram|FQN}[, ngram size])
+ 
+ The third argument is the name of the distance measure to use.  The abbreviations stand
for:
+  1. jw - Jaro-Winkler
+  1. edit - Levenstein or Edit distance
+  1. ngram - The NGramDistance, if specified, can optionally pass in the ngram size too.
 Default is 2.
+  1. FQN - Fully Qualified class Name for an implementation of the StringDistance interface.
 Must have a no-arg constructor.
+  
+ 
  == top ==
  <!> [[Solr1.4]] Causes it's function query argument to derive it's values from the
top-level IndexReader containing all parts of an index.  For example, the ordinal of a value
in a single segment will be different from the ordinal of that same value in the complete
index.  The ord() and rord() functions implicitly use top() and hence ord(foo) is equivalent
to top(ord(foo)).
  

Mime
View raw message