| org.mmbase.storage.search.StringSearchConstraint
All known Subclasses: org.mmbase.storage.search.implementation.BasicStringSearchConstraint,
StringSearchConstraint | public interface StringSearchConstraint extends FieldConstraint(Code) | | A constraint specifically for advanced types of text searches.
In addition to searchterms, a search type and a
match type can be specified:
The search type specifies how the search is performed:
Must be one of:
The match type specifies how individual words in the
search terms are matched with words in the searched text.
The searchterms may containt the following wildchard characters as well:
- % for any string
- _ for a single character
Depending on searchtype and searchmode, the following parameters
can be set:
-
StringSearchConstraint.PARAM_FUZZINESS PARAM_FUZZINESS -
Float , specifies maximum allowed number of
typo's per word, expressed as fraction of word length.
(E.g. 0,2 means: maximum 2 typo's for 10 letter words.).
This parameter is only relevant when used with match type
MATCH_TYPE_FUZZY .
It can only be set for this match type, and is cleared when
the match type is set to another value.
-
StringSearchConstraint.PARAM_PROXIMITY_LIMIT PARAM_PROXIMITY_LIMIT -
Integer , specifies maximum distance between
searched words.
This parameter is only relevant when used with search type
SEARCH_TYPE_PROXIMITY_ORIENTED .
It can only be set for this search type, and is cleared when
the search type is set to another value.
author: Rob van Maris version: $Id: StringSearchConstraint.java,v 1.5 2007/02/24 21:57:50 nklasens Exp $ since: MMBase-1.7 |
MATCH_TYPE_FUZZY | final public static int MATCH_TYPE_FUZZY(Code) | | Match type for fuzzy matching.
|
MATCH_TYPE_LITERAL | final public static int MATCH_TYPE_LITERAL(Code) | | Match type for literal matching.
|
MATCH_TYPE_SYNONYM | final public static int MATCH_TYPE_SYNONYM(Code) | | Match type for synonym matching.
|
PARAM_FUZZINESS | final public static String PARAM_FUZZINESS(Code) | | Name for parameter specifying fuzziness for fuzzy matching.
|
PARAM_PROXIMITY_LIMIT | final public static String PARAM_PROXIMITY_LIMIT(Code) | | Name for parameter specifying proximity limit for
proximity oriented search.
|
SEARCH_TYPE_PHRASE_ORIENTED | final public static int SEARCH_TYPE_PHRASE_ORIENTED(Code) | | Search type for phrase oriented search.
|
SEARCH_TYPE_PROXIMITY_ORIENTED | final public static int SEARCH_TYPE_PROXIMITY_ORIENTED(Code) | | Search type for proximity oriented search.
|
SEARCH_TYPE_WORD_ORIENTED | final public static int SEARCH_TYPE_WORD_ORIENTED(Code) | | Search type for word oriented search.
|
getMatchType | int getMatchType()(Code) | | Gets the match type.
|
getParameters | Map<String, Object> getParameters()(Code) | | Gets value of additional parameters.
The parameters, as an unmodifiable Map. |
getSearchTerms | List<String> getSearchTerms()(Code) | | Gets the list of searchterms.
The searchterms, as an unmodifiable List. |
getSearchType | int getSearchType()(Code) | | Gets the search type, this specifies how the search is performed.
|
toString | public String toString()(Code) | | Returns a string representation of this StringSearchConstraint.
The string representation has the form
"StringSearchConstraint(inverse:<:inverse>, field:<field>,
casesensitive:<casesensitive>, searchtype:<searchtype>,
matchtype:<matchtype>, parameters:<parameters>,
searchterms:<searchterms>)"
where
|
|
|