public class NewsMessageSearcher
extends java.lang.Object
Constructor and Description |
---|
NewsMessageSearcher() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escape(java.lang.String sInput)
Escape special characters from a Lucene query
|
static boolean |
isIndexed(java.lang.String sLuceneIndexPath,
java.lang.String sWorkArea,
java.lang.String sNewsGroupCategoryName,
java.lang.String sMsgId)
Find out if a given NewsMessage is already indexed
|
static NewsMessageRecord[] |
search(java.lang.String sLuceneIndexPath,
java.lang.String sWorkArea,
java.lang.String sNewsGroupCategoryName,
java.lang.String sAuthor,
java.lang.String sTitle,
java.util.Date dtFromDate,
java.util.Date dtToDate,
java.lang.String sText,
int iLimit,
java.util.Comparator oSortBy)
Compose a Lucene query based on given parameters
|
public static boolean isIndexed(java.lang.String sLuceneIndexPath, java.lang.String sWorkArea, java.lang.String sNewsGroupCategoryName, java.lang.String sMsgId) throws org.apache.lucene.queryParser.ParseException, java.io.IOException, java.lang.NullPointerException
sLuceneIndexPath
- String Base path for Lucene indexes excluding WorkArea and table namesWorkArea
- String GUID of WorkArea to be searched (optional, may be null)sNewsGroupCategoryName
- String GUID or Category Name of NewsGroup to which message belongs (optional, may be null)sAuthor
- StringsTitle
- StringsText
- StringiLimit
- intoSortBy
- Comparatororg.apache.lucene.queryParser.ParseException
java.io.IOException
java.lang.NullPointerException
public static NewsMessageRecord[] search(java.lang.String sLuceneIndexPath, java.lang.String sWorkArea, java.lang.String sNewsGroupCategoryName, java.lang.String sAuthor, java.lang.String sTitle, java.util.Date dtFromDate, java.util.Date dtToDate, java.lang.String sText, int iLimit, java.util.Comparator oSortBy) throws org.apache.lucene.queryParser.ParseException, java.io.IOException, java.lang.NullPointerException
sLuceneIndexPath
- String Base path for Lucene indexes excluding WorkArea and table namesWorkArea
- String GUID of WorkArea to be searched, cannot be nullsGroup
- sNewsGroupCategoryName String GUID or Category Name of NewsGroup to which message belongs (optional, may be null)sAuthor
- StringsTitle
- StringsText
- StringiLimit
- intoSortBy
- Comparatororg.apache.lucene.queryParser.ParseException
java.io.IOException
java.lang.NullPointerException
public static java.lang.String escape(java.lang.String sInput)