Package com.jalios.jstore
Class FTSearchEngine
java.lang.Object
com.jalios.jstore.FTSearchEngine
This class implements a full-text engine. It is bases on the Jakarta-ORO
regular expression engine.
- Author:
- Olivier Dedieu <olivier.dedieu@jalios.com>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsearchRegexp(TreeSet<Searchable> dataSet, TreeSet<Searchable> resultSet, String[] regexp, boolean matchAll, boolean caseInsensitive, boolean accentInsensitive) Search all searchable object matching one of specified regular expressions.
-
Field Details
-
store
-
-
Constructor Details
-
FTSearchEngine
-
-
Method Details
-
searchRegexp
public TreeSet<Searchable> searchRegexp(TreeSet<Searchable> dataSet, TreeSet<Searchable> resultSet, String[] regexp, boolean matchAll, boolean caseInsensitive, boolean accentInsensitive) throws org.apache.oro.text.regex.MalformedPatternException Search all searchable object matching one of specified regular expressions. It fills the given resultSet with results from the dataSet matching given critera.- Parameters:
dataSet- the set containing searchable items (must not be null)resultSet- the set in which to put all results (must not be null)regexp- an array of regular expressionmatchAll- true if all regular expressions must be matchedcaseInsensitive- true if case must be ignoredaccentInsensitive- true if accent must be ignored- Returns:
- the resultSet received in paramater with added searchable matching one of the regular expressions
- Throws:
org.apache.oro.text.regex.MalformedPatternException
-