Re:Re:[ANN] Luke 3.5.0 released

2011-12-29 Thread 娄建文
good


|
娄建文Java软件工程师
tom.grade1...@163.com
公司名称:浪潮北京电子信息产业有限公司
地址:山东济南
手机:13261993265
微薄:t.sina.com/janwen
|

扫描该二维码,可以将电子名片迅速保存到手机 使用帮助

|



在 2011-12-29 08:59:27,liugangc  写道:
>great!!
>At 2011-12-29 04:29:33,"Andrzej Bialecki"  wrote:
>>Hi Lucene users,
>>
>>I'm happy to announce the release of Luke - The Lucene Index Toolbox, 
>>version 3.5.0. This release includes Lucene 3.5.0 libraries, and you can 
>>download it from:
>>
>>  http://code.google.com/p/luke
>>
>>Changes in version 3.5.0 (released on 2011.12.28):
>>* Update to Lucene 3.5.0 and fix some deprecated API usage.
>>* Issue 49 : fix faulty logic that prevented opening indexes in 
>>read-only mode (MarkHarwood).
>>* Issue 43 : fix left-over references to Field (merkertr).
>>* Issue 42 : Luke should indicate if a field is a numeric field (merkertr).
>>
>>Enjoy!
>>
>>PS. Merry Christmas and a happy New Year to you all! :)
>>
>>-- 
>>Best regards,
>>Andrzej Bialecki <><
>>  ___. ___ ___ ___ _ _   __
>>[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
>>___|||__||  \|  ||  |  Embedded Unix, System Integration
>>http://www.sigram.com  Contact: info at sigram dot com
>>
>>
>>-
>>To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>>For additional commands, e-mail: java-user-h...@lucene.apache.org
>>
>
>
>-
>To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>For additional commands, e-mail: java-user-h...@lucene.apache.org
>

-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Can't get a hit

2011-12-29 Thread Cheng
Hi,

I need to save a list of records into an index on hard drive. I keep a
writer and a reader open till the end of the operation.

My issue is that I need to compare each of the new records with each of the
records that have been saved into the index. There are plenty of duplicate
records in the original list.

To my surprise, I can't find a hit for a duplicate record on the fly
although I use the writer.commit() for every record that were being saved.

However, if I intentionally stopped the operations (some of the records
being saved), I re-ran the list of records and lots of hits occurs.

Please help!

Thanks!


RE: Can't get a hit

2011-12-29 Thread Uwe Schindler
Hi,

IndexReaders, on which you are doing the search, are a snapshot of the index
at the time it was opened. Later commits by IndexWriter are not seen unless
you reopen the IndexReader. This can be done with
IndexReader.openIfChanged() (since Lucene 3.5) or IndexReader.reopen()
(before 3.5).

Uwe

-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de

> -Original Message-
> From: Cheng [mailto:zhoucheng2...@gmail.com]
> Sent: Thursday, December 29, 2011 5:27 PM
> To: java-user@lucene.apache.org
> Subject: Can't get a hit
> 
> Hi,
> 
> I need to save a list of records into an index on hard drive. I keep a
writer and a
> reader open till the end of the operation.
> 
> My issue is that I need to compare each of the new records with each of
the
> records that have been saved into the index. There are plenty of duplicate
> records in the original list.
> 
> To my surprise, I can't find a hit for a duplicate record on the fly
although I use
> the writer.commit() for every record that were being saved.
> 
> However, if I intentionally stopped the operations (some of the records
being
> saved), I re-ran the list of records and lots of hits occurs.
> 
> Please help!
> 
> Thanks!


-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org