1 10 package org.mmbase.storage.search; 11 12 import java.util.*; 13 14 76 public interface StringSearchConstraint extends FieldConstraint { 77 78 79 public final static int SEARCH_TYPE_WORD_ORIENTED = 1; 80 81 82 public final static int SEARCH_TYPE_PHRASE_ORIENTED = 2; 83 84 85 public final static int SEARCH_TYPE_PROXIMITY_ORIENTED = 3; 86 87 92 String [] SEARCH_TYPE_DESCRIPTIONS = new String [] { 93 null, "word oriented", 95 "phrase oriented", 96 "proximity oriented" 97 }; 98 99 100 public final static int MATCH_TYPE_LITERAL = 1; 101 102 103 public final static int MATCH_TYPE_FUZZY = 2; 104 105 106 public final static int MATCH_TYPE_SYNONYM = 3; 107 108 113 public final static String [] MATCH_TYPE_DESCRIPTIONS = new String [] { 114 null, "literal", 116 "fuzzy", 117 "synonym" 118 }; 119 120 121 public final static String PARAM_FUZZINESS = "fuzziness"; 122 123 127 public final static String PARAM_PROXIMITY_LIMIT = "proximityLimit"; 128 129 132 int getSearchType(); 133 134 139 Map getParameters(); 140 141 144 int getMatchType(); 145 146 151 List getSearchTerms(); 152 153 179 public String toString(); 180 181 } 182 | Popular Tags |