org.mmbase.storage.search
Interface StringSearchConstraint

All Superinterfaces:
Constraint, FieldConstraint
All Known Implementing Classes:
BasicStringSearchConstraint

public interface StringSearchConstraint
extends FieldConstraint

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:

Depending on searchtype and searchmode, the following parameters can be set:

Since:
MMBase-1.7
Version:
$Id: StringSearchConstraint.java,v 1.3 2003/03/10 11:50:52 pierre Exp $
Author:
Rob van Maris

Field Summary
static int MATCH_TYPE_FUZZY
          Match type for fuzzy matching.
static int MATCH_TYPE_LITERAL
          Match type for literal matching.
static int MATCH_TYPE_SYNONYM
          Match type for synonym matching.
static java.lang.String PARAM_FUZZINESS
          Name for parameter specifying fuzziness for fuzzy matching.
static java.lang.String PARAM_PROXIMITY_LIMIT
          Name for parameter specifying proximity limit for proximity oriented search.
static int SEARCH_TYPE_PHRASE_ORIENTED
          Search type for phrase oriented search.
static int SEARCH_TYPE_PROXIMITY_ORIENTED
          Search type for proximity oriented search.
static int SEARCH_TYPE_WORD_ORIENTED
          Search type for word oriented search.
 
Method Summary
 int getMatchType()
          Gets the match type.
 java.util.Map getParameters()
          Gets value of additional parameters.
 java.util.List getSearchTerms()
          Gets the list of searchterms.
 int getSearchType()
          Gets the search type, this specifies how the search is performed.
 java.lang.String toString()
          Returns a string representation of this StringSearchConstraint.
 
Methods inherited from interface org.mmbase.storage.search.FieldConstraint
getField, isCaseSensitive
 
Methods inherited from interface org.mmbase.storage.search.Constraint
equals, getBasicSupportLevel, hashCode, isInverse
 

Field Detail

SEARCH_TYPE_WORD_ORIENTED

public static final int SEARCH_TYPE_WORD_ORIENTED
Search type for word oriented search.

See Also:
Constant Field Values

SEARCH_TYPE_PHRASE_ORIENTED

public static final int SEARCH_TYPE_PHRASE_ORIENTED
Search type for phrase oriented search.

See Also:
Constant Field Values

SEARCH_TYPE_PROXIMITY_ORIENTED

public static final int SEARCH_TYPE_PROXIMITY_ORIENTED
Search type for proximity oriented search.

See Also:
Constant Field Values

MATCH_TYPE_LITERAL

public static final int MATCH_TYPE_LITERAL
Match type for literal matching.

See Also:
Constant Field Values

MATCH_TYPE_FUZZY

public static final int MATCH_TYPE_FUZZY
Match type for fuzzy matching.

See Also:
Constant Field Values

MATCH_TYPE_SYNONYM

public static final int MATCH_TYPE_SYNONYM
Match type for synonym matching.

See Also:
Constant Field Values

PARAM_FUZZINESS

public static final java.lang.String PARAM_FUZZINESS
Name for parameter specifying fuzziness for fuzzy matching.

See Also:
Constant Field Values

PARAM_PROXIMITY_LIMIT

public static final java.lang.String PARAM_PROXIMITY_LIMIT
Name for parameter specifying proximity limit for proximity oriented search.

See Also:
Constant Field Values
Method Detail

getSearchType

public int getSearchType()
Gets the search type, this specifies how the search is performed.


getParameters

public java.util.Map getParameters()
Gets value of additional parameters.

Returns:
The parameters, as an unmodifiable Map.

getMatchType

public int getMatchType()
Gets the match type.


getSearchTerms

public java.util.List getSearchTerms()
Gets the list of searchterms.

Returns:
The searchterms, as an unmodifiable List.

toString

public java.lang.String toString()
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


MMBase build 1.7.4.20050922