|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.search.lucene.LuceneSearch
LuceneSearch is a wrapper for the Lucene search facilities. It contains constructors to create new searches and methods to iterate over and to get information for each hit.
Constructor Summary | |
LuceneSearch(org.apache.lucene.search.Query q)
Search given a preformed query. |
|
LuceneSearch(String searchString)
Search over all objects in the system. |
|
LuceneSearch(String searchString,
org.apache.lucene.search.Filter f)
Search over all objects in the system using a filter |
|
LuceneSearch(String searchString,
String objectType)
Search for a specific ACS object and search string. |
Method Summary | |
void |
close()
Closes this search, freeing associated resources. |
String |
getContent()
Returns the content |
Date |
getCreationDate()
|
BigDecimal |
getID()
Returns the object ID |
Date |
getLastModifiedDate()
|
Locale |
getLocale()
Returns the locale the content is in |
float |
getScore()
Returns the score of this hit. |
String |
getSummary()
Returns a summary for the hit |
String |
getTitle()
Returns the link text for the object |
String |
getType()
Returns the object type. |
String |
getTypeSpecificInfo()
Returns type-specific info. |
boolean |
next()
Returns true if the search has more results |
int |
size()
Returns the number of hits in this query. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LuceneSearch(String searchString)
searchString
- user specified search stringpublic LuceneSearch(String searchString, String objectType)
searchString
- user specified search stringobjectType
- ACS object typepublic LuceneSearch(String searchString, org.apache.lucene.search.Filter f)
searchString
- user specified search stringf
- a filterpublic LuceneSearch(org.apache.lucene.search.Query q)
q
- a performed queryMethod Detail |
public int size()
public boolean next()
public void close()
public float getScore()
public BigDecimal getID()
public Locale getLocale()
public String getType()
public String getTypeSpecificInfo()
public String getTitle()
public String getSummary()
public String getContent()
public Date getCreationDate()
public Date getLastModifiedDate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |