net.sf.flock.lucene
Class IndexService
java.lang.Object
|
+--net.sf.flock.lucene.IndexService
- public class IndexService
- extends java.lang.Object
Method Summary |
void |
add(org.apache.lucene.document.Document document)
|
void |
close()
|
int |
delete(java.lang.String field,
java.lang.String value)
|
int |
delete(org.apache.lucene.index.Term term)
|
org.apache.lucene.search.Hits |
search(org.apache.lucene.search.Query query)
|
org.apache.lucene.search.Hits |
search(java.lang.String field,
java.lang.String queryString)
|
void |
update(java.lang.String matchField,
org.apache.lucene.document.Document document)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexService
public IndexService(java.lang.String indexPath)
throws java.io.IOException
IndexService
public IndexService(java.lang.String indexPath,
boolean create)
throws java.io.IOException
add
public void add(org.apache.lucene.document.Document document)
throws java.io.IOException
java.io.IOException
delete
public int delete(java.lang.String field,
java.lang.String value)
throws java.io.IOException
java.io.IOException
delete
public int delete(org.apache.lucene.index.Term term)
throws java.io.IOException
java.io.IOException
update
public void update(java.lang.String matchField,
org.apache.lucene.document.Document document)
throws java.io.IOException
java.io.IOException
search
public org.apache.lucene.search.Hits search(java.lang.String field,
java.lang.String queryString)
throws org.apache.lucene.queryParser.ParseException,
java.io.IOException
org.apache.lucene.queryParser.ParseException
java.io.IOException
search
public org.apache.lucene.search.Hits search(org.apache.lucene.search.Query query)
throws java.io.IOException
java.io.IOException
close
public void close()
Copyright © 2002-2003 Presence Inc. All Rights Reserved.