lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: can't find queries when they are one per line in target file
Date Fri, 13 Jul 2012 16:43:32 GMT
What do you mean with "files"? Without a complete description what you are
doing we cannot answer your request.

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Ilya Zavorin [mailto:izavorin@caci.com]
> Sent: Friday, July 13, 2012 6:39 PM
> To: java-user@lucene.apache.org
> Subject: RE: can't find queries when they are one per line in target file
> 
> 
> 
> But why then does it find all the querries in the 1st file? I use exactly
the same
> code.
> 
> IZ
> 
> 
> -----Original Message-----
> From: Uwe Schindler [mailto:uwe@thetaphi.de]
> Sent: Friday, July 13, 2012 12:32 PM
> To: java-user@lucene.apache.org
> Subject: RE: can't find queries when they are one per line in target file
> 
> > String qStr = "Query1"; // or "Query2" or ...
> > QueryParser parser = ...;
> > IndexSearcher searcher = ...;
> > Query query = parser.parse(qStr);
> > TopDocs results = searcher.search(query, Integer.MAX_VALUE); ScoreDoc[]
> hits
> > = results.scoreDocs;
> >
> > returned no hits for the 2nd test.
> 
> Maybe because it runs out of memory? Passing Integer.MAX_VALUE is
> allocating
> 2 billion result slots...
> 
> Uwe
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message