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

2012-08-16 Thread dyzc
Yes. The query is bit long, which is the major reason. -- -- ??: "Trejkaz"; : 2012??8??16??(??) 11:09 ??: "java-user"; : Re: Why does this query slow down Lucene? On Thu, Aug 16, 2012 at 11:27 AM, zhoucheng2008 wrote: >

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

2012-08-14 Thread dyzc
I know the reason of no hits. Without configuring autoGeneratePhraseQueries, a term like "I love you" is split into "I", "love", and "you", therefore getting quite a lot hits. On the contrary, the term is not split, and no hits. -- Original -- From: "Jack K

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

2012-08-14 Thread dyzc
I should have made it more clear. When I said no hits, I referred to no hits by other ordinary term such as "Gone with Wind". I do analyze the query. When "True" is on for autoGeneratePhraseQueries, the term is parsed as "cla war" with a space sit between. When "False", it becomes two phras

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

2012-08-14 Thread dyzc
No results are returned after I add qp.setAutoGeneratePhraseQueries(true). After I remove qp.setAutoGeneratePhraseQueries(true), I can get results back. Anything should be taken care of before/after adding the line of code? -- Original -- From: "Jack Krupans

Re: How NRTManagerReopenThread works with Java Executor framework?

2012-01-15 Thread dyzc
I am confused by the ES instance. Is it used for reading indexes only, or for creating and executing runnable instances like in my example? -- Original -- From: "Michael McCandless"; Date: Mon, Jan 16, 2012 02:53 AM To: "java-user"; Subject: Re: How NRTM

Re: Build RAMDirectory on FSDirectory, and then synchronzing the two

2012-01-11 Thread dyzc
t you've done to >> the RAM index. >> >> Sounds you want to call addIndexes using a writer on a new, empty, >> index or overwrite the original. IndexWriterConfig.OpenMode CREATE. >> >> >> -- >> Ian. >> >> >> On Mon, Jan

Re:Build RAMDirectory on FSDirectory, and then synchronzing the two

2012-01-08 Thread dyzc
I'd better provide a snapshot of my code for people to understand my issues: File file=new File("c:/index_files"); FSDirectory fsDir=new FSDirectory(file); RAMDirectory ramDir=new RAMDirectory(fsDir, new IndexWriterConfig(Version.LUCENE_35, new StandardAnalyzer()); IndexWriter iw = new IndexWr

Re: How to use RAMDirectory more efficiently

2012-01-01 Thread dyzc
will the solution provided by Charlie Hubbard do the work? I am not sure I understand the "writer.addIndexes( ram );" part. What if there are inconsistent data between FS and RAM? What if in a multi-threading environment one thread try to synchronize the two while the other thread keeps writi

Re:RE: Can't get a hit

2011-12-30 Thread dyzc
thanks that solved my problem. -- Original -- From: "Uwe Schindler"; Date: Fri, Dec 30, 2011 05:27 AM To: "java-user"; Subject: RE: Can't get a hit Hi, IndexReaders, on which you are doing the search, are a snapshot of the index at the time it was opene

How can I read records from Lucene

2011-10-17 Thread dyzc
Hi, I would like to read the term and its frequency or score out of indices. How can I do it using Java? Thanks!