PageRenderTime 42ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/inc/lib/Zend/Search/Lucene/Search/Weight/Empty.php

https://bitbucket.org/yoander/mtrack
PHP | 57 lines | 12 code | 7 blank | 38 comment | 0 complexity | d8429bb7ac3c7e7c49a0c97ff031a0d0 MD5 | raw file
Possible License(s): BSD-3-Clause, Apache-2.0
  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-2011 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 23775 2011-03-01 17:25:24Z ralph $
  21. */
  22. /** Zend_Search_Lucene_Search_Weight */
  23. require_once 'Zend/Search/Lucene/Search/Weight.php';
  24. /**
  25. * @category Zend
  26. * @package Zend_Search_Lucene
  27. * @subpackage Search
  28. * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  29. * @license http://framework.zend.com/license/new-bsd New BSD License
  30. */
  31. class Zend_Search_Lucene_Search_Weight_Empty extends Zend_Search_Lucene_Search_Weight
  32. {
  33. /**
  34. * The sum of squared weights of contained query clauses.
  35. *
  36. * @return float
  37. */
  38. public function sumOfSquaredWeights()
  39. {
  40. return 1;
  41. }
  42. /**
  43. * Assigns the query normalization factor to this.
  44. *
  45. * @param float $queryNorm
  46. */
  47. public function normalize($queryNorm)
  48. {
  49. }
  50. }