|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.opengrok.search.SearchEngine
public class SearchEngine
This is an encapsulation of the details on how to seach in the index database.
Field Summary | |
---|---|
static org.apache.lucene.util.Version |
LUCENE_VERSION
version of lucene index common for whole app |
Constructor Summary | |
---|---|
SearchEngine()
Creates a new instance of SearchEngine |
Method Summary | |
---|---|
java.lang.String |
getDefinition()
Getter for property definition. |
java.lang.String |
getFile()
Getter for property file. |
java.lang.String |
getFreetext()
Getter for property freetext. |
java.lang.String |
getHistory()
Getter for property history. |
java.lang.String |
getQuery()
|
java.lang.String |
getSymbol()
Getter for property symbol. |
boolean |
isValidQuery()
|
void |
results(int start,
int end,
java.util.List<Hit> ret)
get results , if no search was started before, no results are returned this method will requery if end end is more than first query from search, hence performance hit applies, if you want results in later pages than number of cachePages also end has to be bigger than start ! |
int |
search()
Execute a search. |
void |
setDefinition(java.lang.String definition)
Setter for property definition. |
void |
setFile(java.lang.String file)
Setter for property file. |
void |
setFreetext(java.lang.String freetext)
Setter for property freetext. |
void |
setHistory(java.lang.String history)
Setter for property history. |
void |
setSymbol(java.lang.String symbol)
Setter for property symbol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.lucene.util.Version LUCENE_VERSION
Constructor Detail |
---|
public SearchEngine()
Method Detail |
---|
public boolean isValidQuery()
public java.lang.String getQuery()
public int search()
public void results(int start, int end, java.util.List<Hit> ret)
start
- start of the hit listend
- end of the hit listret
- list of results from start to end or null/empty if no search was startedpublic java.lang.String getDefinition()
public void setDefinition(java.lang.String definition)
definition
- New value of property definition.public java.lang.String getFile()
public void setFile(java.lang.String file)
file
- New value of property file.public java.lang.String getFreetext()
public void setFreetext(java.lang.String freetext)
freetext
- New value of property freetext.public java.lang.String getHistory()
public void setHistory(java.lang.String history)
history
- New value of property history.public java.lang.String getSymbol()
public void setSymbol(java.lang.String symbol)
symbol
- New value of property symbol.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |