Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread zhoucheng2008
Hi, I have a big index, and when I searched it with a title string "Cla$$War", Lucene became very slow. It doesn't happen when I searched with other title string such as "Gone with Wind". Does the "$$" affect the search performance? Thanks, Cheng

Re: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread Ian Lea
Sounds extremely unlikely. What is the query? What analyzer? What version of lucene? What about other strings containing $$? -- Ian. On Tue, Aug 14, 2012 at 9:13 AM, zhoucheng2008 wrote: > Hi, > > > I have a big index, and when I searched it with a title string "Cla$$War", > Lucene became

RE: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread Uwe Schindler
9 AM > To: java-user@lucene.apache.org > Subject: Re: Does the string "Cla$$War" affect Lucene? > > Sounds extremely unlikely. What is the query? What analyzer? What version of > lucene? What about other strings containing $$? > > > -- > Ian. > >

Re: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread zhoucheng2008
Version.LUCENE_35, CharArraySet.EMPTY_SET), ERConstants.maxTokenNum); Is it because of the QueryParser.escape()? -- Original -- From: "Ian Lea"; Date: Tue, Aug 14, 2012 04:39 PM To: "java-use

Re: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread Jack Krupansky
pansky -Original Message- From: zhoucheng2008 Sent: Tuesday, August 14, 2012 8:29 AM To: java-user Subject: Re: Does the string "Cla$$War" affect Lucene? BooleanQuery bq; QueryParser qp; qp = new QueryParser(version, "title", analyzer); bq.add(qp.parse(QueryPa

Re: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread dyzc
;Jack Krupansky"; Date: Tue, Aug 14, 2012 08:37 PM To: "java-user"; Subject: Re: Does the string "Cla$$War" affect Lucene? Add qp.setAutoGeneratePhraseQueries = true before calling qp.parse. Otherwise, the query (clause of the larger BooleanQuery) will be the same as &q

Re: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread zhoucheng2008
;Jack Krupansky"; Date: Tue, Aug 14, 2012 08:37 PM To: "java-user"; Subject: Re: Does the string "Cla$$War" affect Lucene? Add qp.setAutoGeneratePhraseQueries = true before calling qp.parse. Otherwise, the query (clause of the larger BooleanQuery) will be the same as &q

Re:RE: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread zhoucheng2008
2012 04:56 PM To: "java-user"; Subject: RE: Does the string "Cla$$War" affect Lucene? Hi, If you are using StandardAnalyzer, then "Cla$$War" is split at the $ signs, so it searches for two tokens, "cla" and "war". If autogenerate phrase quer

Re: Re:RE: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread Jack Krupansky
that would leave leading and trailing punctuation. -- Jack Krupansky -Original Message- From: zhoucheng2008 Sent: Tuesday, August 14, 2012 10:42 AM To: java-user Subject: Re:RE: Does the string "Cla$$War" affect Lucene? Sound like some other analyzer can do the trick? Anyway, I don

Re: Re:RE: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread dyzc
titute for the standard analyzer. -- Original -- From: "Jack Krupansky"; Date: Tue, Aug 14, 2012 11:01 PM To: "java-user"; Subject: Re: Re:RE: Does the string "Cla$$War" affect Lucene? Try enclosing "Cla$$War" in quotes, which

Re: Re:RE: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread dyzc
Original -- From: "Jack Krupansky"; Date: Tue, Aug 14, 2012 11:01 PM To: "java-user"; Subject: Re: Re:RE: Does the string "Cla$$War" affect Lucene? Try enclosing "Cla$$War" in quotes, which should have the same effect as turning o

Re: Re:RE: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread zhoucheng2008
quot;java-user"; Subject: Re: Re:RE: Does the string "Cla$$War" affect Lucene? I know the reason of no hits. Without configuring autoGeneratePhraseQueries, a term like "I love you" is split into "I", "love", and "you", the

RE: Re:RE: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread Uwe Schindler
> -Original Message- > From: zhoucheng2008 [mailto:zhoucheng2...@gmail.com] > Sent: Tuesday, August 14, 2012 6:46 PM > To: java-user > Subject: Re: Re:RE: Does the string "Cla$$War" affect Lucene? > > Another phrase "$FREE.99" causes the sa

Re:RE: Re:RE: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread zhoucheng2008
I appreciate your input. However, my question is which analyzer and tokenizer to choose. -- Original -- From: "Uwe Schindler"; Date: Wed, Aug 15, 2012 00:52 AM To: "java-user"; Subject: RE: Re:RE: Does the string "Cla$$War" af

Re: RE: Re:RE: Does the string "Cla$$War" affect Lucene?

2012-08-14 Thread Lance Norskog
er"; > Date: Wed, Aug 15, 2012 00:52 AM > To: "java-user"; > > Subject: RE: Re:RE: Does the string "Cla$$War" affect Lucene? > > > > Please read my answer posted before, it explains exactly what happens - so > you can imagine what type of s