You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Artem <ab...@gmail.com> on 2007/01/07 09:21:37 UTC

want to commit -> new JIRA account?

Dear all,

I want to commit some code to Lucene and I guess I need a Jira account for that,
can anybody help?

It's a small addition to Lucene that significantly lowers memory consumption and
improves performance for sorted searches with frequent index updates scenario.
This solution supports only single-field sorting currently (which quite satisfy
my needs).

I faced a memory/time consumption problem on sorting in Lucene back in
April. With a help of this list's experts I came to solution which I
like: documents from the sorting set (instead of given the field's
values from the whole index) are lazy-cached in a WeakHashMap so the
cached items are candidates for GC. 

This is not quite a patch - no Lucene classes are changed, just a few of new
classes are added.

LazyCachingSortFactory class have an example of use in its header
comments, I duplicate it here:

 * An example of use:
 *  ...
 * //indexSearcher's reader will be passed to CachingDocFieldComparatorSource eventually
 * IndexSearcher indexSearcher = new IndexSearcher(CachingIndexReader.decorateIfNeeded(IndexReader.open(getIndexDir())));
 *
 * hits = indexSearcher.search(query, LazyCachingSortFactory.create(listSorting.getSortFieldName(), listSorting.isSortDescending()));

I successfully use this approach for about half a year at my open-source project, sharehound
(http://sharehound.sourceforge.net). The code can be now reached by a
CVS browser, it's 5 classes in subdirectories of
http://sharehound.cvs.sourceforge.net/sharehound/jNetCrawler/src/java/org/apache/lucene/.

They (both classes, as a part of lucene-lazycaching.jar, and sources) can also
be downloaded with the latest (1.1.7 alpha) sharehound release zip
file. 

-- 
With best regards,
 Artem                          mailto:abublic@gmail.com


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: want to commit -> new JIRA account?

Posted by Grant Ingersoll <gr...@gmail.com>.
Hi Artem,

You should be able to create a JIRA account from the http:// 
issues.apache.org/jira page.  See http://wiki.apache.org/jakarta- 
lucene/HowToContribute for information on how to contribute.

Thanks,
Grant

On Jan 7, 2007, at 3:21 AM, Artem wrote:

> Dear all,
>
> I want to commit some code to Lucene and I guess I need a Jira  
> account for that,
> can anybody help?
>
> It's a small addition to Lucene that significantly lowers memory  
> consumption and
> improves performance for sorted searches with frequent index  
> updates scenario.
> This solution supports only single-field sorting currently (which  
> quite satisfy
> my needs).
>
> I faced a memory/time consumption problem on sorting in Lucene back in
> April. With a help of this list's experts I came to solution which I
> like: documents from the sorting set (instead of given the field's
> values from the whole index) are lazy-cached in a WeakHashMap so the
> cached items are candidates for GC.
>
> This is not quite a patch - no Lucene classes are changed, just a  
> few of new
> classes are added.
>
> LazyCachingSortFactory class have an example of use in its header
> comments, I duplicate it here:
>
>  * An example of use:
>  *  ...
>  * //indexSearcher's reader will be passed to  
> CachingDocFieldComparatorSource eventually
>  * IndexSearcher indexSearcher = new IndexSearcher 
> (CachingIndexReader.decorateIfNeeded(IndexReader.open(getIndexDir 
> ())));
>  *
>  * hits = indexSearcher.search(query, LazyCachingSortFactory.create 
> (listSorting.getSortFieldName(), listSorting.isSortDescending()));
>
> I successfully use this approach for about half a year at my open- 
> source project, sharehound
> (http://sharehound.sourceforge.net). The code can be now reached by a
> CVS browser, it's 5 classes in subdirectories of
> http://sharehound.cvs.sourceforge.net/sharehound/jNetCrawler/src/ 
> java/org/apache/lucene/.
>
> They (both classes, as a part of lucene-lazycaching.jar, and  
> sources) can also
> be downloaded with the latest (1.1.7 alpha) sharehound release zip
> file.
>
> -- 
> With best regards,
>  Artem                          mailto:abublic@gmail.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>

------------------------------------------------------
Grant Ingersoll
http://www.grantingersoll.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: want to commit -> new JIRA account?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Jan 7, 2007, at 3:21 AM, Artem wrote:
> I want to commit some code to Lucene and I guess I need a Jira  
> account for that,
> can anybody help?

You can create a JIRA account yourself, but that does not give you  
commit rights to Lucene's Subversion repository.  Commit rights are  
restricted to those that have been voted in per the rules of the  
Lucene PMC (Project Management Committee).  A JIRA account allows you  
to post patches to the issue tracker for the community to review, and  
a committer can take it from there to commit it if deemed appropriate.


> This is not quite a patch - no Lucene classes are changed, just a  
> few of new
> classes are added.
>
> LazyCachingSortFactory class have an example of use in its header
> comments, I duplicate it here:
>
>  * An example of use:
>  *  ...
>  * //indexSearcher's reader will be passed to  
> CachingDocFieldComparatorSource eventually
>  * IndexSearcher indexSearcher = new IndexSearcher 
> (CachingIndexReader.decorateIfNeeded(IndexReader.open(getIndexDir 
> ())));
>  *
>  * hits = indexSearcher.search(query, LazyCachingSortFactory.create 
> (listSorting.getSortFieldName(), listSorting.isSortDescending()));
>
> I successfully use this approach for about half a year at my open- 
> source project, sharehound
> (http://sharehound.sourceforge.net). The code can be now reached by a
> CVS browser, it's 5 classes in subdirectories of
> http://sharehound.cvs.sourceforge.net/sharehound/jNetCrawler/src/ 
> java/org/apache/lucene/.
>
> They (both classes, as a part of lucene-lazycaching.jar, and  
> sources) can also
> be downloaded with the latest (1.1.7 alpha) sharehound release zip
> file.

I recommend you attach a patch file (after doing a local "svn add"  
and "svn diff > patchfile.txt") to a new JIRA issue, assigning the  
Apache Software License to your code, and include test cases that  
exercise the code.  That'll be the best way to get your code reviewed  
by a Lucene committer and possibly added.

Thanks for your contribution!

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org