/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/ |
H A D | WeightedTerm.java | 19 /** Lightweight class to hold term and a weight value used for scoring this term 23 float weight; // multiplier field in class:WeightedTerm 25 public WeightedTerm (float weight,String term) argument 27 this.weight=weight; 41 * @return the weight associated with this term 45 return weight; 57 * @param weight the weight associated with this term 59 public void setWeight(float weight) argument [all...] |
H A D | WeightedSpanTerm.java | 26 * Lightweight class to hold term, weight, and positions used for scoring this 34 * @param weight 37 public WeightedSpanTerm(float weight, String term) { argument 38 super(weight, term); 43 * @param weight 47 public WeightedSpanTerm(float weight, String term, boolean positionSensitive) { argument 48 super(weight, term);
|
/lucene-3.6.0/lucene/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/ |
H A D | PathNode.java | 28 public double weight; field in class:PathNode 33 if (weight < pn.weight) 35 else if (weight == pn.weight) 50 temp = Double.doubleToLongBits(weight); 69 if (Double.doubleToLongBits(weight) != Double 70 .doubleToLongBits(other.weight))
|
H A D | SegToken.java | 52 public int weight; field in class:SegToken 66 * @param weight word frequency 68 public SegToken(char[] idArray, int start, int end, int wordType, int weight) { argument 73 this.weight = weight; 89 result = prime * result + weight; 114 if (weight != other.weight)
|
H A D | SegTokenPair.java | 40 public double weight; field in class:SegTokenPair 42 public SegTokenPair(char[] idArray, int from, int to, double weight) { argument 46 this.weight = weight; 62 temp = Double.doubleToLongBits(weight); 85 if (Double.doubleToLongBits(weight) != Double 86 .doubleToLongBits(other.weight))
|
H A D | BiSegGraph.java | 55 double oneWordFreq, weight, tinyDouble = 1.0 / Utility.MAX_FREQUENCE; 71 oneWordFreq = t1.weight; 101 weight = -Math 109 t2.index, weight); 173 zeroPath.weight = 0; 177 double weight; 183 weight = edge.weight; 185 if (preNode.weight + weight < minWeigh [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
H A D | Scorer.java | 44 protected final Weight weight; field in class:Scorer 48 * @param weight The scorers <code>Weight</code>. 50 protected Scorer(Weight weight) { argument 51 this(null, weight); 66 * @param weight The scorers <code>Weight</code> 70 protected Scorer(Similarity similarity, Weight weight) { argument 72 this.weight = weight; 203 if (weight == null) 206 final Query q = weight [all...] |
H A D | Searchable.java | 63 * @param weight 71 void search(Weight weight, Filter filter, Collector collector) throws IOException; argument 104 TopDocs search(Weight weight, Filter filter, int n) throws IOException; argument 145 * <code>weight</code>. 154 Explanation explain(Weight weight, int doc) throws IOException; argument 166 TopFieldDocs search(Weight weight, Filter filter, int n, Sort sort) argument
|
H A D | QueryWrapperFilter.java | 47 final Weight weight = new IndexSearcher(reader).createNormalizedWeight(query); 51 return weight.scorer(reader, true, false);
|
H A D | Searcher.java | 160 * Creates a normalized weight for a top-level {@link Query}. 168 Weight weight = query.createWeight(this); 169 float sum = weight.sumOfSquaredWeights(); 174 weight.normalize(norm); 175 return weight; 179 * Expert: Creates a normalized weight for a top-level {@link Query}. 200 abstract public void search(Weight weight, Filter filter, Collector results) throws IOException; argument 204 abstract public TopDocs search(Weight weight, Filter filter, int n) throws IOException; argument 208 abstract public Explanation explain(Weight weight, int doc) throws IOException; argument 209 abstract public TopFieldDocs search(Weight weight, Filte argument [all...] |
H A D | MultiSearcher.java | 115 public Explanation explain(Weight weight,int doc) { argument 120 public void search(Weight weight, Filter filter, Collector results) { argument 125 public TopDocs search(Weight weight,Filter filter,int n) { argument 130 public TopFieldDocs search(Weight weight,Filter filter,int n,Sort sort) { argument 207 public TopDocs search(Weight weight, Filter filter, int nDocs) argument 216 searchables[i], weight, filter, nDocs, hq, i, starts).call(); 230 public TopFieldDocs search (Weight weight, Filter filter, int n, Sort sort) throws IOException { argument 239 searchables[i], weight, filter, n, hq, sort, i, starts).call(); 253 public void search(Weight weight, Filter filter, final Collector collector) argument 278 searchables[i].search(weight, filte 292 explain(Weight weight, int doc) argument 361 private final Weight weight; field in class:MultiSearcher.MultiSearcherCallableNoSort 368 MultiSearcherCallableNoSort(Lock lock, Searchable searchable, Weight weight, Filter filter, int nDocs, HitQueue hq, int i, int[] starts) argument 406 private final Weight weight; field in class:MultiSearcher.MultiSearcherCallableWithSort 414 MultiSearcherCallableWithSort(Lock lock, Searchable searchable, Weight weight, Filter filter, int nDocs, FieldDocSortedHitQueue hq, Sort sort, int i, int[] starts) argument [all...] |
H A D | PhraseScorer.java | 40 PhraseScorer(Weight weight, PhraseQuery.PostingsAndFreq[] postings, argument 42 super(similarity, weight); 44 this.value = weight.getValue(); 133 public String toString() { return "scorer(" + weight + ")"; }
|
H A D | IndexSearcher.java | 425 public TopDocs search(Weight weight, Filter filter, int nDocs) throws IOException { argument 426 return search(weight, filter, null, nDocs); 436 protected TopDocs search(Weight weight, Filter filter, ScoreDoc after, int nDocs) throws IOException { argument 444 TopScoreDocCollector collector = TopScoreDocCollector.create(nDocs, after, !weight.scoresDocsOutOfOrder()); 445 search(weight, filter, collector); 454 new MultiSearcherCallableNoSort(lock, subSearchers[i], weight, filter, after, nDocs, hq)); 485 public TopFieldDocs search(Weight weight, Filter filter, argument 487 return search(weight, filter, nDocs, sort, true); 501 protected TopFieldDocs search(Weight weight, Filter filter, int nDocs, argument 516 fillFields, fieldSortDoTrackScores, fieldSortDoMaxScore, !weight 568 search(Weight weight, Filter filter, Collector collector) argument 624 explain(Weight weight, int doc) argument 674 private final Weight weight; field in class:IndexSearcher.MultiSearcherCallableNoSort 680 MultiSearcherCallableNoSort(Lock lock, IndexSearcher searchable, Weight weight, Filter filter, ScoreDoc after, int nDocs, HitQueue hq) argument 725 private final Weight weight; field in class:IndexSearcher.MultiSearcherCallableWithSort 731 MultiSearcherCallableWithSort(Lock lock, IndexSearcher searchable, Weight weight, Filter filter, int nDocs, TopFieldCollector hq, Sort sort) argument [all...] |
H A D | ConjunctionScorer.java | 32 public ConjunctionScorer(Weight weight, float coord, Collection<Scorer> scorers) throws IOException { argument 33 this(weight, coord, scorers.toArray(new Scorer[scorers.size()])); 36 public ConjunctionScorer(Weight weight, float coord, Scorer... scorers) throws IOException { argument 37 super(weight);
|
H A D | DisjunctionSumScorer.java | 61 * @param weight The weight to be used. 71 public DisjunctionSumScorer(Weight weight, List<Scorer> subScorers, int minimumNrMatchers) throws IOException { argument 72 super(weight); 92 public DisjunctionSumScorer(Weight weight, List<Scorer> subScorers) throws IOException { argument 93 this(weight, subScorers, 1);
|
H A D | TermScorer.java | 44 * @param weight 45 * The weight of the <code>Term</code> in the query. 54 TermScorer(Weight weight, TermDocs td, Similarity similarity, byte[] norms) { argument 55 super(similarity, weight); 59 this.weightValue = weight.getValue(); 128 float raw = // compute tf(f)*weight 170 public String toString() { return "scorer(" + weight + ")"; }
|
H A D | BooleanScorer2.java | 70 * @param weight 86 public BooleanScorer2(Weight weight, boolean disableCoord, Similarity similarity, int minNrShouldMatch, argument 88 super(weight); 113 super(scorer.weight); 149 return new DisjunctionSumScorer(weight, scorers, minNrShouldMatch) { 173 return new ConjunctionScorer(weight, disableCoord ? 1.0f : similarity.coord(requiredScorers.size(), requiredScorers.size()), requiredScorers) { 199 return new ConjunctionScorer(weight, disableCoord ? 1.0f : similarity.coord(2, 2), req1, req2); 271 : new DisjunctionSumScorer(weight, prohibitedScorers))); 326 final Query q = weight.getQuery();
|
/lucene-3.6.0/lucene/contrib/remote/src/java/org/apache/lucene/search/ |
H A D | RemoteSearchable.java | 51 public void search(Weight weight, Filter filter, Collector results) argument 53 local.search(weight, filter, results); 73 public TopDocs search(Weight weight, Filter filter, int n) throws IOException { argument 74 return local.search(weight, filter, n); 77 public TopFieldDocs search(Weight weight, Filter filter, int n, Sort sort) argument 79 return local.search (weight, filter, n, sort); 94 public Explanation explain(Weight weight, int doc) throws IOException { argument 95 return local.explain(weight, doc);
|
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/ |
H A D | TermFreqIterator.java | 27 * Interface for enumerating term,weight pairs. 31 public long weight(); method in interface:TermFreqIterator 44 public long weight() { method in class:TermFreqIterator.TermFreqIteratorWrapper
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/ |
H A D | SolrSortField.java | 30 public SortField weight(IndexSearcher searcher) throws IOException; method in interface:SolrSortField
|
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/query/ |
H A D | SrndQuery.java | 26 private float weight = (float) 1.0; field in class:SrndQuery 30 weight = w; /* as parsed from the query text */ 34 public float getWeight() { return weight; } 39 protected void weightToString(StringBuilder r) { /* append the weight part of a query */ 49 q.setBoost(getWeight() * q.getBoost()); /* weight may be at any level in a SrndQuery */
|
H A D | SpanNearClauseFactory.java | 28 increase the weight of an existing one. 95 protected void addSpanQueryWeighted(SpanQuery sq, float weight) { argument 98 w = Float.valueOf(w.floatValue() + weight); 100 w = Float.valueOf(weight); 104 public void addTermWeighted(Term t, float weight) throws IOException { argument 107 addSpanQueryWeighted(stq, weight);
|
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/fst/ |
H A D | FSTLookup.java | 63 * <li>All terms in the input are preprended with a synthetic pseudo-character being the weight 64 * of that term. For example a term <code>abc</code> with a discretized weight equal '1' would 69 * arcs labeled with all possible weights. We cache all these arcs, highest-weight first.</li> 74 * <li>For each possible term weight encoded in the automaton (cached arcs from the root above), 81 * suggestion to the list of results (the weight of this suggestion is constant and equal to the 86 * we proceed to the next (smaller) weight leaving the root node and repeat the same 98 * list (even with by-weight sorting). 102 * of requested suggestions (because they are already presorted by weight on the root level 128 float weight; field in class:FSTLookup.Entry 132 this.weight 422 collect(List<LookupResult> res, int num, long weight, StringBuilder output, Arc<Object> arc) argument [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/spans/ |
H A D | SpanScorer.java | 40 protected SpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms) argument 42 super(similarity, weight); 45 this.value = weight.getValue();
|
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/ |
H A D | BufferingTermFreqIteratorWrapper.java | 46 freqs[freqIndex++] = source.weight(); 51 public long weight() { method in class:BufferingTermFreqIteratorWrapper
|