How can I merge .cfx and .cfs into a single cfs file?

2010-05-04 Thread 张志田
Hi all, I have an index task which will index thousands of records with lucene 3.0.1. My confusion is lucene will always create a .cfx and a .cfs file in the file system, sometimes more, while I thought it should create a single .cfs file if I optimize the index data. Is it by design? If yes, i

Re: Using IndexReader in the web environment

2010-05-04 Thread Vijay Veeraraghavan
hey Ian, thanks for the reply. I find it very useful. My report generating scheduler will run periodically, once done it will invoke the indexer and exit. In this case I do not know if the index has changed or not. How do i keep track of the changes in the index? As the two entities, scheduler/inde

Re: Retrieving indexed field data

2010-05-04 Thread Paul Libbrecht
No way but re-index, that was easy in my case. paul Le 04-mai-10 à 14:46, Licinio Fernández Maurelo a écrit : Hi all, notice that i come from the solr-user mail list to get an answer ... We need to retrieve the indexed data for a field *indexed but not stored*(yes, i know this could sounds s

Re: Using IndexReader in the web environment

2010-05-04 Thread Ian Lea
For best performance you should aim to keep a shared index searcher, or the underlying index reader, open as long as possible. You may of course need to reopen it if/when the index changes. As to scope, you can store it wherever it makes sense for your application. -- Ian. On Tue, May 4, 2010

Retrieving indexed field data

2010-05-04 Thread Licinio Fernández Maurelo
Hi all, notice that i come from the solr-user mail list to get an answer ... We need to retrieve the indexed data for a field *indexed but not stored*(yes, i know this could sounds strange but we just want retrieve the chunk of bytes indexed related). Is there any way to do this (avoiding reindex

Re: Using IndexReader in the web environment

2010-05-04 Thread Vijay Veeraraghavan
Hi, Thanks for the reply. So I will have a dedicated servlet to search the index, but does it mean that the indexsearcher does not close the index, keep it open? Is it not possible to keep it in the application scope? Vijay On 5/3/10, Vijay Veeraraghavan wrote: > Hi all, > > In a clustered envir

Re: Wich way would you recommend for successive-words similarity and scoring ?

2010-05-04 Thread Ian Lea
Hi Take a look at PhraseQuery or SpanNearQuery, particularly the setSlop() methods and the inOrder flag on the latter. http://www.lucidimagination.com/blog/2009/07/18/the-spanquery/ is well worth reading. -- Ian. On Mon, May 3, 2010 at 8:20 PM, Pablo wrote: > Hello, > > Lucene core doesn't s