我要采用lucene3做过分布式,lucene推荐使用RMI,lucene自带的有个lucene-remote.jar,按照里面的例子,发现在搜索的时候必须采用TopDocs docs = multiSearcher.search(query, 20),但是这种搜索有个弊端,就是分页的时候不好做. 
因此我采用 TopScoreDocCollector colle = TopScoreDocCollector.create(100, true);
multiSearcher.search(query, colle);
scoreDoc = colle.topDocs(0, 100).scoreDocs;来搜索.分页比较方便,但是运行的时候包一下错误.请大家帮忙看下,是怎么回事? java.rmi.MarshalException: error marshalling arguments; nested exception is: 
java.io.NotSerializableException: org.apache.lucene.search.MultiSearcher$1
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:138)
at org.apache.lucene.search.RemoteSearchable_Stub.search(Unknown Source)
at org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:270)
at org.apache.lucene.search.Searcher.search(Searcher.java:67)
at com.wang.test.LuceneRMIClient.main(LuceneRMIClient.java:47)
Caused by: java.io.NotSerializableException: org.apache.lucene.search.MultiSearcher$1
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
... 4 more