/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/ |
H A D | StringDistance.java | 29 * @param s1 The first string. 33 public float getDistance(String s1,String s2); argument
|
H A D | JaroWinklerDistance.java | 31 private int[] matches(String s1, String s2) { argument 33 if (s1.length() > s2.length()) { 34 max = s1; 38 min = s1; 79 if (s1.charAt(mi) == s2.charAt(mi)) { 88 public float getDistance(String s1, String s2) { argument 89 int[] mtp = matches(s1, s2); 94 float j = ((m / s1.length() + m / s2.length() + (m - mtp[1]) / m)) / 3;
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/ |
H A D | TestDistributedGrouping.java | 37 String s1="1_a_s1"; field in class:TestDistributedGrouping 52 query("q", "*:*", "rows", 100, "fl", "id," + s1, "group", "true", "group.field", s1, "group.limit", 10, "sort", s1 + " asc, id asc"); 53 query("q", "*:*", "rows", 100, "fl", "id," + s1, "group", "true", "group.field", s1, "group.limit", 10, "sort", s1 + " asc, id asc", "hl","true","hl.fl",t1); 54 query("q", "*:*", "rows", 100, "fl", "id," + s1, "group", "true", "group.field", s1, "group.limit", 10, "sort", s1 [all...] |
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/search/ |
H A D | SearchEquivalenceTestBase.java | 46 protected static IndexSearcher s1, s2; field in class:SearchEquivalenceTestBase 86 s1 = newSearcher(reader); 99 s1 = s2 = null; 171 TopDocs td1 = s1.search(q1, filter, reader.maxDoc());
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/spans/ |
H A D | TestNearSpansOrdered.java | 75 protected SpanNearQuery makeQuery(String s1, String s2, String s3, argument 79 new SpanTermQuery(new Term(FIELD, s1)),
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/spans/ |
H A D | TestNearSpansOrdered.java | 75 protected SpanNearQuery makeQuery(String s1, String s2, String s3, argument 79 new SpanTermQuery(new Term(FIELD, s1)),
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/analysis/ |
H A D | TestWordDelimiterFilter.java | 68 public void posTst(String v1, String v2, String s1, String s2) { argument 77 req("+id:42 +subword:\"" + s1 + ' ' + s2 + "\"~90") 81 req("+id:42 +subword:\"" + s1 + ' ' + s2 + "\"~110")
|