@Immutable
public class SearcherIndex
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SearcherIndex.BuildEntity<T> |
| Constructor and Description |
|---|
SearcherIndex() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.lucene.search.Query |
buildMultiFieldsQuery(java.lang.String key,
java.lang.String[] fields) |
static EggBasket<java.lang.String,java.lang.String> |
getReferenced(org.apache.lucene.index.IndexWriter writer,
java.lang.String forId,
java.lang.String where,
java.lang.String KEY_ID) |
static java.lang.String |
getSCMlastCommit(org.apache.lucene.index.IndexWriter writer,
java.lang.String SCMconnectionName,
java.util.Map<java.lang.String,java.lang.String> lastCommits) |
static java.util.List<CommitListItem<Pair>> |
getSCMreferenceByNumber(org.apache.lucene.index.IndexWriter writer,
java.lang.String taskNum,
java.lang.String SCMconnectionName) |
static java.util.List<CommitListItem<Pair>> |
getSCMReferences(org.apache.lucene.index.IndexWriter writer,
java.lang.String SCMconnectionName) |
static <T> java.util.List<T> |
search(org.apache.lucene.index.IndexWriter writer,
org.apache.lucene.search.Query query,
int limit,
SearcherIndex.BuildEntity<T> builder) |
static java.util.HashMap<java.lang.String,DocumentBuilder.FoundItem> |
searchKeyForAttachments(org.apache.lucene.index.IndexWriter writer,
java.lang.String word) |
static java.util.HashMap<java.lang.String,DocumentBuilder.FoundItem> |
searchKeyForTasks(org.apache.lucene.index.IndexWriter writer,
java.lang.String word) |
static java.util.HashMap<java.lang.String,DocumentBuilder.FoundItem> |
searchKeyForUsers(org.apache.lucene.index.IndexWriter writer,
java.lang.String word) |
static java.util.HashMap<java.lang.String,java.lang.Float> |
searchText(org.apache.lucene.index.IndexWriter writer,
java.lang.String searchString,
java.lang.String id,
java.util.HashMap<java.lang.String,java.lang.Float> list) |
public static org.apache.lucene.search.Query buildMultiFieldsQuery(java.lang.String key,
java.lang.String[] fields)
throws org.apache.lucene.queryparser.classic.ParseException
org.apache.lucene.queryparser.classic.ParseExceptionpublic static java.util.HashMap<java.lang.String,java.lang.Float> searchText(org.apache.lucene.index.IndexWriter writer,
java.lang.String searchString,
java.lang.String id,
java.util.HashMap<java.lang.String,java.lang.Float> list)
throws java.lang.Exception
java.lang.Exceptionpublic static EggBasket<java.lang.String,java.lang.String> getReferenced(org.apache.lucene.index.IndexWriter writer, java.lang.String forId, java.lang.String where, java.lang.String KEY_ID) throws GranException
GranExceptionpublic static java.util.HashMap<java.lang.String,DocumentBuilder.FoundItem> searchKeyForAttachments(org.apache.lucene.index.IndexWriter writer, java.lang.String word) throws GranException
GranExceptionpublic static java.util.HashMap<java.lang.String,DocumentBuilder.FoundItem> searchKeyForUsers(org.apache.lucene.index.IndexWriter writer, java.lang.String word) throws GranException
GranExceptionpublic static java.util.HashMap<java.lang.String,DocumentBuilder.FoundItem> searchKeyForTasks(org.apache.lucene.index.IndexWriter writer, java.lang.String word) throws GranException
GranExceptionpublic static java.util.List<CommitListItem<Pair>> getSCMreferenceByNumber(org.apache.lucene.index.IndexWriter writer, java.lang.String taskNum, java.lang.String SCMconnectionName) throws GranException
GranExceptionpublic static java.util.List<CommitListItem<Pair>> getSCMReferences(org.apache.lucene.index.IndexWriter writer, java.lang.String SCMconnectionName) throws GranException
GranExceptionpublic static java.lang.String getSCMlastCommit(org.apache.lucene.index.IndexWriter writer,
java.lang.String SCMconnectionName,
java.util.Map<java.lang.String,java.lang.String> lastCommits)
throws GranException
GranExceptionpublic static <T> java.util.List<T> search(org.apache.lucene.index.IndexWriter writer,
org.apache.lucene.search.Query query,
int limit,
SearcherIndex.BuildEntity<T> builder)
throws java.io.IOException
java.io.IOExceptionCopyright © 2002-2011 TrackStudio, Ltd. All Rights Reserved.