Clover Coverage Report
Coverage timestamp: Fri May 9 2008 10:54:27 EST
../../../../img/srcFileCovDistChart9.png 37% of files have more coverage
108   299   38   5.4
38   184   0.35   10
20     1.9  
2    
 
  PhraseQuery       Line # 33 44 22 82.9% 0.82894737
  PhraseQuery.PhraseWeight       Line # 106 64 16 90% 0.9
 
  (43)
 
1    package org.apache.lucene.search;
2   
3    /**
4    * Copyright 2004 The Apache Software Foundation
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10    * http://www.apache.org/licenses/LICENSE-2.0
11    *
12    * Unless required by applicable law or agreed to in writing, software
13    * distributed under the License is distributed on an "AS IS" BASIS,
14    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15    * See the License for the specific language governing permissions and
16    * limitations under the License.
17    */
18   
19    import java.io.IOException;
20    import java.util.Set;
21    import java.util.Vector;
22   
23    import org.apache.lucene.index.Term;
24    import org.apache.lucene.index.TermPositions;
25    import org.apache.lucene.index.IndexReader;
26    import org.apache.lucene.util.ToStringUtils;
27   
28    /** A Query that matches documents containing a particular sequence of terms.
29    * A PhraseQuery is built by QueryParser for input like <code>"new york"</code>.
30    *
31    * <p>This query may be combined with other terms or queries with a {@link BooleanQuery}.
32    */
 
33    public class PhraseQuery extends Query {
34    private String field;
35    private Vector terms = new Vector();
36    private Vector positions = new Vector();
37    private int slop = 0;
38   
39    /** Constructs an empty phrase query. */