Methods Summary |
---|
public void | close()
local.close();
|
public org.apache.lucene.document.Document | doc(int i)
return local.doc(i);
|
public int | docFreq(org.apache.lucene.index.Term term)
return local.docFreq(term);
|
public int[] | docFreqs(org.apache.lucene.index.Term[] terms)
return local.docFreqs(terms);
|
public org.apache.lucene.search.Explanation | explain(org.apache.lucene.search.Query query, int doc)
return local.explain(query, doc);
|
public org.apache.lucene.search.Explanation | explain(org.apache.lucene.search.Weight weight, int doc)
return local.explain(weight, doc);
|
public static void | main(java.lang.String[] args)Exports a searcher for the index in args[0] named
"//localhost/Searchable".
String indexName = null;
if (args != null && args.length == 1)
indexName = args[0];
if (indexName == null) {
System.out.println("Usage: org.apache.lucene.search.RemoteSearchable <index>");
return;
}
// create and install a security manager
if (System.getSecurityManager() == null) {
System.setSecurityManager(new RMISecurityManager());
}
Searchable local = new IndexSearcher(indexName);
RemoteSearchable impl = new RemoteSearchable(local);
// bind the implementation to "Searchable"
Naming.rebind("//localhost/Searchable", impl);
|
public int | maxDoc()
return local.maxDoc();
|
public org.apache.lucene.search.Query | rewrite(org.apache.lucene.search.Query original)
return local.rewrite(original);
|
public org.apache.lucene.search.TopFieldDocs | search(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter, int n, org.apache.lucene.search.Sort sort)
return local.search (query, filter, n, sort);
|
public org.apache.lucene.search.TopFieldDocs | search(org.apache.lucene.search.Weight weight, org.apache.lucene.search.Filter filter, int n, org.apache.lucene.search.Sort sort)
return local.search (weight, filter, n, sort);
|
public void | search(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter, org.apache.lucene.search.HitCollector results)
local.search(query, filter, results);
|
public void | search(org.apache.lucene.search.Weight weight, org.apache.lucene.search.Filter filter, org.apache.lucene.search.HitCollector results)
local.search(weight, filter, results);
|
public org.apache.lucene.search.TopDocs | search(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter, int n)
return local.search(query, filter, n);
|
public org.apache.lucene.search.TopDocs | search(org.apache.lucene.search.Weight weight, org.apache.lucene.search.Filter filter, int n)
return local.search(weight, filter, n);
|