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 zhoucheng2008
r"; 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. On Tue, Aug 14, 2012 at 9:13 AM, zhoucheng2008 wrote: > Hi, > > >

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

2012-08-14 Thread zhoucheng2008
uot;cla" OR "war", which will match all "war" documents, plus any "cla" documents you may have. -- Jack Krupansky -Original Message- From: zhoucheng2008 Sent: Tuesday, August 14, 2012 8:29 AM To: java-user Subject: Re: Does the string "Cla$$War&quo

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

2012-08-14 Thread zhoucheng2008
--Original Message- > From: Ian Lea [mailto:ian@gmail.com] > Sent: Tuesday, August 14, 2012 10:39 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? Wha

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

2012-08-14 Thread zhoucheng2008
term was analyzed. I'm surprised that you got no hits with autoGeneratePhraseQueries - which suggests that maybe the index didn't use the same analyzer or maybe the literal text in the title is not exactly what you think it is. You could use the WhitespaceAnalyzer, but that would leav

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

2012-08-14 Thread zhoucheng2008
phi.de eMail: u...@thetaphi.de > -----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" cau

?????? Why does this query slow down Lucene?

2012-08-15 Thread zhoucheng2008
get help. ?? 2012-8-16 9:28??"zhoucheng2008" ?? > Hi, > > > I have the string "$21 a Day Once a Month" to search on a large index. > > > I escape the $ sign, and the query string looks like: > > > +level:0 +(title:21 title:a title:day titl

回复: IndexReader.open and CorruptIndexException

2013-01-24 Thread zhoucheng2008
What file handlers did you guy refer to? I opened the index directory only. Is this the file handler? Also, how to safely and effectively close the index directory? I found the link's explanation somewhat self-contradictory. After I read it, I am confused if I should close the file handlers

回复: 回复: IndexReader.open and CorruptIndexException

2013-01-25 Thread zhoucheng2008
at 7:58 AM, Cheng wrote: > Any example code for this SearcherManager? > > On Fri, Jan 25, 2013 at 3:59 AM, Ian Lea wrote: > >> There will be one file handle for every currently open file. >> >> Use SearcherManager and this problem should go away. >> >> &g

回复: 回复: 回复: 回复: IndexReader.open and CorruptIndexException

2013-01-25 Thread zhoucheng2008
星期六) 凌晨0:10 > 收件人: "java-user"; > > 主题: Re: 回复: 回复: IndexReader.open and CorruptIndexException > > > > You can pass null for the SearcherFactory ... then SearcherManager > will just do new IndexSearcher(reader) for you. > > Mike McCandless > > http://blog.mikemccandles

回复: 回复: 回复: 回复: 回复: IndexReader.open and CorruptIndexException

2013-01-25 Thread zhoucheng2008
"java-user"; 主题: Re: 回复: 回复: 回复: 回复: IndexReader.open and CorruptIndexException That should work. Mike McCandless http://blog.mikemccandless.com On Fri, Jan 25, 2013 at 11:27 AM, zhoucheng2008 wrote: > Sorry, I meant this: > > > SearcherManager sm = new Searcher

RE: How to create document objects in our case

2011-05-22 Thread zhoucheng2008
Mike, thanks for reply. Can you please elaborate a little bit more on " If you don't need norms (don't boost, lengths don't vary much or you don't care to have field length impact scoring) you can omit norms"? When do you expect the handling of nested document will be applicable? Cheng -Or

RE: How to create document objects in our case

2011-05-22 Thread zhoucheng2008
be released until the next release (though you can use it on the trunk/3.x tip as well, once it's committed). Mike http://blog.mikemccandless.com On Sun, May 22, 2011 at 7:49 AM, zhoucheng2008 wrote: > Mike, thanks for reply. > > Can you please elaborate a little bit more on

how to search multiple fields

2011-05-25 Thread zhoucheng2008
Hi, Quite a few Lucene examples on lines shows how to insert multiple fields into a Document and how to query the indexed file with certain fields and queried text. I would like to know: 1. How to do a cross-field search? 2. How to specify some key fields as well as some less i

RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-06 Thread zhoucheng2008
I read the lucene in action book and just tested the FSversusRAMDirectoryTest.java with the following uncommented: ///** //// change to adjust performance of indexing with FSDirectory writer.mergeFactor = 100; writer.maxMergeDocs = 99; writer.minM

RE: RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-06 Thread zhoucheng2008
RAMDir would be slower... FSDir still must go > through the OS APIs even if the OS then caches in RAM. > > Mike McCandless > > http://blog.mikemccandless.com > > 2011/6/6 zhoucheng2008 : > > I read the lucene in action book and just tested the > > FSversu

When nested indexing and search will be available?

2011-06-06 Thread zhoucheng2008
I just saw this: https://issues.apache.org/jira/secure/attachment/12480123/LUCENE-2454.patch One comment: should Lucene provide nested doc indexing as well? Would love to see it’s available. - To unsubscribe, e-mail: ja

RE: RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-07 Thread zhoucheng2008
Makes sense. Thanks -Original Message- From: Toke Eskildsen [mailto:t...@statsbiblioteket.dk] Sent: Tuesday, June 07, 2011 4:28 PM To: java-user@lucene.apache.org Subject: Re: RAMDirectory doesn't win over FSDirectory all the time, why? On Mon, 2011-06-06 at 15:29 +0200, zhouchen