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
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
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.
>
>
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
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
;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
;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
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
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
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
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
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
> -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
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
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
15 matches
Mail list logo