[ 
https://issues.apache.org/jira/browse/LUCENENET-345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839286#action_12839286
 ] 

Digy commented on LUCENENET-345:
--------------------------------

Sorry for disturbance  but
{code}
if (this.Target != null && other.Target != null)
{
   return this.Target.Equals(other.Target);
}
{code}
may fail, since this.Target in "if" can turn to null before return-statement is 
executed. That would result in NullReferenceException.
You have to make hard refs to "Target"s before using them.

DIGY


> [Contrib] Extensions
> --------------------
>
>                 Key: LUCENENET-345
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-345
>             Project: Lucene.Net
>          Issue Type: New Feature
>            Reporter: Michael Garski
>         Attachments: LUCENENET-345 Extensions.patch, LUCENENET-345 V2.patch
>
>
> I have created a few generic extensions to Lucene.Net that I use quiet a bit. 
>  It's packaged up as a VS2008 solution with two projects.  The test project 
> is a Visual Studio test project as opposed to NUnit, and that can be changed. 
>  Here is a summary of the contents:
> FieldEnumerators : provides foreach syntax support when enumerating over all 
> of the terms in the index.
> TermVectorEnumerator : provides foreach syntax to allow for enumerating over 
> all of the term vectors in an index.
> BooleanFilter : combine multiple query filters in various logical 
> combinations.
> TermsFilter : creates a filter from several terms as a logical OR.
> SegmentCache : a generic cache that works with the segment-level searching in 
> Lucene 2.9 to cache any data at the segment level in the same manner as the 
> field cache and  CachingWrapperFilter which  I've used for caching aggregate 
> data on the documents in a segment for use in diagnostics and for caching 
> TermVectors.  
> SegmentsGenCommit : adds the ability to open an index from the version 
> specified in the segments file as opposed to inferring the version from the 
> files in the index directory.
> Refer to the documentation comments and unit tests for how to use the items.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to