/www/system/library/Zend/Search/Lucene/Search/Weight/Empty.php

https://bitbucket.org/vmihailenco/zf-blog · PHP · 57 lines · 11 code · 8 blank · 38 comment · 0 complexity · 0e49f7d05f9606dfd84a272606d0c9ad MD5 · raw file

  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Search_Lucene
  17. * @subpackage Search
  18. * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id: Empty.php 20096 2010-01-06 02:05:09Z bkarwin $
  21. */
  22. /** Zend_Search_Lucene_Search_Weight */
  23. /**
  24. * @category Zend
  25. * @package Zend_Search_Lucene
  26. * @subpackage Search
  27. * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  28. * @license http://framework.zend.com/license/new-bsd New BSD License
  29. */
  30. class Zend_Search_Lucene_Search_Weight_Empty extends Zend_Search_Lucene_Search_Weight
  31. {
  32. /**
  33. * The sum of squared weights of contained query clauses.
  34. *
  35. * @return float
  36. */
  37. public function sumOfSquaredWeights()
  38. {
  39. return 1;
  40. }
  41. /**
  42. * Assigns the query normalization factor to this.
  43. *
  44. * @param float $queryNorm
  45. */
  46. public function normalize($queryNorm)
  47. {
  48. }
  49. }