Searched defs:boost (Results 1 - 25 of 39) sorted by relevance

12

/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/
H A DBoostAttribute.java27 * attribute to define which boost a specific field should have when none is
36 public void setBoost(float boost); argument
H A DBoostAttributeImpl.java30 * attribute to define which boost a specific field should have when none is
53 public void setBoost(float boost) { argument
54 config.set(ConfigurationKeys.BOOST, boost);
92 return "<boostAttribute boost=" + getBoost() + "/>";
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DToStringUtils.java28 * for printing boost only if not 1.0
30 public static String boost(float boost) { argument
31 if (boost != 1.0f) {
32 return "^" + Float.toString(boost);
/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/
H A DBoostingQuery.java37 * multiplied by the supplied "boost" parameter, so this should be less than 1 to achieve a
44 private float boost; // the amount to boost by field in class:BoostingQuery
46 private Query context; // boost when matches too
48 public BoostingQuery(Query match, Query context, float boost) { argument
50 this.context = (Query)context.clone(); // clone before boost
51 this.boost = boost;
72 return boost; // multiply by boost
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestMatchAllDocsQuery.java105 // test parsable toString() with non default boost
125 private void addDoc(String text, IndexWriter iw, float boost) throws IOException { argument
128 f.setBoost(boost);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestMatchAllDocsQuery.java105 // test parsable toString() with non default boost
125 private void addDoc(String text, IndexWriter iw, float boost) throws IOException { argument
128 f.setBoost(boost);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DTermCollectingRewrite.java31 protected abstract void addClause(Q topLevel, Term term, float boost) throws IOException; argument
48 boolean collect(Term t, float boost) throws IOException; argument
H A DTopTermsRewrite.java59 public boolean collect(Term t, float boost) {
61 if (stQueue.size() >= maxSize && boost <= stQueue.peek().boost)
65 st.boost = boost;
78 addClause(q, st.term, query.getBoost() * st.boost); // add to query
102 public float boost; field in class:TopTermsRewrite.ScoreTerm
105 if (this.boost == other.boost)
108 return Float.compare(this.boost, othe
[all...]
H A DQuery.java50 private float boost = 1.0f; // query boost factor field in class:Query
52 /** Sets the boost for this query clause to <code>b</code>. Documents
56 public void setBoost(float b) { boost = b; }
58 /** Gets the boost for this clause. Documents matching
60 * multiplied by <code>b</code>. The boost is 1.0 by default.
62 public float getBoost() { return boost; }
222 result = prime * result + Float.floatToIntBits(boost);
235 if (Float.floatToIntBits(boost) != Float.floatToIntBits(other.boost))
[all...]
H A DConstantScoreAutoRewrite.java72 protected void addClause(BooleanQuery topLevel, Term term, float boost /*ignored*/) {
116 public boolean collect(Term t, float boost) throws IOException { argument
H A DMultiTermQuery.java81 * constant score equal to the query's boost.
122 * query's boost.
167 protected void addClause(BooleanQuery topLevel, Term term, float boost) { argument
169 tq.setBoost(boost);
177 * are only computed as the boost.
208 protected void addClause(BooleanQuery topLevel, Term term, float boost) { argument
210 q.setBoost(boost);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/
H A DBinaryField.java63 public Field createField(SchemaField field, Object val, float boost) { argument
88 f.setBoost(boost);
H A DPointType.java73 public Fieldable[] createFields(SchemaField field, String externalVal, float boost) { argument
86 f[i] = subField(field, i).createField(point[i], boost);
94 false, IndexOptions.DOCS_AND_FREQS_AND_POSITIONS, boost);
117 public Fieldable createField(SchemaField field, String externalVal, float boost) { argument
H A DTrieDateField.java119 public Fieldable createField(SchemaField field, String externalVal, float boost) { argument
120 return wrappedField.createField(field, externalVal, boost);
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/vectorhighlight/
H A DFieldPhraseList.java112 float boost; // query boost field in class:FieldPhraseList.WeightedPhraseInfo
115 public WeightedPhraseInfo( LinkedList<TermInfo> terms, float boost ){
116 this( terms, boost, 0 );
119 public WeightedPhraseInfo( LinkedList<TermInfo> terms, float boost, int number ){ argument
120 this.boost = boost;
170 sb.append( text ).append( '(' ).append( boost ).append( ")(" );
H A DFieldQuery.java185 private void checkOverlap( Collection<Query> expandQueries, Term[] src, Term[] dest, int slop, float boost ){
205 pq.setBoost( boost );
345 float boost; // valid if terminal == true field in class:FieldQuery.QueryPhraseMap
354 void addTerm( Term term, float boost ){
356 map.markTerminal( boost );
391 private void markTerminal( float boost ){
392 markTerminal( 0, boost );
395 private void markTerminal( int slop, float boost ){
398 this.boost = boost;
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/query/
H A DDistanceQuery.java94 float boost,
117 r.setBoost(boost);
91 getSpanNearQuery( IndexReader reader, String fieldName, float boost, BasicQueryFactory qf) argument
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/
H A DDocument.java41 private float boost = 1.0f; field in class:Document
47 /** Sets a boost factor for hits on any field of this document. This value
54 * boost for the fields of this document.
58 public void setBoost(float boost) { argument
59 this.boost = boost;
62 /** Returns, at indexing time, the boost factor as set by {@link #setBoost(float)}.
66 * returns 1. This however does not mean that the boost value set at indexing
75 return boost;
H A DFieldable.java39 /** Sets the boost factor hits on this field. This value will be
43 * <p>The boost is multiplied by {@link org.apache.lucene.document.Document#getBoost()} of the document
49 * FieldInvertState)} method, the boost value is multiplied
60 void setBoost(float boost); argument
62 /** Returns the boost factor for hits for this field.
H A DAbstractField.java44 protected float boost = 1.0f; field in class:AbstractField
72 /** Sets the boost factor hits on this field. This value will be
76 * <p>The boost is multiplied by {@link org.apache.lucene.document.Document#getBoost()} of the document
82 * FieldInvertState)} method, the boost value is multiplied
94 public void setBoost(float boost) { argument
95 this.boost = boost;
98 /** Returns the boost factor for hits for this field.
110 return boost;
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DFieldInvertState.java35 float boost; field in class:FieldInvertState
41 public FieldInvertState(int position, int length, int numOverlap, int offset, float boost) { argument
46 this.boost = boost;
50 * Re-initialize the state, using this boost value.
51 * @param docBoost boost value to use.
60 boost = docBoost;
105 * Get boost value. This is the cumulative product of
106 * document boost and field boost fo
114 setBoost(float boost) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/update/
H A DDocumentBuilder.java53 protected void addSingleField(SchemaField sfield, String val, float boost) { argument
60 Fieldable[] fields = sfield.createFields(val, boost);
75 Fieldable field = sfield.createField(val, boost);
94 * @param boost The boost factor
100 public void addField(SchemaField sfield, String val, float boost) { argument
101 addSingleField(sfield,val,boost);
118 * Add the Field and value to the document with the specified boost, invoking the copyField mechanism
121 * @param boost The boost
128 addField(String name, String val, float boost) argument
149 setBoost(float boost) argument
196 addField(Document doc, SchemaField field, String val, float boost) argument
[all...]
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/
H A DSolrInputField.java33 float boost = 1.0f; field in class:SolrInputField
47 boost = b;
77 boost *= b;
159 return boost;
162 public void setBoost(float boost) { argument
163 this.boost = boost;
200 return name + "("+boost+")={" + value + "}";
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/
H A DTestShingleMatrixFilter.java455 private void assertNext(TokenStream ts, String text, int positionIncrement, float boost, int startOffset, int endOffset) throws IOException { argument
464 assertEquals(boost, payloadAtt.getPayload() == null ? 1f : PayloadHelper.decodeFloat(payloadAtt.getPayload().getData()), 0);
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedIndexWriter.java247 invertState.setBoost(eFieldTermDocInfoFactoriesByTermText.getKey().boost * document.getDocument().getBoost());
494 // todo: fixme: multiple fields with the same name does not mean field boost += more boost.
495 fieldSetting.boost *= field.getBoost();
707 float boost = 1; field in class:InstantiatedIndexWriter.FieldSetting

Completed in 80 milliseconds

12