|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.search.lucene.LuceneSearchSession
@NotThreadSafe public class LuceneSearchSession
The AbstractLuceneSearchEngine.WorkspaceSession
implementation for the LuceneSearchEngine
.
Method Summary | |
---|---|
void |
commit()
Subclasses should implement this method to commit and save any work that has been done with this processor. |
AbstractLuceneSearchEngine.TupleCollector |
createTupleCollector(QueryResults.Columns columns)
Create a AbstractLuceneSearchEngine.TupleCollector instance that collects the results from the index(es). |
org.apache.lucene.search.Query |
findAllNodesAtOrBelow(Path parentPath)
|
org.apache.lucene.search.Query |
findAllNodesBelow(Path parentPath)
|
org.apache.lucene.search.Query |
findChildNodes(Path parentPath)
Return a query that can be used to find all of the documents that represent nodes that are children of the node at the supplied path. |
org.apache.lucene.search.Query |
findNodeAt(Path path)
Create a query that can be used to find the one document (or node) that exists at the exact path supplied. |
org.apache.lucene.search.Query |
findNodesLike(String fieldName,
String likeExpression,
boolean caseSensitive)
Create a query that can be used to find documents (or nodes) that have a field value that satisfies the supplied LIKE expression. |
org.apache.lucene.search.Query |
findNodesWith(Length propertyLength,
Operator operator,
Object value)
|
org.apache.lucene.search.Query |
findNodesWith(NodeDepth depthConstraint,
Operator operator,
Object value)
|
org.apache.lucene.search.Query |
findNodesWith(NodeLocalName nodeName,
Operator operator,
Object value,
boolean caseSensitive)
|
org.apache.lucene.search.Query |
findNodesWith(NodeName nodeName,
Operator operator,
Object value,
boolean caseSensitive)
|
org.apache.lucene.search.Query |
findNodesWith(NodePath nodePath,
Operator operator,
Object value,
boolean caseSensitive)
|
org.apache.lucene.search.Query |
findNodesWith(PropertyValue propertyValue,
Operator operator,
Object value,
boolean caseSensitive)
|
org.apache.lucene.search.Query |
findNodesWithNumericRange(NodeDepth depth,
Object lowerValue,
Object upperValue,
boolean includesLower,
boolean includesUpper)
|
org.apache.lucene.search.Query |
findNodesWithNumericRange(PropertyValue propertyValue,
Object lowerValue,
Object upperValue,
boolean includesLower,
boolean includesUpper)
|
int |
getChangeCount()
Get the number of changes that have been made to the workspace using this session. |
org.apache.lucene.search.IndexSearcher |
getContentSearcher()
|
Location |
getLocationForRoot()
|
LuceneSearchWorkspace |
getWorkspace()
|
String |
getWorkspaceName()
|
boolean |
hasWriters()
|
void |
rollback()
Subclasses should implement this method to throw away any work that has been done with this processor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getWorkspaceName()
AbstractLuceneSearchEngine.WorkspaceSession.getWorkspaceName()
public LuceneSearchWorkspace getWorkspace()
public org.apache.lucene.search.IndexSearcher getContentSearcher() throws IOException
IOException
public boolean hasWriters()
public final int getChangeCount()
AbstractLuceneSearchEngine.WorkspaceSession.getChangeCount()
public void commit()
AbstractLuceneSearchEngine.WorkspaceSession.commit()
public void rollback()
AbstractLuceneSearchEngine.WorkspaceSession.rollback()
public AbstractLuceneSearchEngine.TupleCollector createTupleCollector(QueryResults.Columns columns)
AbstractLuceneSearchEngine.TupleCollector
instance that collects the results from the index(es).
columns
- the column definitions; never null
AbstractLuceneSearchEngine.WorkspaceSession.createTupleCollector(org.jboss.dna.graph.query.QueryResults.Columns)
public Location getLocationForRoot() throws IOException
IOException
public org.apache.lucene.search.Query findAllNodesBelow(Path parentPath)
public org.apache.lucene.search.Query findAllNodesAtOrBelow(Path parentPath)
public org.apache.lucene.search.Query findChildNodes(Path parentPath)
parentPath
- the path of the parent node.
public org.apache.lucene.search.Query findNodeAt(Path path)
path
- the path of the node
public org.apache.lucene.search.Query findNodesLike(String fieldName, String likeExpression, boolean caseSensitive)
fieldName
- the name of the document field to searchlikeExpression
- the JCR like expressioncaseSensitive
- true if the evaluation should be performed in a case sensitive manner, or false otherwise
public org.apache.lucene.search.Query findNodesWith(Length propertyLength, Operator operator, Object value)
public org.apache.lucene.search.Query findNodesWith(PropertyValue propertyValue, Operator operator, Object value, boolean caseSensitive)
public org.apache.lucene.search.Query findNodesWithNumericRange(PropertyValue propertyValue, Object lowerValue, Object upperValue, boolean includesLower, boolean includesUpper)
public org.apache.lucene.search.Query findNodesWithNumericRange(NodeDepth depth, Object lowerValue, Object upperValue, boolean includesLower, boolean includesUpper)
public org.apache.lucene.search.Query findNodesWith(NodePath nodePath, Operator operator, Object value, boolean caseSensitive)
public org.apache.lucene.search.Query findNodesWith(NodeName nodeName, Operator operator, Object value, boolean caseSensitive)
public org.apache.lucene.search.Query findNodesWith(NodeLocalName nodeName, Operator operator, Object value, boolean caseSensitive)
public org.apache.lucene.search.Query findNodesWith(NodeDepth depthConstraint, Operator operator, Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |