public class DemoActions extends Object
Constructor and Description |
---|
DemoActions(InfinispanDirectory index,
Cache<?,?> cache) |
Modifier and Type | Method and Description |
---|---|
void |
addNewDocument(String line)
Creates a new document having just one field containing a string
|
List<String> |
listAllDocuments()
Returns a list of the values of all stored fields
|
List<Address> |
listAllMembers()
Returns a list of Addresses of all members in the cluster
|
List<String> |
listStoredValuesMatchingQuery(org.apache.lucene.search.Query query)
Runs a Query and returns the stored field for each matching document
|
org.apache.lucene.search.Query |
parseQuery(String queryLine)
Parses a query using the single field as default
|
public DemoActions(InfinispanDirectory index, Cache<?,?> cache)
public List<String> listStoredValuesMatchingQuery(org.apache.lucene.search.Query query)
IOException
public List<String> listAllDocuments()
IOException
public void addNewDocument(String line) throws IOException
line
- The text snippet to addIOException
public org.apache.lucene.search.Query parseQuery(String queryLine) throws ParseException
ParseException
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.