Class FTSearchEngine


  • public class FTSearchEngine
    extends java.lang.Object
    This class implements a full-text engine. It is bases on the Jakarta-ORO regular expression engine.
    Version:
    $Revision: 107554 $
    Author:
    Olivier Dedieu <olivier.dedieu@jalios.com>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REVISION  
      protected Store store  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.TreeSet<Searchable> searchRegexp​(java.util.TreeSet<Searchable> dataSet, java.util.TreeSet<Searchable> resultSet, java.lang.String[] regexp, boolean matchAll, boolean caseInsensitive, boolean accentInsensitive)
      Search all searchable object matching one of specified regular expressions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FTSearchEngine

        public FTSearchEngine​(Store store)
    • Method Detail

      • searchRegexp

        public java.util.TreeSet<Searchable> searchRegexp​(java.util.TreeSet<Searchable> dataSet,
                                                          java.util.TreeSet<Searchable> resultSet,
                                                          java.lang.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 expression
        matchAll - true if all regular expressions must be matched
        caseInsensitive - true if case must be ignored
        accentInsensitive - 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