lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucene-...@jakarta.apache.org
Subject [Jakarta Lucene Wiki] Updated: CommunityContributions
Date Fri, 11 Feb 2005 19:19:26 GMT
   Date: 2005-02-11T11:19:26
   Editor: DanielNaber
   Wiki: Jakarta Lucene Wiki
   Page: CommunityContributions
   URL: http://wiki.apache.org/jakarta-lucene/CommunityContributions

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -1,14 +1,12 @@
 = Community Contributions =
 
- == Demoting results ==
+== Demoting results ==
 
-The BoostingQuery class can be used to effectively demote results that match a given query.
Unlike the "NOT" clause, this still selects documents that contain undesirable terms, but
reduces their overall score:
+The !BoostingQuery class can be used to effectively demote results that match a given query.
Unlike the "NOT" clause, this still selects documents that contain undesirable terms, but
reduces their overall score:
 
-   Query balancedQuery =
-     new BoostingQuery(positiveQuery, negativeQuery, 0.01f);
+   Query balancedQuery = new !BoostingQuery(positiveQuery, negativeQuery, 0.01f);
 
 In this scenario the positiveQuery contains the mandatory, desirable criteria which is used
to select all matching documents, and the negativeQuery contains the undesirable elements
which are simply used to lessen the scores. Documents that match the negativeQuery have their
score multiplied by the supplied "boost" parameter, so this should be less than 1 to achieve
a demoting effect.
 
-This code was made available here:                                                      
        
-  url: http://marc.theaimsgroup.com/?l=lucene-user&m=108058407130459&w=2 [[BR]]
+This code was made available here: http://marc.theaimsgroup.com/?l=lucene-user&m=108058407130459&w=2

  

---------------------------------------------------------------------
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