lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight TextFragment.java
Date Wed, 05 May 2004 19:43:01 GMT
ehatcher    2004/05/05 12:43:01

  Modified:    contributions/highlighter/src/java/org/apache/lucene/search/highlight
                        TextFragment.java
  Log:
  patch from Mark, while his account creation is pending
  
  Revision  Changes    Path
  1.2       +6 -5      jakarta-lucene-sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/TextFragment.java
  
  Index: TextFragment.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/TextFragment.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TextFragment.java	9 Apr 2004 00:34:31 -0000	1.1
  +++ TextFragment.java	5 May 2004 19:43:00 -0000	1.2
  @@ -46,11 +46,12 @@
   	/**
   	 * @param frag2 Fragment to be merged into this one
   	 */
  -	public void merge(TextFragment frag2)
  -	{
  -		textEndPos = frag2.textEndPos;
  -	}
  -	/**
  +  public void merge(TextFragment frag2)
  +  {
  +    textEndPos = frag2.textEndPos;
  +    score=Math.max(score,frag2.score);
  +  }
  +  /**
   	 * @param fragment 
   	 * @return true if this fragment follows the one passed
   	 */
  
  
  

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


Mime
View raw message