lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20290] - Using QueryFilter with RemoteSearchable = Exception
Date Thu, 11 Sep 2003 10:16:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20290>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20290

Using QueryFilter with RemoteSearchable = Exception





------- Additional Comments From kguelzau@novomind.com  2003-09-11 10:16 -------
long time ago but i will try :) ...

try {
      LocateRegistry.createRegistry(1099);
      IndexSearcher oLocalServer = new IndexSearcher
("c:\\dev\\lucene\\index\\");
      RemoteSearchable impl = new RemoteSearchable(oLocalServer);
      Naming.bind("//localhost/bug_test", impl);

      Registry myReg = LocateRegistry.getRegistry("localhost", 1099);
      Searchable[] searchables = {(Searchable)myReg.lookup("bug_test")};
      Searcher searcher = new MultiSearcher(searchables);
      searcher.search((Query)new TermQuery(new Term
("LONG_DESCRIPTION", "druck")), new QueryFilter(new TermQuery(new Term
("LONG_DESCRIPTION", "kunstdruck"))));
    } catch (Exception e) {
      e.printStackTrace();
    }

java.lang.NullPointerException
	at org.apache.lucene.search.QueryFilter.bits(QueryFilter.java:85)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:128)
	at org.apache.lucene.search.RemoteSearchable.search
(RemoteSearchable.java:98)
        ...

used "lucene-1.3-rc1.jar" 228.189 bytes

Mime
View raw message