Re: searching for c++, c#, etc...

2009-07-16 Thread Chris Salem
; >> > System.out.println(queryString); >> > QueryParser qp = new QueryParser(searchField,analyzer); >> > Query query = qp.parse(queryString); >> > queryString = query.toString(); >> > System.out.println(queryString); >> > And h

Re: searching for c++, c#, etc...

2009-07-16 Thread John Wang
ally, the recipient should check this email and any attachments >> for the presence of viruses. The company accepts no liability for any damage >> caused by any virus transmitted by this email. Main Sequence Technologies, >> Inc. 4420 Sherwin Rd. Willoughby OH 44094 www.pcrecruite

Re: searching for c++, c#, etc...

2009-07-16 Thread John Wang
> System.out.println(queryString); > > And here's the output from the println's: > > r2_resume_text:c\+\+ AND r2_resume_text: c\# > > +r2_resume_text:c +r2_resume_text:c > > Also the documentation doesn't say anything about # having to be escaped. > >

Re: searching for c++, c#, etc...

2009-07-16 Thread Chris Salem
10:28:37 AM Subject: Re: searching for c++, c#, etc... Try WhitespaceAnalyzer for both indexing and searching. On search-time you may also need to escape "+", "(", ")" with "\". "#" shouldn't need escaping. On Thu, Jul 16, 2009 at 17:23,

Re: searching for c++, c#, etc...

2009-07-16 Thread Danil Ε’ORIN
#x27;t say anything about # having to be escaped. > Do I have to escape during indexing too? > Sincerely, > Chris Salem > > > > - Original Message - > To: java-user@lucene.apache.org, Chris Salem > From: Ian Lea > Sent: 7/16/2009 5:12:53 AM > Subject: Re: searching f

Re: searching for c++, c#, etc...

2009-07-16 Thread Chris Salem
to be escaped. Do I have to escape during indexing too? Sincerely, Chris Salem - Original Message - To: java-user@lucene.apache.org, Chris Salem From: Ian Lea Sent: 7/16/2009 5:12:53 AM Subject: Re: searching for c++, c#, etc... Hi Escaping should work. See http://luc

Re: searching for c++, c#, etc...

2009-07-16 Thread Ian Lea
Hi Escaping should work. See http://lucene.apache.org/java/2_4_1/queryparsersyntax.html and QueryParser.escape(). And you need to be sure that your analyzer isn't removing the plus signs and that you use the same analyzer for indexing and searching. Googling for something like "lucene escape"