RE: can't find queries when they are one per line in target file

2012-07-13 Thread Ilya Zavorin
: 1-301-306-8201 izavo...@caci.com www.caci.com -Original Message- From: Ian Lea [mailto:ian@gmail.com] Sent: Friday, July 13, 2012 1:06 PM To: java-user@lucene.apache.org Subject: Re: can't find queries when they are one per line in target file It's hard to tell from your d

Re: can't find queries when they are one per line in target file

2012-07-13 Thread Ian Lea
Field.Index.ANALYZED, > Field.TermVector.WITH_POSITIONS_OFFSETS)); > writer.addDocument(doc); > ... > > Let me know if more details are needed. > > Thanks, > > Ilya > > -Original Message----- > From: Uwe Schindler [mailto:u...@thetaphi.de] &g

RE: can't find queries when they are one per line in target file

2012-07-13 Thread Ilya Zavorin
-Original Message- From: Uwe Schindler [mailto:u...@thetaphi.de] Sent: Friday, July 13, 2012 12:44 PM To: java-user@lucene.apache.org Subject: RE: can't find queries when they are one per line in target file What do you mean with "files"? Without a complete description what y

RE: can't find queries when they are one per line in target file

2012-07-13 Thread Uwe Schindler
zavo...@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. >

RE: can't find queries when they are one per line in target file

2012-07-13 Thread Ilya Zavorin
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:u...@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 on

RE: can't find queries when they are one per line in target file

2012-07-13 Thread Uwe Schindler
> 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 becaus

can't find queries when they are one per line in target file

2012-07-13 Thread Ilya Zavorin
Hi, I am using 3.4.0 and just discovered a weird issue. I have a set of simple English one-word queries and two target files that I want to search. One has all these queries in one line, i.e. something like this Query1 Query2 Query3 Query4 The other has them one per line, i.e. Query1 Query2 Q