<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-24284</id>
	<title>Nabble - Lucene - Java</title>
	<updated>2009-11-26T12:43:57Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Lucene---Java-f24284.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Lucene---Java-f24284.html" />
	<subtitle type="html">&lt;p&gt;
&lt;a href=&quot;http://lucene.apache.org/java/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Lucene&lt;/a&gt; is a high-performance, full-featured text search engine library written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
&lt;/p&gt;

&lt;p&gt;
If you have questions about using the Lucene, please post them on the on the &lt;a href=&quot;http://www.nabble.com/Lucene---Java-Users-f45.html&quot; target=&quot;_top&quot;&gt;java-users mailing list&lt;/a&gt;.  
&lt;/p&gt;

&lt;p&gt;
(The &lt;a href=&quot;http://www.nabble.com/Lucene---Java-Developer-f46.html&quot; target=&quot;_top&quot;&gt;java-dev mailing list&lt;/a&gt; is for discussions about developing the internals of the Lucene library.)
&lt;/p&gt;</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26534687</id>
	<title>Re: best way to ensure IndexWriter won't corrupt the index?</title>
	<published>2009-11-26T12:43:57Z</published>
	<updated>2009-11-26T12:43:57Z</updated>
	<author>
		<name>Michael McCandless-2</name>
	</author>
	<content type="html">The leftover write.lock is expected on ungraceful shutdown; you just
&lt;br&gt;have to remove it. &amp;nbsp;Or, switch to NativeFSLockFactory, which correctly
&lt;br&gt;detects when the lock is no longer in use.
&lt;br&gt;&lt;br&gt;Next time this happens, try running CheckIndex on the index.
&lt;br&gt;&lt;br&gt;Are you sure the Luke version you're using is new enough to read 2.4.1 indexes?
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 3:35 PM, Khosro Asgharifard
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534687&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;khosro_question@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;Right, in 2.4, if you kill -9, pull power, OS crashes, etc., it should
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;not corrupt the index.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;Can you share details on what corruption you see?  Is it possible
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;there are two IndexWriters open on the index at once?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Our apps is multithread,and sometimes when we shutdown the Tomcat ,
&lt;br&gt;&amp;gt; the wrike.lock file exist and does not disappear,and in the subsequent run,the write.lock does not allow
&lt;br&gt;&amp;gt; to index data,so that i must delete it by hand,and after that when i check the index
&lt;br&gt;&amp;gt; by Lukeall ,it tells that &amp;quot;There is no valid Lucene index in this directory&amp;quot;.
&lt;br&gt;&amp;gt; And ,in another case,after showting down Tomcat, and  running it again  more than two times ,write.lock file does not allow to index the data,
&lt;br&gt;&amp;gt; and i must delete it by hand ,  and after that   i check the index by Lukeall ,it tells that &amp;quot;There is no valid Lucene index in this directory&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Khosro.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;Mike
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 26, 2009 at 2:08 PM, Khosro Asgharifard
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534687&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;khosro_question@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;Before 2.4 it was possible that a crash of the OS, or sudden power
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;loss to the machine, could corrupt the index.  But that's been fixed
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;with 2.4.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Did you mean that Lucene does not have this issue in 2.4.1?
&lt;br&gt;&amp;gt;&amp;gt; We are running the program that index some data ,and sometime we must shutdown Tomcat,
&lt;br&gt;&amp;gt;&amp;gt; and in some case the index corrupt.This is a probelm in our program,and our data is too huge and
&lt;br&gt;&amp;gt;&amp;gt; we can not run reindeing  all data agian.We use Lucene 2.4.0 with Compass.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Best Regards
&lt;br&gt;&amp;gt;&amp;gt; Khosro.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;The only known sources of corruption are hardware faults (bad RAM, bad
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;disk, etc.), and, accidentally allowing 2 writers to write to the same
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;index at once (this will very quickly cause corruption).  Lucene's
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;write lock normally prevents this from happening.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;kill -9, JRE crashing, OS crashing, power loss, etc., should not cause
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;corruption for Lucene &amp;gt;= 2.4.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;Backing up is definitely a good idea -- Lucene's
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;SnapshotDeletionPolicy makes it easy to do a hot backup (backup even
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;though IndexWriter is still changing the index).  There's a paper on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;this (NOTE: I'm the author!) available  at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://www.manning.com/hatcher3/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/hatcher3/&lt;/a&gt;&amp;nbsp;that gives details (look for &amp;quot;Hot
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;backups with Lucene (green paper - html)&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Mike
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Nov 25, 2009 at 10:37 AM, Max Lynch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534687&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ihasmax@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Wed, Nov 25, 2009 at 9:31 AM, Ian Lea &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534687&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ian.lea@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; What are the typical scenarios when the index will go corrupt?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Dodgy disks.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I also have had index corruption on two occasions.  It is not a big deal for
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; me since my data is fairly real time so the old documents aren't as
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; important.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; However, I'm running this on a VPS with slicehost, so whether or not they
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; use dodgy disks is not something I can confirm or even deal with.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I do need to upgrade to 2.9 from 2.4, but I think one of the reasons for my
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; index corruption is deleting the index.write file rather than removing the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; lock through the Lucene APIs.  This seems like it could be a cause of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; corruption, correct?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534687&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534687&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534687&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534687&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534687&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534687&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/best-way-to-ensure-IndexWriter-won%27t-corrupt-the-index--tp26514436p26534687.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26534622</id>
	<title>Re: best way to ensure IndexWriter won't corrupt the index?</title>
	<published>2009-11-26T12:35:43Z</published>
	<updated>2009-11-26T12:35:43Z</updated>
	<author>
		<name>khosro asgharifard</name>
	</author>
	<content type="html">&amp;gt;&amp;gt;Right, in 2.4, if you kill -9, pull power, OS crashes, etc., it should
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;not corrupt the index.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;Can you share details on what corruption you see? &amp;nbsp;Is it possible
&lt;br&gt;&amp;gt;&amp;gt;there are two IndexWriters open on the index at once?
&lt;br&gt;&lt;br&gt;Our apps is multithread,and sometimes when we shutdown the Tomcat ,
&lt;br&gt;the wrike.lock file exist and does not disappear,and in the subsequent run,the write.lock does not allow
&lt;br&gt;to index data,so that i must delete it by hand,and after that when i check the index
&lt;br&gt;by Lukeall ,it tells that &amp;quot;There is no valid Lucene index in this directory&amp;quot;.
&lt;br&gt;And ,in another case,after showting down Tomcat, and &amp;nbsp;running it again &amp;nbsp;more than two times ,write.lock file does not allow to index the data,
&lt;br&gt;and i must delete it by hand , &amp;nbsp;and after that &amp;nbsp; i check the index by Lukeall ,it tells that &amp;quot;There is no valid Lucene index in this directory&amp;quot;.
&lt;br&gt;&lt;br&gt;Khosro.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;Mike
&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 2:08 PM, Khosro Asgharifard
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534622&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;khosro_question@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;Before 2.4 it was possible that a crash of the OS, or sudden power
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;loss to the machine, could corrupt the index. &amp;nbsp;But that's been fixed
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;with 2.4.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Did you mean that Lucene does not have this issue in 2.4.1?
&lt;br&gt;&amp;gt; We are running the program that index some data ,and sometime we must shutdown Tomcat,
&lt;br&gt;&amp;gt; and in some case the index corrupt.This is a probelm in our program,and our data is too huge and
&lt;br&gt;&amp;gt; we can not run reindeing &amp;nbsp;all data agian.We use Lucene 2.4.0 with Compass.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best Regards
&lt;br&gt;&amp;gt; Khosro.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;The only known sources of corruption are hardware faults (bad RAM, bad
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;disk, etc.), and, accidentally allowing 2 writers to write to the same
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;index at once (this will very quickly cause corruption). &amp;nbsp;Lucene's
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;write lock normally prevents this from happening.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;kill -9, JRE crashing, OS crashing, power loss, etc., should not cause
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;corruption for Lucene &amp;gt;= 2.4.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;Backing up is definitely a good idea -- Lucene's
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;SnapshotDeletionPolicy makes it easy to do a hot backup (backup even
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;though IndexWriter is still changing the index). &amp;nbsp;There's a paper on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;this (NOTE: I'm the author!) available &amp;nbsp;at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://www.manning.com/hatcher3/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/hatcher3/&lt;/a&gt;&amp;nbsp;that gives details (look for &amp;quot;Hot
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;backups with Lucene (green paper - html)&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mike
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 10:37 AM, Max Lynch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534622&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ihasmax@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Nov 25, 2009 at 9:31 AM, Ian Lea &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534622&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ian.lea@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; What are the typical scenarios when the index will go corrupt?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Dodgy disks.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I also have had index corruption on two occasions. &amp;nbsp;It is not a big deal for
&lt;br&gt;&amp;gt;&amp;gt; me since my data is fairly real time so the old documents aren't as
&lt;br&gt;&amp;gt;&amp;gt; important.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; However, I'm running this on a VPS with slicehost, so whether or not they
&lt;br&gt;&amp;gt;&amp;gt; use dodgy disks is not something I can confirm or even deal with.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I do need to upgrade to 2.9 from 2.4, but I think one of the reasons for my
&lt;br&gt;&amp;gt;&amp;gt; index corruption is deleting the index.write file rather than removing the
&lt;br&gt;&amp;gt;&amp;gt; lock through the Lucene APIs. &amp;nbsp;This seems like it could be a cause of
&lt;br&gt;&amp;gt;&amp;gt; corruption, correct?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534622&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534622&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534622&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534622&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/best-way-to-ensure-IndexWriter-won%27t-corrupt-the-index--tp26514436p26534622.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26533869</id>
	<title>Re: best way to ensure IndexWriter won't corrupt the index?</title>
	<published>2009-11-26T11:15:48Z</published>
	<updated>2009-11-26T11:15:48Z</updated>
	<author>
		<name>Michael McCandless-2</name>
	</author>
	<content type="html">Right, in 2.4, if you kill -9, pull power, OS crashes, etc., it should
&lt;br&gt;not corrupt the index.
&lt;br&gt;&lt;br&gt;Can you share details on what corruption you see? &amp;nbsp;Is it possible
&lt;br&gt;there are two IndexWriters open on the index at once?
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 2:08 PM, Khosro Asgharifard
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533869&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;khosro_question@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;Before 2.4 it was possible that a crash of the OS, or sudden power
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;loss to the machine, could corrupt the index.  But that's been fixed
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;with 2.4.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Did you mean that Lucene does not have this issue in 2.4.1?
&lt;br&gt;&amp;gt; We are running the program that index some data ,and sometime we must shutdown Tomcat,
&lt;br&gt;&amp;gt; and in some case the index corrupt.This is a probelm in our program,and our data is too huge and
&lt;br&gt;&amp;gt; we can not run reindeing  all data agian.We use Lucene 2.4.0 with Compass.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best Regards
&lt;br&gt;&amp;gt; Khosro.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;The only known sources of corruption are hardware faults (bad RAM, bad
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;disk, etc.), and, accidentally allowing 2 writers to write to the same
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;index at once (this will very quickly cause corruption).  Lucene's
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;write lock normally prevents this from happening.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;kill -9, JRE crashing, OS crashing, power loss, etc., should not cause
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;corruption for Lucene &amp;gt;= 2.4.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;Backing up is definitely a good idea -- Lucene's
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;SnapshotDeletionPolicy makes it easy to do a hot backup (backup even
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;though IndexWriter is still changing the index).  There's a paper on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;this (NOTE: I'm the author!) available  at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://www.manning.com/hatcher3/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/hatcher3/&lt;/a&gt;&amp;nbsp;that gives details (look for &amp;quot;Hot
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;backups with Lucene (green paper - html)&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mike
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 10:37 AM, Max Lynch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533869&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ihasmax@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Nov 25, 2009 at 9:31 AM, Ian Lea &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533869&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ian.lea@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; What are the typical scenarios when the index will go corrupt?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Dodgy disks.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I also have had index corruption on two occasions.  It is not a big deal for
&lt;br&gt;&amp;gt;&amp;gt; me since my data is fairly real time so the old documents aren't as
&lt;br&gt;&amp;gt;&amp;gt; important.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; However, I'm running this on a VPS with slicehost, so whether or not they
&lt;br&gt;&amp;gt;&amp;gt; use dodgy disks is not something I can confirm or even deal with.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I do need to upgrade to 2.9 from 2.4, but I think one of the reasons for my
&lt;br&gt;&amp;gt;&amp;gt; index corruption is deleting the index.write file rather than removing the
&lt;br&gt;&amp;gt;&amp;gt; lock through the Lucene APIs.  This seems like it could be a cause of
&lt;br&gt;&amp;gt;&amp;gt; corruption, correct?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533869&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533869&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533869&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533869&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/best-way-to-ensure-IndexWriter-won%27t-corrupt-the-index--tp26514436p26533869.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26533795</id>
	<title>Re: best way to ensure IndexWriter won't corrupt the index?</title>
	<published>2009-11-26T11:08:24Z</published>
	<updated>2009-11-26T11:08:24Z</updated>
	<author>
		<name>khosro asgharifard</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&amp;gt;&amp;gt;Before 2.4 it was possible that a crash of the OS, or sudden power
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;loss to the machine, could corrupt the index. &amp;nbsp;But that's been fixed
&lt;br&gt;&amp;gt;&amp;gt;with 2.4.
&lt;br&gt;&lt;br&gt;Did you mean that Lucene does not have this issue in 2.4.1?
&lt;br&gt;We are running the program that index some data ,and sometime we must shutdown Tomcat,
&lt;br&gt;and in some case the index corrupt.This is a probelm in our program,and our data is too huge and
&lt;br&gt;we can not run reindeing &amp;nbsp;all data agian.We use Lucene 2.4.0 with Compass.
&lt;br&gt;&lt;br&gt;Best Regards 
&lt;br&gt;Khosro. &amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;The only known sources of corruption are hardware faults (bad RAM, bad
&lt;br&gt;&amp;gt;&amp;gt;disk, etc.), and, accidentally allowing 2 writers to write to the same
&lt;br&gt;&amp;gt;&amp;gt;index at once (this will very quickly cause corruption). &amp;nbsp;Lucene's
&lt;br&gt;&amp;gt;&amp;gt;write lock normally prevents this from happening.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;kill -9, JRE crashing, OS crashing, power loss, etc., should not cause
&lt;br&gt;&amp;gt;&amp;gt;corruption for Lucene &amp;gt;= 2.4.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;Backing up is definitely a good idea -- Lucene's
&lt;br&gt;&amp;gt;&amp;gt;SnapshotDeletionPolicy makes it easy to do a hot backup (backup even
&lt;br&gt;&amp;gt;&amp;gt;though IndexWriter is still changing the index). &amp;nbsp;There's a paper on
&lt;br&gt;&amp;gt;&amp;gt;this (NOTE: I'm the author!) available &amp;nbsp;at
&lt;br&gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://www.manning.com/hatcher3/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/hatcher3/&lt;/a&gt;&amp;nbsp;that gives details (look for &amp;quot;Hot
&lt;br&gt;&amp;gt;&amp;gt;backups with Lucene (green paper - html)&amp;quot;.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 10:37 AM, Max Lynch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533795&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ihasmax@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 9:31 AM, Ian Lea &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533795&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ian.lea@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; What are the typical scenarios when the index will go corrupt?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Dodgy disks.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I also have had index corruption on two occasions. &amp;nbsp;It is not a big deal for
&lt;br&gt;&amp;gt; me since my data is fairly real time so the old documents aren't as
&lt;br&gt;&amp;gt; important.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, I'm running this on a VPS with slicehost, so whether or not they
&lt;br&gt;&amp;gt; use dodgy disks is not something I can confirm or even deal with.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I do need to upgrade to 2.9 from 2.4, but I think one of the reasons for my
&lt;br&gt;&amp;gt; index corruption is deleting the index.write file rather than removing the
&lt;br&gt;&amp;gt; lock through the Lucene APIs. &amp;nbsp;This seems like it could be a cause of
&lt;br&gt;&amp;gt; corruption, correct?
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533795&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533795&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/best-way-to-ensure-IndexWriter-won%27t-corrupt-the-index--tp26514436p26533795.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531193</id>
	<title>Re: (LUCENE-1844) Speed up junit tests</title>
	<published>2009-11-26T07:38:05Z</published>
	<updated>2009-11-26T07:38:05Z</updated>
	<author>
		<name>Erick Erickson</name>
	</author>
	<content type="html">Despite my long rambling, I agree that speeding things up is worthwhile. Just&lt;br&gt;not a huge deal for some of us poor peons who are on dinky little 2-core&lt;br&gt;machines and feel inadequate even *talking* to people who have *real*&lt;br&gt;
machines &amp;lt;G&amp;gt;...&lt;br&gt;&lt;br&gt;Time to go get ready to eat Turkey....&lt;br&gt;&lt;br&gt;Erick&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 26, 2009 at 9:02 AM, Mark Miller &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;markrmiller@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt; right - as soon as you have to start running the tests often enough, any decent savings turns into less waiting and more work. Waiting for tests to run is time that could be better spent elsewhere. And many of us runthe tests *a lot* considering how long they take. And we will only keep adding more and will continue to do so.&lt;br&gt;

&lt;br&gt;
Also, many of us *are* on multicore and should be able to benifit from it. I don&amp;#39;t dev on anything less than 4 cores these days. It&amp;#39;s a life changer :) and cheap currently. I&amp;#39;d like 8.&lt;br&gt;
&lt;br&gt;
- Mark&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.lucidimagination.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.lucidimagination.com&lt;/a&gt; (mobile)&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
On Nov 26, 2009, at 5:24 AM, Michael McCandless &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lucene@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I still think there&amp;#39;s value to faster tests, even if they don&amp;#39;t become&lt;br&gt;
so fast as to enable &amp;quot;fully interactive testing&amp;quot;.&lt;br&gt;
&lt;br&gt;
Plus, this is an ongoing goal with time, not a one-time event.  As we&lt;br&gt;
create tests we should generally try to maximize coverage and minimize&lt;br&gt;
CPU cost, as long as the effort is smallish.&lt;br&gt;
&lt;br&gt;
Mike&lt;br&gt;
&lt;br&gt;
On Wed, Nov 25, 2009 at 9:32 PM, Erick Erickson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;erickerickson@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I posted a rather long diatribe outlining why I think speed-ups&lt;br&gt;
are a false goal for Lucene. Briefly, I&amp;#39;m convinced that as long&lt;br&gt;
as the tests are run when Hudson builds Lucene, 99% of the&lt;br&gt;
value of unit tests is realized. I suppose this implies that the&lt;br&gt;
hard-core committers agree that as long as failed tests&lt;br&gt;
are caught/corrected within a day things are fine.&lt;br&gt;
&lt;br&gt;
Although coming from a background where unit&lt;br&gt;
tests are not always required, my viewpoint may be&lt;br&gt;
suspect &amp;lt;G&amp;gt;.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Erick@...&lt;/a&gt;....&lt;br&gt;
&lt;br&gt;
On Wed, Nov 25, 2009 at 8:43 PM, Michael McCandless (JIRA)&lt;br&gt;
&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jira@...&lt;/a&gt;&amp;gt;wrote:&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
   [&lt;br&gt;
&lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;amp;focusedCommentId=12782716#action_12782716&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;amp;focusedCommentId=12782716#action_12782716&lt;/a&gt;]&lt;br&gt;

&lt;br&gt;
Michael McCandless commented on LUCENE-1844:&lt;br&gt;
--------------------------------------------&lt;br&gt;
&lt;br&gt;
Will we also speed up back-compat tests?&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Speed up junit tests&lt;br&gt;
--------------------&lt;br&gt;
&lt;br&gt;
                Key: LUCENE-1844&lt;br&gt;
                URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844&lt;/a&gt;&lt;br&gt;
            Project: Lucene - Java&lt;br&gt;
         Issue Type: Improvement&lt;br&gt;
           Reporter: Mark Miller&lt;br&gt;
        Attachments: FastCnstScoreQTest.patch,&lt;br&gt;
&lt;/blockquote&gt;
hi_junit_test_runtimes.png, LUCENE-1844.patch&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
&lt;br&gt;
As Lucene grows, so does the number of JUnit tests. This is obviously a&lt;br&gt;
&lt;/blockquote&gt;
good thing, but it comes with longer and longer test times. Now that we also&lt;br&gt;
run back compat tests in a standard test run, this problem is essentially&lt;br&gt;
doubled.&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
There are some ways this may get better, including running parallel&lt;br&gt;
&lt;/blockquote&gt;
tests. You will need the hardware to fully take advantage, but it should be&lt;br&gt;
a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the&lt;br&gt;
beginnings of something we might be able to count on soon. 4.6 was buggy,&lt;br&gt;
and 4.7 still doesn&amp;#39;t come with nice ant integration. Parallel tests will&lt;br&gt;
come though.&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Beyond parallel testing, I think we also need to concentrate on keeping&lt;br&gt;
&lt;/blockquote&gt;
our tests lean. We don&amp;#39;t want to sacrifice coverage or quality, but I&amp;#39;m sure&lt;br&gt;
there is plenty of fat to skim.&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I&amp;#39;ve started making a list of some of the longer tests - I think with&lt;br&gt;
&lt;/blockquote&gt;
some work we can make our tests much faster - and then with parallelization,&lt;br&gt;
I think we could see some really great gains.&lt;br&gt;
&lt;br&gt;
--&lt;br&gt;
This message is automatically generated by JIRA.&lt;br&gt;
-&lt;br&gt;
You can reply to this email to add a comment to the issue online.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
I posted a rather long diatribe outlining why I think speed-ups&lt;br&gt;
are a false goal for Lucene. Briefly, I&amp;#39;m convinced that as long&lt;br&gt;
as the tests are run when Hudson builds Lucene, 99% of the&lt;br&gt;
value of unit tests is realized. I suppose this implies that the&lt;br&gt;
hard-core committers agree that as long as failed tests&lt;br&gt;
are caught/corrected within a day things are fine.&lt;br&gt;
&lt;br&gt;
Although coming from a background where unit&lt;br&gt;
tests are not always required, my viewpoint may be&lt;br&gt;
suspect &amp;lt;G&amp;gt;.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Erick@...&lt;/a&gt;....&lt;br&gt;
&lt;br&gt;
On Wed, Nov 25, 2009 at 8:43 PM, Michael McCandless (JIRA) &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jira@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
   [ &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;amp;focusedCommentId=12782716#action_12782716&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;amp;focusedCommentId=12782716#action_12782716&lt;/a&gt; ]&lt;br&gt;

&lt;br&gt;
Michael McCandless commented on LUCENE-1844:&lt;br&gt;
--------------------------------------------&lt;br&gt;
&lt;br&gt;
Will we also speed up back-compat tests?&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Speed up junit tests&lt;br&gt;
--------------------&lt;br&gt;
&lt;br&gt;
                Key: LUCENE-1844&lt;br&gt;
                URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844&lt;/a&gt;&lt;br&gt;
            Project: Lucene - Java&lt;br&gt;
         Issue Type: Improvement&lt;br&gt;
           Reporter: Mark Miller&lt;br&gt;
        Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844.patch&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.&lt;br&gt;

There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn&amp;#39;t come with nice ant integration. Parallel tests will come though.&lt;br&gt;

Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don&amp;#39;t want to sacrifice coverage or quality, but I&amp;#39;m sure there is plenty of fat to skim.&lt;br&gt;
I&amp;#39;ve started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
--&lt;br&gt;
This message is automatically generated by JIRA.&lt;br&gt;
-&lt;br&gt;
You can reply to this email to add a comment to the issue online.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531193&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-%28LUCENE-1844%29-Speed-up-junit-tests-tp26521109p26531193.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530833</id>
	<title>[jira] Commented: (LUCENE-2037) Allow Junit4 tests in our environment.</title>
	<published>2009-11-26T07:14:39Z</published>
	<updated>2009-11-26T07:14:39Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-2037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782916#action_12782916&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-2037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782916#action_12782916&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Erick Erickson commented on LUCENE-2037:
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;Hold off on this patch until I get a chance to submit a new one, we're straightening out LUCENE-1844 interdependencies between patches.....
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Allow Junit4 tests in our environment.
&lt;br&gt;&amp;gt; --------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: LUCENE-2037
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-2037&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-2037&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Lucene - Java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Other
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Development
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Erick Erickson
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Erick Erickson
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 3.1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: junit-4.7.jar, LUCENE-2037.patch
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 8h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 8h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now that we're dropping Java 1.4 compatibility for 3.0, we can incorporate Junit4 in testing. Junit3 and junit4 tests can coexist, so no tests should have to be rewritten. We should start this for the 3.1 release so we can get a clean 3.0 out smoothly.
&lt;br&gt;&amp;gt; It's probably worthwhile to convert a small set of tests as an exemplar.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530833&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530833&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28LUCENE-2037%29-Allow-Junit4-tests-in-our-environment.-tp26225159p26530833.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530797</id>
	<title>[jira] Commented: (LUCENE-1844) Speed up junit tests</title>
	<published>2009-11-26T07:12:39Z</published>
	<updated>2009-11-26T07:12:39Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782915#action_12782915&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782915#action_12782915&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Erick Erickson commented on LUCENE-1844:
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;OK, fire when ready Gridley. Pretty soon I'll understand when to comment and how to keep from multiple comments.... 
&lt;br&gt;&lt;br&gt;This patch does NOT use the Java5 features like generics etc. I've done that work and it'll be included in the TestCustomScoreQuery changes for JUnit4.....
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Speed up junit tests
&lt;br&gt;&amp;gt; --------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: LUCENE-1844
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Lucene - Java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Mark Miller
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
&lt;br&gt;&amp;gt; There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
&lt;br&gt;&amp;gt; Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
&lt;br&gt;&amp;gt; I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530797&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530797&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28LUCENE-1844%29-Speed-up-junit-tests-tp25099329p26530797.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530749</id>
	<title>[jira] Updated: (LUCENE-1844) Speed up junit tests</title>
	<published>2009-11-26T07:08:39Z</published>
	<updated>2009-11-26T07:08:39Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Erick Erickson updated LUCENE-1844:
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Attachment: LUCENE-1844-Junit3.patch
&lt;br&gt;&lt;br&gt;Speeds up TestBooleanMinShouldMatch and TestCustomScoreQuery without using JUnit4
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Speed up junit tests
&lt;br&gt;&amp;gt; --------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: LUCENE-1844
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Lucene - Java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Mark Miller
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844-Junit3.patch, LUCENE-1844.patch
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
&lt;br&gt;&amp;gt; There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
&lt;br&gt;&amp;gt; Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
&lt;br&gt;&amp;gt; I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530749&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530749&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28LUCENE-1844%29-Speed-up-junit-tests-tp25099329p26530749.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530517</id>
	<title>Re: Inside Lucene</title>
	<published>2009-11-26T06:50:52Z</published>
	<updated>2009-11-26T06:50:52Z</updated>
	<author>
		<name>Benjamin Heilbrunn</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;if you are searching for information about lucenes file structure you
&lt;br&gt;can find something here:
&lt;br&gt;&lt;a href=&quot;http://lucene.apache.org/java/3_0_0/fileformats.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lucene.apache.org/java/3_0_0/fileformats.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Benjamin
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530517&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530517&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Inside-Lucene-tp26530211p26530517.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530361</id>
	<title>[jira] Commented: (LUCENE-1930) Scale moderator not in line with sinusoidal projector</title>
	<published>2009-11-26T06:40:39Z</published>
	<updated>2009-11-26T06:40:39Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782908#action_12782908&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782908#action_12782908&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Nicolas Helleringer commented on LUCENE-1930:
&lt;br&gt;---------------------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;Ok ! I did not get that =)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Of course : add a comment to the issue to tell the project.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&lt;br&gt;Nicolas
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Scale moderator not in line with sinusoidal projector
&lt;br&gt;&amp;gt; -----------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: LUCENE-1930
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1930&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1930&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Lucene - Java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: contrib/spatial
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Nicolas Helleringer
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: LUCENE-1930.patch
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Current implementation in spatial Lucene does :
&lt;br&gt;&amp;gt; public double getTierBoxId (double latitude, double longitude) {
&lt;br&gt;&amp;gt; &amp;nbsp; double[] coords = projector.coords(latitude, longitude);
&lt;br&gt;&amp;gt; &amp;nbsp; double id = getBoxId(coords[0]) + (getBoxId(coords[1]) / tierVerticalPosDivider);
&lt;br&gt;&amp;gt; &amp;nbsp; return id ;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; private double getBoxId (double coord){
&lt;br&gt;&amp;gt; &amp;nbsp; return Math.floor(coord / (idd / this.tierLength));
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; with
&lt;br&gt;&amp;gt; Double idd = new Double(180);
&lt;br&gt;&amp;gt; in the CartesianTierPlotter constructor.
&lt;br&gt;&amp;gt; But current Sinusoidal Projector set and used in initialisation of CartesianTierPlotter does :
&lt;br&gt;&amp;gt; public double[] coords(double latitude, double longitude) {
&lt;br&gt;&amp;gt; &amp;nbsp; double rlat = Math.toRadians(latitude);
&lt;br&gt;&amp;gt; &amp;nbsp; double rlong = Math.toRadians(longitude);
&lt;br&gt;&amp;gt; &amp;nbsp; double nlat = rlong * Math.cos(rlat);
&lt;br&gt;&amp;gt; &amp;nbsp; double r[] = {nlat, rlong};
&lt;br&gt;&amp;gt; return r;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; Thus we moderate with idd = 180 a coord that is in a Radian space.
&lt;br&gt;&amp;gt; Things to do :
&lt;br&gt;&amp;gt; 1°) fix idd to : double idd= PI;
&lt;br&gt;&amp;gt; 2°) Move idd definition to IProjector interface : The coord space should belong to the projector doing the job. Change the code from CTP to use that new interface.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530361&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530361&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28LUCENE-1930%29-Scale-moderator-not-in-line-with-sinusoidal-projector-tp25642947p26530361.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530211</id>
	<title>Inside Lucene</title>
	<published>2009-11-26T06:27:46Z</published>
	<updated>2009-11-26T06:27:46Z</updated>
	<author>
		<name>王巍巍</name>
	</author>
	<content type="html">Hi guys,
&lt;br&gt;&lt;br&gt;&amp;nbsp; I’ve read Lucene in Action and also implemented a general purpose FTP
&lt;br&gt;search engine with lucene, you can find the source here:
&lt;br&gt;&lt;a href=&quot;http://code.google.com/p/askrosa/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/askrosa/&lt;/a&gt;&lt;br&gt;&lt;br&gt;I want to learn more about the implementation of lucene, e.g. index ,storing
&lt;br&gt;structure, compression etc.
&lt;br&gt;&lt;br&gt;Could anyone here recommend some books or materials about these topics?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Best Regards!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Weiwei Wang
&lt;br&gt;Nanjing University, Nanjing, P.R.China
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Inside-Lucene-tp26530211p26530211.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530165</id>
	<title>Books about lucene</title>
	<published>2009-11-26T06:24:43Z</published>
	<updated>2009-11-26T06:24:43Z</updated>
	<author>
		<name>王巍巍</name>
	</author>
	<content type="html">Hi guys,
&lt;br&gt;&lt;br&gt;&amp;nbsp; I’ve read Lucene in Action and also implemented a general purpose FTP
&lt;br&gt;search engine with lucene, you can find the source here: &lt;a href=&quot;http://code.google&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google&lt;/a&gt;.
&lt;br&gt;com/p/askrosa/
&lt;br&gt;&lt;br&gt;I want to learn more about the implementation of lucene, e.g. index storing
&lt;br&gt;structure, compression etc. 
&lt;br&gt;&lt;br&gt;Could anyone here recommend some books about these topics?
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Best Regards!
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Weiwei Wang
&lt;br&gt;&lt;br&gt;Nanjing University, Nanjing, P.R.China
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Books-about-lucene-tp26530165p26530165.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530171</id>
	<title>Re: [jira] Commented: (LUCENE-1844) Speed up junit tests</title>
	<published>2009-11-26T06:24:07Z</published>
	<updated>2009-11-26T06:24:07Z</updated>
	<author>
		<name>markrmiller</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Nov 25, 2009, at 9:32 PM, Erick Erickson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530171&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;erickerickson@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;wrote:
&lt;br&gt;&amp;gt; &amp;nbsp;I suppose this implies that the
&lt;br&gt;&amp;gt; hard-core committers agree that as long as failed tests
&lt;br&gt;&amp;gt; are caught/corrected within a day things are fine.
&lt;br&gt;&lt;br&gt;Personally, I don't agree with that. Others are checking out, &amp;nbsp;
&lt;br&gt;updating, and using the tests to help verify and figure out their &amp;nbsp;
&lt;br&gt;changes. Breaks in the build are detrimental to this processes. If it &amp;nbsp;
&lt;br&gt;happens on the rare occassion fine, but you should run the the tests &amp;nbsp;
&lt;br&gt;before committing - it's being polite to others working with the &amp;nbsp;
&lt;br&gt;build. Don't break the build is a rule I'm strongly behind - and it &amp;nbsp;
&lt;br&gt;requires running the tests outside of Hudson.
&lt;br&gt;&lt;br&gt;-mark 
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530171&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530171&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28LUCENE-1844%29-Speed-up-junit-tests-tp25099329p26530171.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529885</id>
	<title>Re: (LUCENE-1844) Speed up junit tests</title>
	<published>2009-11-26T06:02:25Z</published>
	<updated>2009-11-26T06:02:25Z</updated>
	<author>
		<name>markrmiller</name>
	</author>
	<content type="html">&amp;nbsp; right - as soon as you have to start running the tests often enough, &amp;nbsp;
&lt;br&gt;any decent savings turns into less waiting and more work. Waiting for &amp;nbsp;
&lt;br&gt;tests to run is time that could be better spent elsewhere. And many of &amp;nbsp;
&lt;br&gt;us runthe tests *a lot* considering how long they take. And we will &amp;nbsp;
&lt;br&gt;only keep adding more and will continue to do so.
&lt;br&gt;&lt;br&gt;Also, many of us *are* on multicore and should be able to benifit from &amp;nbsp;
&lt;br&gt;it. I don't dev on anything less than 4 cores these days. It's a life &amp;nbsp;
&lt;br&gt;changer :) and cheap currently. I'd like 8.
&lt;br&gt;&lt;br&gt;- Mark
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.lucidimagination.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.lucidimagination.com&lt;/a&gt;&amp;nbsp;(mobile)
&lt;br&gt;&lt;br&gt;On Nov 26, 2009, at 5:24 AM, Michael McCandless &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lucene@...&lt;/a&gt; 
&lt;br&gt;&amp;nbsp;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I still think there's value to faster tests, even if they don't become
&lt;br&gt;&amp;gt; so fast as to enable &amp;quot;fully interactive testing&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Plus, this is an ongoing goal with time, not a one-time event. &amp;nbsp;As we
&lt;br&gt;&amp;gt; create tests we should generally try to maximize coverage and minimize
&lt;br&gt;&amp;gt; CPU cost, as long as the effort is smallish.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mike
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 9:32 PM, Erick Erickson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;erickerickson@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; I posted a rather long diatribe outlining why I think speed-ups
&lt;br&gt;&amp;gt;&amp;gt; are a false goal for Lucene. Briefly, I'm convinced that as long
&lt;br&gt;&amp;gt;&amp;gt; as the tests are run when Hudson builds Lucene, 99% of the
&lt;br&gt;&amp;gt;&amp;gt; value of unit tests is realized. I suppose this implies that the
&lt;br&gt;&amp;gt;&amp;gt; hard-core committers agree that as long as failed tests
&lt;br&gt;&amp;gt;&amp;gt; are caught/corrected within a day things are fine.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Although coming from a background where unit
&lt;br&gt;&amp;gt;&amp;gt; tests are not always required, my viewpoint may be
&lt;br&gt;&amp;gt;&amp;gt; suspect &amp;lt;G&amp;gt;.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Erick@...&lt;/a&gt;....
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Nov 25, 2009 at 8:43 PM, Michael McCandless (JIRA)
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jira@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782716#action_12782716&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782716#action_12782716&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Michael McCandless commented on LUCENE-1844:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Will we also speed up back-compat tests?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Speed up junit tests
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: LUCENE-1844
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Lucene - Java
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Mark Miller
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: FastCnstScoreQTest.patch,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; hi_junit_test_runtimes.png, LUCENE-1844.patch
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; As Lucene grows, so does the number of JUnit tests. This is &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; obviously a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; good thing, but it comes with longer and longer test times. Now &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; that we also
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; run back compat tests in a standard test run, this problem is &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; essentially
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; doubled.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There are some ways this may get better, including running parallel
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; tests. You will need the hardware to fully take advantage, but it &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; should be
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; a nice gain. There is already an issue for this, and Junit 4.6, &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 4.7 have the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; beginnings of something we might be able to count on soon. 4.6 was &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; buggy,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and 4.7 still doesn't come with nice ant integration. Parallel &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; tests will
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; come though.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Beyond parallel testing, I think we also need to concentrate on &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; keeping
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; our tests lean. We don't want to sacrifice coverage or quality, &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; but I'm sure
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; there is plenty of fat to skim.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I've started making a list of some of the longer tests - I think &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; some work we can make our tests much faster - and then with &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; parallelization,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I think we could see some really great gains.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; This message is automatically generated by JIRA.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You can reply to this email to add a comment to the issue online.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --- 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I posted a rather long diatribe outlining why I think speed-ups
&lt;br&gt;&amp;gt;&amp;gt; are a false goal for Lucene. Briefly, I'm convinced that as long
&lt;br&gt;&amp;gt;&amp;gt; as the tests are run when Hudson builds Lucene, 99% of the
&lt;br&gt;&amp;gt;&amp;gt; value of unit tests is realized. I suppose this implies that the
&lt;br&gt;&amp;gt;&amp;gt; hard-core committers agree that as long as failed tests
&lt;br&gt;&amp;gt;&amp;gt; are caught/corrected within a day things are fine.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Although coming from a background where unit
&lt;br&gt;&amp;gt;&amp;gt; tests are not always required, my viewpoint may be
&lt;br&gt;&amp;gt;&amp;gt; suspect &amp;lt;G&amp;gt;.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Erick@...&lt;/a&gt;....
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Nov 25, 2009 at 8:43 PM, Michael McCandless (JIRA) &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jira@...&lt;/a&gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782716#action_12782716&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782716#action_12782716&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Michael McCandless commented on LUCENE-1844:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Will we also speed up back-compat tests?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Speed up junit tests
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: LUCENE-1844
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Lucene - Java
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Mark Miller
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: FastCnstScoreQTest.patch, &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; hi_junit_test_runtimes.png, LUCENE-1844.patch
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; As Lucene grows, so does the number of JUnit tests. This is &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; obviously a good thing, but it comes with longer and longer test &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; times. Now that we also run back compat tests in a standard test &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; run, this problem is essentially doubled.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There are some ways this may get better, including running &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; parallel tests. You will need the hardware to fully take &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; advantage, but it should be a nice gain. There is already an &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; issue for this, and Junit 4.6, 4.7 have the beginnings of &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; something we might be able to count on soon. 4.6 was buggy, and &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 4.7 still doesn't come with nice ant integration. Parallel tests &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; will come though.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Beyond parallel testing, I think we also need to concentrate on &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; keeping our tests lean. We don't want to sacrifice coverage or &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; quality, but I'm sure there is plenty of fat to skim.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I've started making a list of some of the longer tests - I think &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; with some work we can make our tests much faster - and then with &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; parallelization, I think we could see some really great gains.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; This message is automatically generated by JIRA.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You can reply to this email to add a comment to the issue online.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --- 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529885&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-%28LUCENE-1844%29-Speed-up-junit-tests-tp26521109p26529885.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529612</id>
	<title>[jira] Commented: (LUCENE-1930) Scale moderator not in line with sinusoidal projector</title>
	<published>2009-11-26T05:43:39Z</published>
	<updated>2009-11-26T05:43:39Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782896#action_12782896&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782896#action_12782896&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Chris Male commented on LUCENE-1930:
&lt;br&gt;------------------------------------
&lt;br&gt;&lt;br&gt;Hi Nicolas,
&lt;br&gt;&lt;br&gt;I have every intention to commit my work to Lucene in the next week or so. &amp;nbsp;If you can wait till then, I will include this patch in my patch.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Scale moderator not in line with sinusoidal projector
&lt;br&gt;&amp;gt; -----------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: LUCENE-1930
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1930&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1930&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Lucene - Java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: contrib/spatial
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Nicolas Helleringer
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: LUCENE-1930.patch
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Current implementation in spatial Lucene does :
&lt;br&gt;&amp;gt; public double getTierBoxId (double latitude, double longitude) {
&lt;br&gt;&amp;gt; &amp;nbsp; double[] coords = projector.coords(latitude, longitude);
&lt;br&gt;&amp;gt; &amp;nbsp; double id = getBoxId(coords[0]) + (getBoxId(coords[1]) / tierVerticalPosDivider);
&lt;br&gt;&amp;gt; &amp;nbsp; return id ;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; private double getBoxId (double coord){
&lt;br&gt;&amp;gt; &amp;nbsp; return Math.floor(coord / (idd / this.tierLength));
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; with
&lt;br&gt;&amp;gt; Double idd = new Double(180);
&lt;br&gt;&amp;gt; in the CartesianTierPlotter constructor.
&lt;br&gt;&amp;gt; But current Sinusoidal Projector set and used in initialisation of CartesianTierPlotter does :
&lt;br&gt;&amp;gt; public double[] coords(double latitude, double longitude) {
&lt;br&gt;&amp;gt; &amp;nbsp; double rlat = Math.toRadians(latitude);
&lt;br&gt;&amp;gt; &amp;nbsp; double rlong = Math.toRadians(longitude);
&lt;br&gt;&amp;gt; &amp;nbsp; double nlat = rlong * Math.cos(rlat);
&lt;br&gt;&amp;gt; &amp;nbsp; double r[] = {nlat, rlong};
&lt;br&gt;&amp;gt; return r;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; Thus we moderate with idd = 180 a coord that is in a Radian space.
&lt;br&gt;&amp;gt; Things to do :
&lt;br&gt;&amp;gt; 1°) fix idd to : double idd= PI;
&lt;br&gt;&amp;gt; 2°) Move idd definition to IProjector interface : The coord space should belong to the projector doing the job. Change the code from CTP to use that new interface.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529612&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529612&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28LUCENE-1930%29-Scale-moderator-not-in-line-with-sinusoidal-projector-tp25642947p26529612.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529595</id>
	<title>RE: Is it a lucene bug?</title>
	<published>2009-11-26T05:41:49Z</published>
	<updated>2009-11-26T05:41:49Z</updated>
	<author>
		<name>Uwe Schindler</name>
	</author>
	<content type="html">Read the documentation of the Document class: if you set a boost for a
&lt;br&gt;document, it is used when indexing the fields and multiplied to each field.
&lt;br&gt;For the document itself no boost value is stored, so you cannot get it (only
&lt;br&gt;so called stored fields are retrievable).
&lt;br&gt;&lt;br&gt;-----
&lt;br&gt;Uwe Schindler
&lt;br&gt;H.-H.-Meier-Allee 63, D-28213 Bremen
&lt;br&gt;&lt;a href=&quot;http://www.thetaphi.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thetaphi.de&lt;/a&gt;&lt;br&gt;eMail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529595&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uwe@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Wilson Wu [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529595&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;songzi0206@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Thursday, November 26, 2009 1:01 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529595&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Is it a lucene bug?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Recently, there is a requirement to sort the hits by both the
&lt;br&gt;&amp;gt; scores of documents and the updateTime which is a field of document to
&lt;br&gt;&amp;gt; mark the document's update time. &amp;nbsp;We want the new document in the
&lt;br&gt;&amp;gt; front and also want high score document in the front,in other words,
&lt;br&gt;&amp;gt; we want to mix the score and updateTime, but not first sort by
&lt;br&gt;&amp;gt; one,second by the other. So, I design a time based function f(t) to
&lt;br&gt;&amp;gt; calculte each document boost to write into the index store.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; The result is that I can caculate a value for each document
&lt;br&gt;&amp;gt; based its update time, and the value can influence the document score
&lt;br&gt;&amp;gt; through adjusting the fieldNorm value. But when I lookup the boost
&lt;br&gt;&amp;gt; value through the method document.getBoost() from every document in
&lt;br&gt;&amp;gt; the index store, I found the boost value = 1.0. Which means I can set
&lt;br&gt;&amp;gt; a document's boost value and the boost value can adjust the final
&lt;br&gt;&amp;gt; score, but I can't read the boost value from the document I have
&lt;br&gt;&amp;gt; searched out.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Is it a bug in lucene? Thanks. I use lucene version 2.4.1.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; PS: Is there any other way to meet my reqirement? &amp;nbsp;I think it is
&lt;br&gt;&amp;gt; not a good idea to adjust document's final score through writing a
&lt;br&gt;&amp;gt; document boost into the index store. Because if I want to open two
&lt;br&gt;&amp;gt; interfaces to the Client: one is sorting documents only by score which
&lt;br&gt;&amp;gt; is just the similarity score and has not been adjusted by boost value
&lt;br&gt;&amp;gt; f(t), the other is sorting by final score which has been adjuested by
&lt;br&gt;&amp;gt; boost value f(t). Thank a lot!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wilson
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529595&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529595&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529595&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529595&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-it-a-lucene-bug--tp26528444p26529595.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529392</id>
	<title>Re: Is it a lucene bug?</title>
	<published>2009-11-26T05:24:48Z</published>
	<updated>2009-11-26T05:24:48Z</updated>
	<author>
		<name>Savvas-Andreas Moysidis</name>
	</author>
	<content type="html">hi,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I’m not exactly sure I understand they the type of sorting you are trying to
&lt;br&gt;achieve.
&lt;br&gt;&lt;br&gt;You have an updateTime field and you mention that &amp;quot;We want the new document
&lt;br&gt;in the
&lt;br&gt;front and also want high score document in the front&amp;quot;.
&lt;br&gt;&lt;br&gt;My take on this is that you want to first sort by the updateTime and then by
&lt;br&gt;score but you say this is not the case?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Instead of calculating a boost value with f(t) can you not calculate and
&lt;br&gt;index the actual value you need for every document?
&lt;br&gt;&lt;br&gt;Then you can &amp;nbsp;first sort by this value and then by score?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;&lt;br&gt;savvas
&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/11/26 Wilson Wu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529392&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;songzi0206@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Recently, there is a requirement to sort the hits by both the
&lt;br&gt;&amp;gt; scores of documents and the updateTime which is a field of document to
&lt;br&gt;&amp;gt; mark the document's update time. &amp;nbsp;We want the new document in the
&lt;br&gt;&amp;gt; front and also want high score document in the front,in other words,
&lt;br&gt;&amp;gt; we want to mix the score and updateTime, but not first sort by
&lt;br&gt;&amp;gt; one,second by the other. So, I design a time based function f(t) to
&lt;br&gt;&amp;gt; calculte each document boost to write into the index store.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;The result is that I can caculate a value for each document
&lt;br&gt;&amp;gt; based its update time, and the value can influence the document score
&lt;br&gt;&amp;gt; through adjusting the fieldNorm value. But when I lookup the boost
&lt;br&gt;&amp;gt; value through the method document.getBoost() from every document in
&lt;br&gt;&amp;gt; the index store, I found the boost value = 1.0. Which means I can set
&lt;br&gt;&amp;gt; a document's boost value and the boost value can adjust the final
&lt;br&gt;&amp;gt; score, but I can't read the boost value from the document I have
&lt;br&gt;&amp;gt; searched out.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Is it a bug in lucene? Thanks. I use lucene version 2.4.1.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;PS: Is there any other way to meet my reqirement? &amp;nbsp;I think it is
&lt;br&gt;&amp;gt; not a good idea to adjust document's final score through writing a
&lt;br&gt;&amp;gt; document boost into the index store. Because if I want to open two
&lt;br&gt;&amp;gt; interfaces to the Client: one is sorting documents only by score which
&lt;br&gt;&amp;gt; is just the similarity score and has not been adjusted by boost value
&lt;br&gt;&amp;gt; f(t), the other is sorting by final score which has been adjuested by
&lt;br&gt;&amp;gt; boost value f(t). Thank a lot!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wilson
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529392&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529392&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-it-a-lucene-bug--tp26528444p26529392.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528733</id>
	<title>[jira] Commented: (LUCENE-1934) Rework (Float)LatLng implementation and distance calculation</title>
	<published>2009-11-26T04:28:40Z</published>
	<updated>2009-11-26T04:28:40Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782873#action_12782873&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782873#action_12782873&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Nicolas Helleringer commented on LUCENE-1934:
&lt;br&gt;---------------------------------------------
&lt;br&gt;&lt;br&gt;As Chris work is being released outside Lucene Apache project (&lt;a href=&quot;http://www.jteam.nl/news/spatialsolr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jteam.nl/news/spatialsolr&lt;/a&gt;), should we consider this patch to be re evaluated to commit ?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Rework (Float)LatLng implementation and distance calculation
&lt;br&gt;&amp;gt; ------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: LUCENE-1934
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1934&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1934&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Lucene - Java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: contrib/spatial
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Nicolas Helleringer
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: LUCENE-1934.patch
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Clean up of the code and normalisation of the distance calculation to standard
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528733&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528733&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28LUCENE-1934%29-Rework-%28Float%29LatLng-implementation-and-distance-calculation-tp25696784p26528733.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528734</id>
	<title>[jira] Commented: (LUCENE-1930) Scale moderator not in line with sinusoidal projector</title>
	<published>2009-11-26T04:28:39Z</published>
	<updated>2009-11-26T04:28:39Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782872#action_12782872&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782872#action_12782872&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Nicolas Helleringer commented on LUCENE-1930:
&lt;br&gt;---------------------------------------------
&lt;br&gt;&lt;br&gt;As Chris work is being released outside Lucene Apache project (&lt;a href=&quot;http://www.jteam.nl/news/spatialsolr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jteam.nl/news/spatialsolr&lt;/a&gt;), should we consider this patch to be re evaluated to commit ?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Scale moderator not in line with sinusoidal projector
&lt;br&gt;&amp;gt; -----------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: LUCENE-1930
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1930&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1930&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Lucene - Java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: contrib/spatial
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Nicolas Helleringer
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: LUCENE-1930.patch
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Current implementation in spatial Lucene does :
&lt;br&gt;&amp;gt; public double getTierBoxId (double latitude, double longitude) {
&lt;br&gt;&amp;gt; &amp;nbsp; double[] coords = projector.coords(latitude, longitude);
&lt;br&gt;&amp;gt; &amp;nbsp; double id = getBoxId(coords[0]) + (getBoxId(coords[1]) / tierVerticalPosDivider);
&lt;br&gt;&amp;gt; &amp;nbsp; return id ;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; private double getBoxId (double coord){
&lt;br&gt;&amp;gt; &amp;nbsp; return Math.floor(coord / (idd / this.tierLength));
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; with
&lt;br&gt;&amp;gt; Double idd = new Double(180);
&lt;br&gt;&amp;gt; in the CartesianTierPlotter constructor.
&lt;br&gt;&amp;gt; But current Sinusoidal Projector set and used in initialisation of CartesianTierPlotter does :
&lt;br&gt;&amp;gt; public double[] coords(double latitude, double longitude) {
&lt;br&gt;&amp;gt; &amp;nbsp; double rlat = Math.toRadians(latitude);
&lt;br&gt;&amp;gt; &amp;nbsp; double rlong = Math.toRadians(longitude);
&lt;br&gt;&amp;gt; &amp;nbsp; double nlat = rlong * Math.cos(rlat);
&lt;br&gt;&amp;gt; &amp;nbsp; double r[] = {nlat, rlong};
&lt;br&gt;&amp;gt; return r;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; Thus we moderate with idd = 180 a coord that is in a Radian space.
&lt;br&gt;&amp;gt; Things to do :
&lt;br&gt;&amp;gt; 1°) fix idd to : double idd= PI;
&lt;br&gt;&amp;gt; 2°) Move idd definition to IProjector interface : The coord space should belong to the projector doing the job. Change the code from CTP to use that new interface.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528734&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528734&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28LUCENE-1930%29-Scale-moderator-not-in-line-with-sinusoidal-projector-tp25642947p26528734.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528576</id>
	<title>Re: MergePolicy$MergeException CorruptIndexException in lucene2.4.1</title>
	<published>2009-11-26T04:12:46Z</published>
	<updated>2009-11-26T04:12:46Z</updated>
	<author>
		<name>jmwap</name>
	</author>
	<content type="html">The process is still running and ops dont want to stop it. As soon as
&lt;br&gt;stops I'll try checkindex.
&lt;br&gt;&lt;br&gt;Its created brand new with 2.4.1
&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 12:42 PM, Michael McCandless
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528576&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lucene@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I think you're using a JRE that has the fix for the issue found in LUCENE-1282.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can you run CheckIndex on your index and post the output?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Was this index created from scratch on Lucene 2.4.1?  Or, created from
&lt;br&gt;&amp;gt; an earlier Lucene version?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mike
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 26, 2009 at 6:03 AM, jm &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528576&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmuguruza@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; or are we really? I think we are on 1.6 update 14 right??
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; sorry Im lost right now on jdk version numbering
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Thu, Nov 26, 2009 at 12:01 PM, jm &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528576&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmuguruza@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; on second thought...I hadnt noticed the jdk numbers properly, we are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using using b28, and JDK 6 Update 10 (b28) is the one fixing this...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ok forget this then
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; thanks!
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Thu, Nov 26, 2009 at 11:55 AM, jm &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528576&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmuguruza@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Dont know if this should be here or in java-dev, posting to this one
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; first. In one of our installations, we have encountered an exception:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Exception in thread &amp;quot;Lucene Merge Thread #0&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.apache.lucene.index.MergePolicy$MergeException:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.apache.lucene.index.CorruptIndexException: docs out of order
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; (24658 &amp;lt;= 24658 )
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:309)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:286)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Caused by: org.apache.lucene.index.CorruptIndexException: docs out of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; order (24658 &amp;lt;= 24658 )
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.appendPostings(SegmentMerger.java:641)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.mergeTermInfo(SegmentMerger.java:586)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:547)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:500)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:140)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4231)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3884)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:205)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:260)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I have investigated in the list and it looked like
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1282&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1282&lt;/a&gt;. But we are using
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 2.4.1, and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; C:\Documents and Settings\Administrator&amp;gt;java -version
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java version &amp;quot;1.6.0_14&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java process launched like this:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java -server -Xmx1536m  ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; So I understand this bug should not be happening??
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; any idea?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; thanks
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; javi
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528576&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528576&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528576&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528576&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528576&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528576&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MergePolicy%24MergeException-CorruptIndexException-in-lucene2.4.1-tp26527663p26528576.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528444</id>
	<title>Is it a lucene bug?</title>
	<published>2009-11-26T04:01:15Z</published>
	<updated>2009-11-26T04:01:15Z</updated>
	<author>
		<name>Wilson Wu</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Recently, there is a requirement to sort the hits by both the
&lt;br&gt;scores of documents and the updateTime which is a field of document to
&lt;br&gt;mark the document's update time. &amp;nbsp;We want the new document in the
&lt;br&gt;front and also want high score document in the front,in other words,
&lt;br&gt;we want to mix the score and updateTime, but not first sort by
&lt;br&gt;one,second by the other. So, I design a time based function f(t) to
&lt;br&gt;calculte each document boost to write into the index store.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The result is that I can caculate a value for each document
&lt;br&gt;based its update time, and the value can influence the document score
&lt;br&gt;through adjusting the fieldNorm value. But when I lookup the boost
&lt;br&gt;value through the method document.getBoost() from every document in
&lt;br&gt;the index store, I found the boost value = 1.0. Which means I can set
&lt;br&gt;a document's boost value and the boost value can adjust the final
&lt;br&gt;score, but I can't read the boost value from the document I have
&lt;br&gt;searched out.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Is it a bug in lucene? Thanks. I use lucene version 2.4.1.
&lt;br&gt;&amp;nbsp; &amp;nbsp; PS: Is there any other way to meet my reqirement? &amp;nbsp;I think it is
&lt;br&gt;not a good idea to adjust document's final score through writing a
&lt;br&gt;document boost into the index store. Because if I want to open two
&lt;br&gt;interfaces to the Client: one is sorting documents only by score which
&lt;br&gt;is just the similarity score and has not been adjusted by boost value
&lt;br&gt;f(t), the other is sorting by final score which has been adjuested by
&lt;br&gt;boost value f(t). Thank a lot!
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wilson
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528444&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528444&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-it-a-lucene-bug--tp26528444p26528444.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528208</id>
	<title>Re: MergePolicy$MergeException CorruptIndexException in lucene2.4.1</title>
	<published>2009-11-26T03:42:11Z</published>
	<updated>2009-11-26T03:42:11Z</updated>
	<author>
		<name>Michael McCandless-2</name>
	</author>
	<content type="html">I think you're using a JRE that has the fix for the issue found in LUCENE-1282.
&lt;br&gt;&lt;br&gt;Can you run CheckIndex on your index and post the output?
&lt;br&gt;&lt;br&gt;Was this index created from scratch on Lucene 2.4.1? &amp;nbsp;Or, created from
&lt;br&gt;an earlier Lucene version?
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 6:03 AM, jm &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528208&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmuguruza@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; or are we really? I think we are on 1.6 update 14 right??
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; sorry Im lost right now on jdk version numbering
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 26, 2009 at 12:01 PM, jm &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528208&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmuguruza@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; on second thought...I hadnt noticed the jdk numbers properly, we are
&lt;br&gt;&amp;gt;&amp;gt; using using b28, and JDK 6 Update 10 (b28) is the one fixing this...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ok forget this then
&lt;br&gt;&amp;gt;&amp;gt; thanks!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Thu, Nov 26, 2009 at 11:55 AM, jm &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528208&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmuguruza@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Dont know if this should be here or in java-dev, posting to this one
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; first. In one of our installations, we have encountered an exception:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Exception in thread &amp;quot;Lucene Merge Thread #0&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.apache.lucene.index.MergePolicy$MergeException:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.apache.lucene.index.CorruptIndexException: docs out of order
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (24658 &amp;lt;= 24658 )
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:309)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:286)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Caused by: org.apache.lucene.index.CorruptIndexException: docs out of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; order (24658 &amp;lt;= 24658 )
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.appendPostings(SegmentMerger.java:641)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.mergeTermInfo(SegmentMerger.java:586)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:547)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:500)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:140)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4231)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3884)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:205)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:260)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I have investigated in the list and it looked like
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1282&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1282&lt;/a&gt;. But we are using
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2.4.1, and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; C:\Documents and Settings\Administrator&amp;gt;java -version
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; java version &amp;quot;1.6.0_14&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; java process launched like this:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; java -server -Xmx1536m  ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So I understand this bug should not be happening??
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; any idea?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; thanks
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; javi
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528208&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528208&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528208&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528208&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MergePolicy%24MergeException-CorruptIndexException-in-lucene2.4.1-tp26527663p26528208.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527752</id>
	<title>Re: MergePolicy$MergeException CorruptIndexException in lucene2.4.1</title>
	<published>2009-11-26T03:03:30Z</published>
	<updated>2009-11-26T03:03:30Z</updated>
	<author>
		<name>jmwap</name>
	</author>
	<content type="html">or are we really? I think we are on 1.6 update 14 right??
&lt;br&gt;&lt;br&gt;sorry Im lost right now on jdk version numbering
&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 12:01 PM, jm &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527752&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmuguruza@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; on second thought...I hadnt noticed the jdk numbers properly, we are
&lt;br&gt;&amp;gt; using using b28, and JDK 6 Update 10 (b28) is the one fixing this...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ok forget this then
&lt;br&gt;&amp;gt; thanks!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 26, 2009 at 11:55 AM, jm &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527752&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmuguruza@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Dont know if this should be here or in java-dev, posting to this one
&lt;br&gt;&amp;gt;&amp;gt; first. In one of our installations, we have encountered an exception:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Exception in thread &amp;quot;Lucene Merge Thread #0&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; org.apache.lucene.index.MergePolicy$MergeException:
&lt;br&gt;&amp;gt;&amp;gt; org.apache.lucene.index.CorruptIndexException: docs out of order
&lt;br&gt;&amp;gt;&amp;gt; (24658 &amp;lt;= 24658 )
&lt;br&gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:309)
&lt;br&gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:286)
&lt;br&gt;&amp;gt;&amp;gt; Caused by: org.apache.lucene.index.CorruptIndexException: docs out of
&lt;br&gt;&amp;gt;&amp;gt; order (24658 &amp;lt;= 24658 )
&lt;br&gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.appendPostings(SegmentMerger.java:641)
&lt;br&gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.mergeTermInfo(SegmentMerger.java:586)
&lt;br&gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:547)
&lt;br&gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:500)
&lt;br&gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:140)
&lt;br&gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4231)
&lt;br&gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3884)
&lt;br&gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:205)
&lt;br&gt;&amp;gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:260)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I have investigated in the list and it looked like
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1282&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1282&lt;/a&gt;. But we are using
&lt;br&gt;&amp;gt;&amp;gt; 2.4.1, and
&lt;br&gt;&amp;gt;&amp;gt; C:\Documents and Settings\Administrator&amp;gt;java -version
&lt;br&gt;&amp;gt;&amp;gt; java version &amp;quot;1.6.0_14&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
&lt;br&gt;&amp;gt;&amp;gt; Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; java process launched like this:
&lt;br&gt;&amp;gt;&amp;gt; java -server -Xmx1536m  ...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So I understand this bug should not be happening??
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; any idea?
&lt;br&gt;&amp;gt;&amp;gt; thanks
&lt;br&gt;&amp;gt;&amp;gt; javi
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527752&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527752&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MergePolicy%24MergeException-CorruptIndexException-in-lucene2.4.1-tp26527663p26527752.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527721</id>
	<title>Re: MergePolicy$MergeException CorruptIndexException in lucene2.4.1</title>
	<published>2009-11-26T03:01:18Z</published>
	<updated>2009-11-26T03:01:18Z</updated>
	<author>
		<name>jmwap</name>
	</author>
	<content type="html">on second thought...I hadnt noticed the jdk numbers properly, we are
&lt;br&gt;using using b28, and JDK 6 Update 10 (b28) is the one fixing this...
&lt;br&gt;&lt;br&gt;ok forget this then
&lt;br&gt;thanks!
&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 11:55 AM, jm &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527721&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmuguruza@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Dont know if this should be here or in java-dev, posting to this one
&lt;br&gt;&amp;gt; first. In one of our installations, we have encountered an exception:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Exception in thread &amp;quot;Lucene Merge Thread #0&amp;quot;
&lt;br&gt;&amp;gt; org.apache.lucene.index.MergePolicy$MergeException:
&lt;br&gt;&amp;gt; org.apache.lucene.index.CorruptIndexException: docs out of order
&lt;br&gt;&amp;gt; (24658 &amp;lt;= 24658 )
&lt;br&gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:309)
&lt;br&gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:286)
&lt;br&gt;&amp;gt; Caused by: org.apache.lucene.index.CorruptIndexException: docs out of
&lt;br&gt;&amp;gt; order (24658 &amp;lt;= 24658 )
&lt;br&gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.appendPostings(SegmentMerger.java:641)
&lt;br&gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.mergeTermInfo(SegmentMerger.java:586)
&lt;br&gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:547)
&lt;br&gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:500)
&lt;br&gt;&amp;gt;        at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:140)
&lt;br&gt;&amp;gt;        at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4231)
&lt;br&gt;&amp;gt;        at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3884)
&lt;br&gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:205)
&lt;br&gt;&amp;gt;        at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:260)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have investigated in the list and it looked like
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1282&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1282&lt;/a&gt;. But we are using
&lt;br&gt;&amp;gt; 2.4.1, and
&lt;br&gt;&amp;gt; C:\Documents and Settings\Administrator&amp;gt;java -version
&lt;br&gt;&amp;gt; java version &amp;quot;1.6.0_14&amp;quot;
&lt;br&gt;&amp;gt; Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
&lt;br&gt;&amp;gt; Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; java process launched like this:
&lt;br&gt;&amp;gt; java -server -Xmx1536m  ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So I understand this bug should not be happening??
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; any idea?
&lt;br&gt;&amp;gt; thanks
&lt;br&gt;&amp;gt; javi
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527721&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527721&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MergePolicy%24MergeException-CorruptIndexException-in-lucene2.4.1-tp26527663p26527721.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527706</id>
	<title>Re: Need help regarding implementation of autosuggest using jquery</title>
	<published>2009-11-26T02:59:21Z</published>
	<updated>2009-11-26T02:59:21Z</updated>
	<author>
		<name>Anshum-2</name>
	</author>
	<content type="html">Try this,
&lt;br&gt;Change the code as required:
&lt;br&gt;---------
&lt;br&gt;&lt;br&gt;&lt;br&gt;import java.io.IOException;
&lt;br&gt;&lt;br&gt;import org.apache.lucene.index.CorruptIndexException;
&lt;br&gt;import org.apache.lucene.index.IndexReader;
&lt;br&gt;import org.apache.lucene.index.Term;
&lt;br&gt;import org.apache.lucene.index.TermEnum;
&lt;br&gt;&lt;br&gt;/**
&lt;br&gt;&amp;nbsp;* @author anshum
&lt;br&gt;&amp;nbsp;*
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;public class GetTermsToSuggest {
&lt;br&gt;&lt;br&gt;private static void getTerms(String inputText) {
&lt;br&gt;IndexReader reader = null;
&lt;br&gt;&amp;nbsp;try {
&lt;br&gt;reader = IndexReader.open(&amp;quot;/home/anshum/index/testindex&amp;quot;);
&lt;br&gt;&amp;nbsp;String field = &amp;quot;fieldname&amp;quot;;
&lt;br&gt;field = field.intern();
&lt;br&gt;TermEnum tenum = reader.terms(new Term(&amp;quot;fieldname&amp;quot;, &amp;quot;&amp;quot;));
&lt;br&gt;&amp;nbsp;Boolean hasRun = false;
&lt;br&gt;try {
&lt;br&gt;do {
&lt;br&gt;&amp;nbsp;final Term term = tenum.term();
&lt;br&gt;if (term == null || term.field() != field)
&lt;br&gt;&amp;nbsp;break;
&lt;br&gt;final String termText = term.text();
&lt;br&gt;if (termText.startsWith(inputText)) {
&lt;br&gt;&amp;nbsp;System.out.println(termText);
&lt;br&gt;hasRun = true;
&lt;br&gt;} else if (hasRun == true)
&lt;br&gt;&amp;nbsp;break;
&lt;br&gt;} while (tenum.next());
&lt;br&gt;tenum.close();
&lt;br&gt;&amp;nbsp;} catch (IOException e) {
&lt;br&gt;e.printStackTrace();
&lt;br&gt;}
&lt;br&gt;&amp;nbsp;} catch (CorruptIndexException e2) {
&lt;br&gt;e2.printStackTrace();
&lt;br&gt;} catch (IOException e2) {
&lt;br&gt;&amp;nbsp;e2.printStackTrace();
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;/**
&lt;br&gt;&amp;nbsp;* @param args
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;&amp;nbsp;public static void main(String[] args) {
&lt;br&gt;GetTermsToSuggest.getTerms(args[0]);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Anshum Gupta
&lt;br&gt;Naukri Labs!
&lt;br&gt;&lt;a href=&quot;http://ai-cafe.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ai-cafe.blogspot.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;The facts expressed here belong to everybody, the opinions to me. The
&lt;br&gt;distinction is yours to draw............
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 3:19 PM, Uwe Schindler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uwe@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; You can fix this if you just create the initial term not with &amp;quot;&amp;quot;, instead
&lt;br&gt;&amp;gt; with your prefix:
&lt;br&gt;&amp;gt; TermEnum tenum = reader.terms(new Term(field,prefix));
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And inside the while loop just break out,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if (!termText.startsWith(prefix)) break;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----
&lt;br&gt;&amp;gt; Uwe Schindler
&lt;br&gt;&amp;gt; H.-H.-Meier-Allee 63, D-28213 Bremen
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.thetaphi.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thetaphi.de&lt;/a&gt;&lt;br&gt;&amp;gt; eMail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uwe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: DHIVYA M [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dhivyakrishnan87@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Thursday, November 26, 2009 10:39 AM
&lt;br&gt;&amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: Need help regarding implementation of autosuggest using
&lt;br&gt;&amp;gt; &amp;gt; jquery
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Sir,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Your suggestion was fantastic.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I tried the below mentioned code but it is showing me the entire result
&lt;br&gt;&amp;gt; of
&lt;br&gt;&amp;gt; &amp;gt; indexed words starting from the letter that i give as input.
&lt;br&gt;&amp;gt; &amp;gt; Ex:
&lt;br&gt;&amp;gt; &amp;gt; if i give &amp;quot;fo&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; am getting all the indexes from the word starting with fo upto words
&lt;br&gt;&amp;gt; &amp;gt; starting with z.
&lt;br&gt;&amp;gt; &amp;gt; i.e. it starts displaying from the word matching the search word and ends
&lt;br&gt;&amp;gt; &amp;gt; up with the last word available in the index file.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Kindly suggest me a solution for this problem
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks in advance,
&lt;br&gt;&amp;gt; &amp;gt; Dhivya
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --- On Wed, 25/11/09, Uwe Schindler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uwe@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; From: Uwe Schindler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uwe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: Need help regarding implementation of autosuggest using
&lt;br&gt;&amp;gt; &amp;gt; jquery
&lt;br&gt;&amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Date: Wednesday, 25 November, 2009, 9:54 AM
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi Dhivya,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; you can iterate all terms in the index using a TermEnum, that can be
&lt;br&gt;&amp;gt; &amp;gt; retrieved using IndexReader.terms(Term startTerm).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; If you are interested in all terms from a specific field, position the
&lt;br&gt;&amp;gt; &amp;gt; TermEnum on the first possible term in this field (&amp;quot;&amp;quot;) and iterate until
&lt;br&gt;&amp;gt; &amp;gt; the
&lt;br&gt;&amp;gt; &amp;gt; field name changes. As terms in the TermEnum are first ordered by field
&lt;br&gt;&amp;gt; &amp;gt; name
&lt;br&gt;&amp;gt; &amp;gt; then by term text (in UTF-16 order), the loop would look like this:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; IndexReader reader = ...
&lt;br&gt;&amp;gt; &amp;gt; String field = ....
&lt;br&gt;&amp;gt; &amp;gt; Field = field.intern(); // important for the while loop
&lt;br&gt;&amp;gt; &amp;gt; TermEnum tenum = reader.terms(new Term(field,&amp;quot;&amp;quot;));
&lt;br&gt;&amp;gt; &amp;gt; try {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; do {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final Term term = tenum.term();
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (term==null || term.field()!=field) break;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final String termText = term.text();
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // do something with the termText
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; } while (tenum.next());
&lt;br&gt;&amp;gt; &amp;gt; } finally {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; tenum.close();
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----
&lt;br&gt;&amp;gt; &amp;gt; Uwe Schindler
&lt;br&gt;&amp;gt; &amp;gt; H.-H.-Meier-Allee 63, D-28213 Bremen
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.thetaphi.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thetaphi.de&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; eMail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uwe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; From: DHIVYA M [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dhivyakrishnan87@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent: Wednesday, November 25, 2009 8:06 AM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To: java user
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Subject: Need help regarding implementation of autosuggest using jquery
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi all,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Am using lucene 2.3.2 as a search engine in my e-paper site. So that i
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; want the user to search the news. I achieved that objective but now am
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; trying to implement autosuggest so that user can pick a choice from the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; drop down and no need of typing in the entire sentence or so.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I have download Jquery for this purpose and am trying to implement it.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The collections of data to refer for the suggestion is given in an
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; arraylist or jus with in a string.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; But for my application, i need to populate the suggestions with the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; indexed words available in the index file created during indexing
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; operation.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Can anyone give an idea to read the contents from the index file and
&lt;br&gt;&amp;gt; &amp;gt; make
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; it available as suggestions? or anyother idea to achieve this
&lt;br&gt;&amp;gt; objective?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks in advance,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Dhivya
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; The INTERNET now has a personality. YOURS! See your Yahoo!
&lt;br&gt;&amp;gt; &amp;gt; Homepage.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://in.yahoo.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://in.yahoo.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; The INTERNET now has a personality. YOURS! See your Yahoo!
&lt;br&gt;&amp;gt; Homepage.
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://in.yahoo.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://in.yahoo.com/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527706&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-help-regarding-implementation-of-autosuggest-using-jquery-tp26508381p26527706.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527663</id>
	<title>MergePolicy$MergeException CorruptIndexException in lucene2.4.1</title>
	<published>2009-11-26T02:55:14Z</published>
	<updated>2009-11-26T02:55:14Z</updated>
	<author>
		<name>jmwap</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Dont know if this should be here or in java-dev, posting to this one
&lt;br&gt;first. In one of our installations, we have encountered an exception:
&lt;br&gt;&lt;br&gt;Exception in thread &amp;quot;Lucene Merge Thread #0&amp;quot;
&lt;br&gt;org.apache.lucene.index.MergePolicy$MergeException:
&lt;br&gt;org.apache.lucene.index.CorruptIndexException: docs out of order
&lt;br&gt;(24658 &amp;lt;= 24658 )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:309)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:286)
&lt;br&gt;Caused by: org.apache.lucene.index.CorruptIndexException: docs out of
&lt;br&gt;order (24658 &amp;lt;= 24658 )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.lucene.index.SegmentMerger.appendPostings(SegmentMerger.java:641)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.lucene.index.SegmentMerger.mergeTermInfo(SegmentMerger.java:586)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:547)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:500)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:140)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4231)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3884)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:205)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:260)
&lt;br&gt;&lt;br&gt;I have investigated in the list and it looked like
&lt;br&gt;&lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1282&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1282&lt;/a&gt;. But we are using
&lt;br&gt;2.4.1, and
&lt;br&gt;C:\Documents and Settings\Administrator&amp;gt;java -version
&lt;br&gt;java version &amp;quot;1.6.0_14&amp;quot;
&lt;br&gt;Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
&lt;br&gt;Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode)
&lt;br&gt;&lt;br&gt;java process launched like this:
&lt;br&gt;java -server -Xmx1536m &amp;nbsp;...
&lt;br&gt;&lt;br&gt;So I understand this bug should not be happening??
&lt;br&gt;&lt;br&gt;any idea?
&lt;br&gt;thanks
&lt;br&gt;javi
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527663&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527663&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MergePolicy%24MergeException-CorruptIndexException-in-lucene2.4.1-tp26527663p26527663.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527549</id>
	<title>Re: Jira emails via Gmail</title>
	<published>2009-11-26T02:45:17Z</published>
	<updated>2009-11-26T02:45:17Z</updated>
	<author>
		<name>Michael McCandless-2</name>
	</author>
	<content type="html">JRA-3609 gets at yet another improvement I'd like to see in Jira,
&lt;br&gt;which is the ability to customize subject-line for each comment added
&lt;br&gt;to an issue.
&lt;br&gt;&lt;br&gt;EG I would have really liked to use the comment 'pathological GC
&lt;br&gt;behavior' for this post:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-2075?focusedCommentId=12782069&amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12782069&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-2075?focusedCommentId=12782069&amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12782069&lt;/a&gt;&lt;br&gt;&lt;br&gt;I posted the request to the Jira forums, here:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://forums.atlassian.com/thread.jspa?threadID=39074&amp;tstart=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://forums.atlassian.com/thread.jspa?threadID=39074&amp;tstart=0&lt;/a&gt;&lt;br&gt;&lt;br&gt;But, hideously (thanks to Gmail's overly simplistic thread grouping),
&lt;br&gt;JRA-3609 is completely at odds with fixing Gmail to group the Jira
&lt;br&gt;mails correctly. &amp;nbsp;Sigh.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 1:43 PM, Chris Hostetter
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527549&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hossman_lucene@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; : I signed up for a login, and voted for this issue.  If others did the same,
&lt;br&gt;&amp;gt; : that might help.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if you read the comments in the issue, there's really nothing that can be
&lt;br&gt;&amp;gt; fixed in Jira to make this work better -- jira already puts an
&lt;br&gt;&amp;gt; In-Reply-To header on all of the messages so that mail clients who do
&lt;br&gt;&amp;gt; threading &amp;quot;correctly&amp;quot; can use them -- the problem is that Gmail isn't
&lt;br&gt;&amp;gt; looking at those headers, and is instead focusing on subject.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; voting for JRA-12640 probably won't accomplish much, since the bug is in
&lt;br&gt;&amp;gt; GMail, not Jira -- but voting for JRA-3609 might help since then Jira
&lt;br&gt;&amp;gt; could be customized to keep the subject consistent for all types of
&lt;br&gt;&amp;gt; messages related to a single issue...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://jira.atlassian.com/browse/JRA-3609&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.atlassian.com/browse/JRA-3609&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ...or you could file a bug with GMail asking them to implement the
&lt;br&gt;&amp;gt; defacto standard algorithm for email message threading, using all of the
&lt;br&gt;&amp;gt; various headers that exist for this purpose...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.jwz.org/doc/threading.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jwz.org/doc/threading.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Hoss
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527549&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527549&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527549&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527549&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Jira-emails-via-Gmail-tp26510380p26527549.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527271</id>
	<title>[ANNOUNCE] Apache Lucene Java 3.0.0 released</title>
	<published>2009-11-26T02:24:26Z</published>
	<updated>2009-11-26T02:24:26Z</updated>
	<author>
		<name>Uwe Schindler</name>
	</author>
	<content type="html">Hello Lucene users, 
&lt;br&gt;&lt;br&gt;On behalf of the Lucene dev community (a growing community far larger than
&lt;br&gt;just the committers) I would like to announce the release of Lucene Java
&lt;br&gt;3.0.0:
&lt;br&gt;&lt;br&gt;The new version is mostly a cleanup release without any new features. All
&lt;br&gt;deprecations targeted to be removed in version 3.0 were removed. If you are
&lt;br&gt;upgrading from version 2.9.1 of Lucene, you have to fix all deprecation
&lt;br&gt;warnings in your code base to be able to recompile against this version.
&lt;br&gt;&lt;br&gt;This is the first Lucene release with Java 5 as a minimum requirement. The
&lt;br&gt;API was cleaned up to make use of Java 5's generics, varargs, enums, and
&lt;br&gt;autoboxing. New users of Lucene are advised to use this version for new
&lt;br&gt;developments, because it has a clean, type safe new API. Upgrading users can
&lt;br&gt;now remove unnecessary casts and add generics to their code, too. If you
&lt;br&gt;have not upgraded your installation to Java 5, please read the file
&lt;br&gt;JRE_VERSION_MIGRATION.txt (please note that this is not related only to this
&lt;br&gt;version of Lucene, it will also happen with any previous release when you
&lt;br&gt;upgrade your Java environment).
&lt;br&gt;&lt;br&gt;Lucene 3.0.0 has some changes regarding compressed fields: 2.9.0 already
&lt;br&gt;deprecated compressed fields; support for them was removed now. Lucene 3.0.0
&lt;br&gt;is still able to read indexes with compressed fields, but as soon as merges
&lt;br&gt;occur or the index is optimized, all compressed fields are decompressed and
&lt;br&gt;converted to Field.Store.YES. Because of this, indexes with compressed
&lt;br&gt;fields can suddenly get larger.
&lt;br&gt;&lt;br&gt;While we generally try and maintain full backwards compatibility between
&lt;br&gt;major versions, Lucene 3.0.0 has some minor breaks, mostly related to
&lt;br&gt;deprecation removal, pointed out in the 'Changes in backwards compatibility
&lt;br&gt;policy' section of CHANGES.txt. Notable are:
&lt;br&gt;&lt;br&gt;- IndexReader.open(Directory) now opens in read-only mode per default (this
&lt;br&gt;method was deprecated because of that in 2.9.X). The same occurs to
&lt;br&gt;IndexSearcher.
&lt;br&gt;&lt;br&gt;- Already started in 2.9, core TokenStreams are now made final to enforce
&lt;br&gt;the decorator pattern.
&lt;br&gt;&lt;br&gt;- If you interrupt an IndexWriter merge thread, IndexWriter now throws an
&lt;br&gt;unchecked ThreadInterruptedException that extends RuntimeException and
&lt;br&gt;clears the interrupt status.
&lt;br&gt;&lt;br&gt;&lt;br&gt;See core changes at
&lt;br&gt;&lt;a href=&quot;http://lucene.apache.org/java/3_0_0/changes/Changes.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lucene.apache.org/java/3_0_0/changes/Changes.html&lt;/a&gt;&lt;br&gt;and contrib changes at
&lt;br&gt;&lt;a href=&quot;http://lucene.apache.org/java/3_0_0/changes/Contrib-Changes.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lucene.apache.org/java/3_0_0/changes/Contrib-Changes.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Binary and source distributions are available at
&lt;br&gt;&lt;a href=&quot;http://www.apache.org/dyn/closer.cgi/lucene/java/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.apache.org/dyn/closer.cgi/lucene/java/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Lucene artifacts are also available in the Maven2 repository at
&lt;br&gt;&lt;a href=&quot;http://repo1.maven.org/maven2/org/apache/lucene/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2/org/apache/lucene/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----
&lt;br&gt;Uwe Schindler
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527271&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uschindler@...&lt;/a&gt; 
&lt;br&gt;Apache Lucene Java Committer
&lt;br&gt;Bremen, Germany
&lt;br&gt;&lt;a href=&quot;http://lucene.apache.org/java/docs/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lucene.apache.org/java/docs/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527271&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527271&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANNOUNCE--Apache-Lucene-Java-3.0.0-released-tp26527271p26527271.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527268</id>
	<title>[ANNOUNCE] Apache Lucene Java 3.0.0 released</title>
	<published>2009-11-26T02:24:26Z</published>
	<updated>2009-11-26T02:24:26Z</updated>
	<author>
		<name>Uwe Schindler</name>
	</author>
	<content type="html">Hello Lucene users, 
&lt;br&gt;&lt;br&gt;On behalf of the Lucene dev community (a growing community far larger than
&lt;br&gt;just the committers) I would like to announce the release of Lucene Java
&lt;br&gt;3.0.0:
&lt;br&gt;&lt;br&gt;The new version is mostly a cleanup release without any new features. All
&lt;br&gt;deprecations targeted to be removed in version 3.0 were removed. If you are
&lt;br&gt;upgrading from version 2.9.1 of Lucene, you have to fix all deprecation
&lt;br&gt;warnings in your code base to be able to recompile against this version.
&lt;br&gt;&lt;br&gt;This is the first Lucene release with Java 5 as a minimum requirement. The
&lt;br&gt;API was cleaned up to make use of Java 5's generics, varargs, enums, and
&lt;br&gt;autoboxing. New users of Lucene are advised to use this version for new
&lt;br&gt;developments, because it has a clean, type safe new API. Upgrading users can
&lt;br&gt;now remove unnecessary casts and add generics to their code, too. If you
&lt;br&gt;have not upgraded your installation to Java 5, please read the file
&lt;br&gt;JRE_VERSION_MIGRATION.txt (please note that this is not related only to this
&lt;br&gt;version of Lucene, it will also happen with any previous release when you
&lt;br&gt;upgrade your Java environment).
&lt;br&gt;&lt;br&gt;Lucene 3.0.0 has some changes regarding compressed fields: 2.9.0 already
&lt;br&gt;deprecated compressed fields; support for them was removed now. Lucene 3.0.0
&lt;br&gt;is still able to read indexes with compressed fields, but as soon as merges
&lt;br&gt;occur or the index is optimized, all compressed fields are decompressed and
&lt;br&gt;converted to Field.Store.YES. Because of this, indexes with compressed
&lt;br&gt;fields can suddenly get larger.
&lt;br&gt;&lt;br&gt;While we generally try and maintain full backwards compatibility between
&lt;br&gt;major versions, Lucene 3.0.0 has some minor breaks, mostly related to
&lt;br&gt;deprecation removal, pointed out in the 'Changes in backwards compatibility
&lt;br&gt;policy' section of CHANGES.txt. Notable are:
&lt;br&gt;&lt;br&gt;- IndexReader.open(Directory) now opens in read-only mode per default (this
&lt;br&gt;method was deprecated because of that in 2.9.X). The same occurs to
&lt;br&gt;IndexSearcher.
&lt;br&gt;&lt;br&gt;- Already started in 2.9, core TokenStreams are now made final to enforce
&lt;br&gt;the decorator pattern.
&lt;br&gt;&lt;br&gt;- If you interrupt an IndexWriter merge thread, IndexWriter now throws an
&lt;br&gt;unchecked ThreadInterruptedException that extends RuntimeException and
&lt;br&gt;clears the interrupt status.
&lt;br&gt;&lt;br&gt;&lt;br&gt;See core changes at
&lt;br&gt;&lt;a href=&quot;http://lucene.apache.org/java/3_0_0/changes/Changes.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lucene.apache.org/java/3_0_0/changes/Changes.html&lt;/a&gt;&lt;br&gt;and contrib changes at
&lt;br&gt;&lt;a href=&quot;http://lucene.apache.org/java/3_0_0/changes/Contrib-Changes.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lucene.apache.org/java/3_0_0/changes/Contrib-Changes.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Binary and source distributions are available at
&lt;br&gt;&lt;a href=&quot;http://www.apache.org/dyn/closer.cgi/lucene/java/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.apache.org/dyn/closer.cgi/lucene/java/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Lucene artifacts are also available in the Maven2 repository at
&lt;br&gt;&lt;a href=&quot;http://repo1.maven.org/maven2/org/apache/lucene/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2/org/apache/lucene/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----
&lt;br&gt;Uwe Schindler
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527268&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uschindler@...&lt;/a&gt; 
&lt;br&gt;Apache Lucene Java Committer
&lt;br&gt;Bremen, Germany
&lt;br&gt;&lt;a href=&quot;http://lucene.apache.org/java/docs/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lucene.apache.org/java/docs/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527268&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527268&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANNOUNCE--Apache-Lucene-Java-3.0.0-released-tp26527268p26527268.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527261</id>
	<title>Re: (LUCENE-1844) Speed up junit tests</title>
	<published>2009-11-26T02:24:06Z</published>
	<updated>2009-11-26T02:24:06Z</updated>
	<author>
		<name>Michael McCandless-2</name>
	</author>
	<content type="html">I still think there's value to faster tests, even if they don't become
&lt;br&gt;so fast as to enable &amp;quot;fully interactive testing&amp;quot;.
&lt;br&gt;&lt;br&gt;Plus, this is an ongoing goal with time, not a one-time event. &amp;nbsp;As we
&lt;br&gt;create tests we should generally try to maximize coverage and minimize
&lt;br&gt;CPU cost, as long as the effort is smallish.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 9:32 PM, Erick Erickson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527261&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;erickerickson@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I posted a rather long diatribe outlining why I think speed-ups
&lt;br&gt;&amp;gt; are a false goal for Lucene. Briefly, I'm convinced that as long
&lt;br&gt;&amp;gt; as the tests are run when Hudson builds Lucene, 99% of the
&lt;br&gt;&amp;gt; value of unit tests is realized. I suppose this implies that the
&lt;br&gt;&amp;gt; hard-core committers agree that as long as failed tests
&lt;br&gt;&amp;gt; are caught/corrected within a day things are fine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Although coming from a background where unit
&lt;br&gt;&amp;gt; tests are not always required, my viewpoint may be
&lt;br&gt;&amp;gt; suspect &amp;lt;G&amp;gt;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527261&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Erick@...&lt;/a&gt;....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 8:43 PM, Michael McCandless (JIRA)
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527261&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jira@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;    [
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782716#action_12782716&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782716#action_12782716&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Michael McCandless commented on LUCENE-1844:
&lt;br&gt;&amp;gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Will we also speed up back-compat tests?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Speed up junit tests
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; --------------------
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;                 Key: LUCENE-1844
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;                 URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;             Project: Lucene - Java
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;          Issue Type: Improvement
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            Reporter: Mark Miller
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;         Attachments: FastCnstScoreQTest.patch,
&lt;br&gt;&amp;gt;&amp;gt; hi_junit_test_runtimes.png, LUCENE-1844.patch
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; As Lucene grows, so does the number of JUnit tests. This is obviously a
&lt;br&gt;&amp;gt;&amp;gt; good thing, but it comes with longer and longer test times. Now that we also
&lt;br&gt;&amp;gt;&amp;gt; run back compat tests in a standard test run, this problem is essentially
&lt;br&gt;&amp;gt;&amp;gt; doubled.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; There are some ways this may get better, including running parallel
&lt;br&gt;&amp;gt;&amp;gt; tests. You will need the hardware to fully take advantage, but it should be
&lt;br&gt;&amp;gt;&amp;gt; a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the
&lt;br&gt;&amp;gt;&amp;gt; beginnings of something we might be able to count on soon. 4.6 was buggy,
&lt;br&gt;&amp;gt;&amp;gt; and 4.7 still doesn't come with nice ant integration. Parallel tests will
&lt;br&gt;&amp;gt;&amp;gt; come though.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Beyond parallel testing, I think we also need to concentrate on keeping
&lt;br&gt;&amp;gt;&amp;gt; our tests lean. We don't want to sacrifice coverage or quality, but I'm sure
&lt;br&gt;&amp;gt;&amp;gt; there is plenty of fat to skim.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I've started making a list of some of the longer tests - I think with
&lt;br&gt;&amp;gt;&amp;gt; some work we can make our tests much faster - and then with parallelization,
&lt;br&gt;&amp;gt;&amp;gt; I think we could see some really great gains.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; This message is automatically generated by JIRA.
&lt;br&gt;&amp;gt;&amp;gt; -
&lt;br&gt;&amp;gt;&amp;gt; You can reply to this email to add a comment to the issue online.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527261&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527261&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I posted a rather long diatribe outlining why I think speed-ups
&lt;br&gt;&amp;gt; are a false goal for Lucene. Briefly, I'm convinced that as long
&lt;br&gt;&amp;gt; as the tests are run when Hudson builds Lucene, 99% of the
&lt;br&gt;&amp;gt; value of unit tests is realized. I suppose this implies that the
&lt;br&gt;&amp;gt; hard-core committers agree that as long as failed tests
&lt;br&gt;&amp;gt; are caught/corrected within a day things are fine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Although coming from a background where unit
&lt;br&gt;&amp;gt; tests are not always required, my viewpoint may be
&lt;br&gt;&amp;gt; suspect &amp;lt;G&amp;gt;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527261&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Erick@...&lt;/a&gt;....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 8:43 PM, Michael McCandless (JIRA) &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527261&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jira@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;    [ &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782716#action_12782716&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782716#action_12782716&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Michael McCandless commented on LUCENE-1844:
&lt;br&gt;&amp;gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Will we also speed up back-compat tests?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Speed up junit tests
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; --------------------
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;                 Key: LUCENE-1844
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;                 URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-1844&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-1844&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;             Project: Lucene - Java
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;          Issue Type: Improvement
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;            Reporter: Mark Miller
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;         Attachments: FastCnstScoreQTest.patch, hi_junit_test_runtimes.png, LUCENE-1844.patch
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; This message is automatically generated by JIRA.
&lt;br&gt;&amp;gt;&amp;gt; -
&lt;br&gt;&amp;gt;&amp;gt; You can reply to this email to add a comment to the issue online.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527261&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527261&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527261&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527261&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-%28LUCENE-1844%29-Speed-up-junit-tests-tp26521109p26527261.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527172</id>
	<title>What about a Unicode support release</title>
	<published>2009-11-26T02:15:21Z</published>
	<updated>2009-11-26T02:15:21Z</updated>
	<author>
		<name>Simon Willnauer</name>
	</author>
	<content type="html">Since 3.0 is almost out of the door and development on Unicode support
&lt;br&gt;for supplementary characters has already started heavily (I like the
&lt;br&gt;word heavy - like uwe) I see a lot of stuff going on in the flex
&lt;br&gt;branch which seems to be a huge change that might take quite a while
&lt;br&gt;to finish / be releaseable. Other nice features like the automation
&lt;br&gt;stuff seems to be ready in the near future and together with the
&lt;br&gt;unicode support this appears to be one of the missing features in
&lt;br&gt;Lucene these days.
&lt;br&gt;I wonder if we should go forward and try to finish these features and
&lt;br&gt;proceed to 3.1. This will not slow down any other development as far
&lt;br&gt;as I can see and many people might be happy with those features.
&lt;br&gt;&lt;br&gt;does that seem to be feasible?
&lt;br&gt;&lt;br&gt;simon
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527172&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527172&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/What-about-a-Unicode-support-release-tp26527172p26527172.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527168</id>
	<title>Re: (LUCENE-1844) Speed up junit tests</title>
	<published>2009-11-26T02:14:55Z</published>
	<updated>2009-11-26T02:14:55Z</updated>
	<author>
		<name>Michael McCandless-2</name>
	</author>
	<content type="html">On Wed, Nov 25, 2009 at 8:29 PM, Erick Erickson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527168&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;erickerickson@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; IMHO there are other reasons to upgrade to junit4 besides
&lt;br&gt;&amp;gt; parallelization, there are some nice new capabilities. I
&lt;br&gt;&amp;gt; suppose the analogous question is &amp;quot;why upgrade to
&lt;br&gt;&amp;gt; Lucene 2.9?&amp;quot;
&lt;br&gt;&lt;br&gt;OK then I think we should do the upgrade, and separately think about
&lt;br&gt;how to take advantage of parallelization... I applied the patch for
&lt;br&gt;1084, and also carried it to the back-compat branch, and upgraded the
&lt;br&gt;junit jar in the lib dir to 4.7, and all tests run fine. &amp;nbsp;I also
&lt;br&gt;separately tested 2037, and it ran fine as well.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Especially since it's not a matter of upgrading. Junit3 tests run
&lt;br&gt;&amp;gt; just fine under junit4. I've tested after removing the
&lt;br&gt;&amp;gt; junit3 jar from lib, no problem. It even seems to run
&lt;br&gt;&amp;gt; slightly faster, which makes me wonder...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So really, we have the best of both worlds. No work involved in
&lt;br&gt;&amp;gt; using Junit4 with the current tests, but the ability to use the
&lt;br&gt;&amp;gt; new features of Junit4. Although I'm sure there'll be
&lt;br&gt;&amp;gt; *something* that bites us, I have great faith in Murphy.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Kinda reminds me of the Lucene drop-in replacement policy
&lt;br&gt;&amp;gt; &amp;lt;G&amp;gt;.......
&lt;/div&gt;&lt;br&gt;Heh ;)
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; But on the topic of parallelization: I'm not at all sure
&lt;br&gt;&amp;gt; it's worth the effort. As far as I can tell, it really only gets significant
&lt;br&gt;&amp;gt; gains when you have more cores to run with. It's not at all clear
&lt;br&gt;&amp;gt; to me how much time we spend doing I/O in the tests... very little
&lt;br&gt;&amp;gt; I suspect (although I confess I don't know for sure). And if we're
&lt;br&gt;&amp;gt; CPU bound anyway, parallelization doesn't help. Anybody know
&lt;br&gt;&amp;gt; for sure?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And say we did all the work to parallelize all the tests. And say that
&lt;br&gt;&amp;gt; instead of taking 25 minutes on my 3 year old MacBook Pro, we
&lt;br&gt;&amp;gt; got it down to 10 minutes. Who cares? 10 minutes is still too long
&lt;br&gt;&amp;gt; according to the eXtreme Programming (XP) folks, and I sympathize
&lt;br&gt;&amp;gt; with their point of view. Even though I did  spend some time trying
&lt;br&gt;&amp;gt; to trim some time.
&lt;/div&gt;&lt;br&gt;If you have enough cores, you can get decent speedups. &amp;nbsp;I have a scary
&lt;br&gt;python wrapper that runs the tests in parallel (runs 5 threads on an 8
&lt;br&gt;core machine... any more threads seems not to help), by letting each
&lt;br&gt;thread run a separate package, and sub-dividing the big (index,
&lt;br&gt;search) packages w/ a temporary patch. &amp;nbsp;Still it takes ~6.5 minutes to
&lt;br&gt;run the tests on my machine these days, which is still too long for
&lt;br&gt;interactive testing...
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The XP approach to unit testing is to run it almost every time you
&lt;br&gt;&amp;gt; change a line of code. OK, I'm exaggerating, but not by too
&lt;br&gt;&amp;gt; much with the die-hard XP folks. Even at 10 minutes, we can't
&lt;br&gt;&amp;gt; do that.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So,  I think the value for Lucene/SOLR comes *not* from running the
&lt;br&gt;&amp;gt; tests 15 times an hour. I think the real value comes from not
&lt;br&gt;&amp;gt; letting errors hide for days/weeks/months/releases. So I'm quite willing
&lt;br&gt;&amp;gt; to let the automated builds catch the unit test failures in unexpected
&lt;br&gt;&amp;gt; places in those instances where I don't run all of the tests before
&lt;br&gt;&amp;gt; a patch is committed. As long as we fix them as soon as they're
&lt;br&gt;&amp;gt; found.
&lt;/div&gt;&lt;br&gt;Kinda like what's the point of a cell phone having better battery life
&lt;br&gt;when it's already plenty for my daily usage yet not enough for 2 days
&lt;br&gt;usage, ie, I still have to charge it up, nightly.... it's quantized.
&lt;br&gt;Slightly faster tests won't really make a fundamental change in our
&lt;br&gt;development approach.
&lt;br&gt;&lt;br&gt;But, still, while this speedup won't make the tests fully interactive,
&lt;br&gt;it's still an important improvement. &amp;nbsp;I run the unit tests an insane
&lt;br&gt;number times, and bringing the time down even &amp;quot;just&amp;quot; by 2 minutes will
&lt;br&gt;make a real difference.
&lt;br&gt;&lt;br&gt;&amp;gt; OK, I'm rambling. I'm off for Thanksgiving, and my daughter is
&lt;br&gt;&amp;gt; at her in-laws until tomorrow (they're visiting from CA). So sue
&lt;br&gt;&amp;gt; me &amp;lt;G&amp;gt;.
&lt;br&gt;&lt;br&gt;Happy Thanksgiving!!
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527168&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527168&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-%28LUCENE-1844%29-Speed-up-junit-tests-tp26521109p26527168.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527156</id>
	<title>Re: To exit the while loop if match is found</title>
	<published>2009-11-26T02:13:54Z</published>
	<updated>2009-11-26T02:13:54Z</updated>
	<author>
		<name>Savvas-Andreas Moysidis</name>
	</author>
	<content type="html">hi,
&lt;br&gt;&lt;br&gt;maybe you could not break but rather collect them in an ordered collection.
&lt;br&gt;If it's a web app you are having you can then pass it up your view layer
&lt;br&gt;wrapped in json?
&lt;br&gt;&lt;br&gt;savvas
&lt;br&gt;&lt;br&gt;2009/11/26 DHIVYA M &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dhivyakrishnan87@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks for your suggested code sir.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But it displays only one word.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ex:
&lt;br&gt;&amp;gt; if the input is &amp;quot;z&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; actual output must be
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; zing
&lt;br&gt;&amp;gt; Zohar
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; but am getting zing alone
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- On Thu, 26/11/09, Uwe Schindler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uwe@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From: Uwe Schindler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uwe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: RE: Need help regarding implementation of autosuggest using jquery
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Date: Thursday, 26 November, 2009, 9:49 AM
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can fix this if you just create the initial term not with &amp;quot;&amp;quot;, instead
&lt;br&gt;&amp;gt; with your prefix:
&lt;br&gt;&amp;gt; TermEnum tenum = reader.terms(new Term(field,prefix));
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And inside the while loop just break out,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if (!termText.startsWith(prefix)) break;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----
&lt;br&gt;&amp;gt; Uwe Schindler
&lt;br&gt;&amp;gt; H.-H.-Meier-Allee 63, D-28213 Bremen
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.thetaphi.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thetaphi.de&lt;/a&gt;&lt;br&gt;&amp;gt; eMail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uwe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: DHIVYA M [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dhivyakrishnan87@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Thursday, November 26, 2009 10:39 AM
&lt;br&gt;&amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: Need help regarding implementation of autosuggest using
&lt;br&gt;&amp;gt; &amp;gt; jquery
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Sir,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Your suggestion was fantastic.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I tried the below mentioned code but it is showing me the entire result
&lt;br&gt;&amp;gt; of
&lt;br&gt;&amp;gt; &amp;gt; indexed words starting from the letter that i give as input.
&lt;br&gt;&amp;gt; &amp;gt; Ex:
&lt;br&gt;&amp;gt; &amp;gt; if i give &amp;quot;fo&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; am getting all the indexes from the word starting with fo upto words
&lt;br&gt;&amp;gt; &amp;gt; starting with z.
&lt;br&gt;&amp;gt; &amp;gt; i.e. it starts displaying from the word matching the search word and ends
&lt;br&gt;&amp;gt; &amp;gt; up with the last word available in the index file.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Kindly suggest me a solution for this problem
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks in advance,
&lt;br&gt;&amp;gt; &amp;gt; Dhivya
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --- On Wed, 25/11/09, Uwe Schindler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uwe@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; From: Uwe Schindler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uwe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: Need help regarding implementation of autosuggest using
&lt;br&gt;&amp;gt; &amp;gt; jquery
&lt;br&gt;&amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Date: Wednesday, 25 November, 2009, 9:54 AM
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi Dhivya,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; you can iterate all terms in the index using a TermEnum, that can be
&lt;br&gt;&amp;gt; &amp;gt; retrieved using IndexReader.terms(Term startTerm).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; If you are interested in all terms from a specific field, position the
&lt;br&gt;&amp;gt; &amp;gt; TermEnum on the first possible term in this field (&amp;quot;&amp;quot;) and iterate until
&lt;br&gt;&amp;gt; &amp;gt; the
&lt;br&gt;&amp;gt; &amp;gt; field name changes. As terms in the TermEnum are first ordered by field
&lt;br&gt;&amp;gt; &amp;gt; name
&lt;br&gt;&amp;gt; &amp;gt; then by term text (in UTF-16 order), the loop would look like this:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; IndexReader reader = ...
&lt;br&gt;&amp;gt; &amp;gt; String field = ....
&lt;br&gt;&amp;gt; &amp;gt; Field = field.intern(); // important for the while loop
&lt;br&gt;&amp;gt; &amp;gt; TermEnum tenum = reader.terms(new Term(field,&amp;quot;&amp;quot;));
&lt;br&gt;&amp;gt; &amp;gt; try {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; do {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final Term term = tenum.term();
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (term==null || term.field()!=field) break;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final String termText = term.text();
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // do something with the termText
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; } while (tenum.next());
&lt;br&gt;&amp;gt; &amp;gt; } finally {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; tenum.close();
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----
&lt;br&gt;&amp;gt; &amp;gt; Uwe Schindler
&lt;br&gt;&amp;gt; &amp;gt; H.-H.-Meier-Allee 63, D-28213 Bremen
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.thetaphi.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thetaphi.de&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; eMail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uwe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; From: DHIVYA M [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dhivyakrishnan87@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent: Wednesday, November 25, 2009 8:06 AM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To: java user
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Subject: Need help regarding implementation of autosuggest using jquery
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi all,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Am using lucene 2.3.2 as a search engine in my e-paper site. So that i
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; want the user to search the news. I achieved that objective but now am
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; trying to implement autosuggest so that user can pick a choice from the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; drop down and no need of typing in the entire sentence or so.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I have download Jquery for this purpose and am trying to implement it.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The collections of data to refer for the suggestion is given in an
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; arraylist or jus with in a string.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; But for my application, i need to populate the suggestions with the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; indexed words available in the index file created during indexing
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; operation.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Can anyone give an idea to read the contents from the index file and
&lt;br&gt;&amp;gt; &amp;gt; make
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; it available as suggestions? or anyother idea to achieve this
&lt;br&gt;&amp;gt; objective?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks in advance,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Dhivya
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; The INTERNET now has a personality. YOURS! See your Yahoo!
&lt;br&gt;&amp;gt; &amp;gt; Homepage.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://in.yahoo.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://in.yahoo.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; The INTERNET now has a personality. YOURS! See your Yahoo!
&lt;br&gt;&amp;gt; Homepage.
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://in.yahoo.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://in.yahoo.com/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527156&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://in.yahoo.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://in.yahoo.com/&lt;/a&gt;&lt;br&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-help-regarding-implementation-of-autosuggest-using-jquery-tp26508381p26527156.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527057</id>
	<title>[jira] Commented: (LUCENE-2037) Allow Junit4 tests in our environment.</title>
	<published>2009-11-26T02:05:39Z</published>
	<updated>2009-11-26T02:05:39Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-2037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782823#action_12782823&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-2037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782823#action_12782823&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Michael McCandless commented on LUCENE-2037:
&lt;br&gt;--------------------------------------------
&lt;br&gt;&lt;br&gt;Can we, for this issue, focus on not altering what's tested, ie, simply cutover to juni4? &amp;nbsp;And then open new issues for, eg, parameterizing tests across different Versions? &amp;nbsp;If we do that, then Erick if you post your latest patch (that cuts over LocalizedTestCase -&amp;gt; new junit4 capabilities), then is that committable?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Allow Junit4 tests in our environment.
&lt;br&gt;&amp;gt; --------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: LUCENE-2037
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-2037&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-2037&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Lucene - Java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Other
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Development
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Erick Erickson
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Erick Erickson
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 3.1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: junit-4.7.jar, LUCENE-2037.patch
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 8h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 8h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now that we're dropping Java 1.4 compatibility for 3.0, we can incorporate Junit4 in testing. Junit3 and junit4 tests can coexist, so no tests should have to be rewritten. We should start this for the 3.1 release so we can get a clean 3.0 out smoothly.
&lt;br&gt;&amp;gt; It's probably worthwhile to convert a small set of tests as an exemplar.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527057&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527057&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Developer-f46.html&quot; embed=&quot;fixTarget[46]&quot; target=&quot;_top&quot; &gt;Lucene - Java Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28LUCENE-2037%29-Allow-Junit4-tests-in-our-environment.-tp26225159p26527057.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526958</id>
	<title>Re: Is Lucene a good choice for PB scale mailbox search?</title>
	<published>2009-11-26T01:57:18Z</published>
	<updated>2009-11-26T01:57:18Z</updated>
	<author>
		<name>Ian Lea</name>
	</author>
	<content type="html">If you are planning on using lucene only for searching then you don't
&lt;br&gt;need to store much data at all - just the message id or whatever you
&lt;br&gt;use to identify messages. &amp;nbsp;And there won't be much point in
&lt;br&gt;compressing that.
&lt;br&gt;&lt;br&gt;If on the other hand you plan on storing data in lucene, perhaps for
&lt;br&gt;displaying hits on a web page, you might want to compress it. &amp;nbsp;That
&lt;br&gt;will save some space but at the cost of some performance at indexing
&lt;br&gt;and retrieval time. &amp;nbsp;If you are storing, say, From:, To: and Subject:
&lt;br&gt;for display in search results and message body only displayed when
&lt;br&gt;they want to view the message, you could leave the first three
&lt;br&gt;uncompressed and compress the message body.
&lt;br&gt;&lt;br&gt;Personally, I only use compression in indexes storing large fields but
&lt;br&gt;with low search/retrieval rate. &amp;nbsp;But my indexes are only a few Gb in
&lt;br&gt;size.
&lt;br&gt;&lt;br&gt;Lucene's handling of compressed fields is changing in 3.0 - see the
&lt;br&gt;release notes or 2.9 javadocs for Field.Store.html#COMPRESS
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Ian.
&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 1:34 AM, fulin tang &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526958&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tangfulin@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks all for the good suggestions !
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But any idea of the storage? How can we make the indexes as small as possible?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We know compressing is the only way, but when and where to compress is
&lt;br&gt;&amp;gt; best for search?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks all again!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/11/24 Kay Kay &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526958&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kaykay.unique@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; fulin tang wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; We are going to add full-text search for our mailbox service .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The problem is we have more than 1 PB mails there , and obviously we
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; don't want to add another PB storage for search service , so we hope
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the index data will be small enough for storage while the search keeps
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; fast .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The lucky is that every user just search with mails of their own , so
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; we can split the data into a lot of indexes instead of keeping them in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; a big one .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If it is going to be sharded by the 'To' or 'Cc' list - then potentially the
&lt;br&gt;&amp;gt;&amp;gt; mail information is going to be duplicated proportional to the number of
&lt;br&gt;&amp;gt;&amp;gt; people in an email thread. Selecting some other dimension like time, for
&lt;br&gt;&amp;gt;&amp;gt; sharding &amp;nbsp;might be useful to begin with.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So, after all these concerns , &amp;nbsp;the question is , is lucene a good
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; choice for this ? or which is the right way to do this ? Does anyone
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; have done this &amp;nbsp;before ?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; With PB of storage - check out solr sharding / katta for prior work in this
&lt;br&gt;&amp;gt;&amp;gt; arena.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; All opinions and comments are welcome !
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; fulin
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526958&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526958&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; 梦的开始挣扎于城市的边缘
&lt;br&gt;&amp;gt; 心的远方执着在脚步的瞬间
&lt;br&gt;&amp;gt; 我的宿命埋藏了寂寞的永远
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526958&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526958&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526958&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526958&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;java-user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Lucene---Java-Users-f45.html&quot; embed=&quot;fixTarget[45]&quot; target=&quot;_top&quot; &gt;Lucene - Java Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-Lucene-a-good-choice-for-PB-scale-mailbox-search--tp26489648p26526958.html" />
</entry>

</feed>
