From 702fb4a66d473fb1ee98aaa81cd26b4813279ef8 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 9 May 2006 11:39:11 +0000 Subject: Remove duplicate --- .../Zend/Search/Lucene/Analysis/Analyzer.php | 94 ------------ .../Zend/Search/Lucene/Analysis/Token.php | 170 --------------------- .../Zend/Search/Lucene/Analysis/TokenFilter.php | 45 ------ .../Lucene/Analysis/TokenFilter/LowerCase.php | 55 ------- 4 files changed, 364 deletions(-) delete mode 100644 buildscripts/texbuilder/Zend/Search/Lucene/Analysis/Analyzer.php delete mode 100644 buildscripts/texbuilder/Zend/Search/Lucene/Analysis/Token.php delete mode 100644 buildscripts/texbuilder/Zend/Search/Lucene/Analysis/TokenFilter.php delete mode 100644 buildscripts/texbuilder/Zend/Search/Lucene/Analysis/TokenFilter/LowerCase.php (limited to 'buildscripts/texbuilder/Zend/Search/Lucene/Analysis') diff --git a/buildscripts/texbuilder/Zend/Search/Lucene/Analysis/Analyzer.php b/buildscripts/texbuilder/Zend/Search/Lucene/Analysis/Analyzer.php deleted file mode 100644 index 8e234c16..00000000 --- a/buildscripts/texbuilder/Zend/Search/Lucene/Analysis/Analyzer.php +++ /dev/null @@ -1,94 +0,0 @@ -_termText = $text; - $this->_startOffset = $start; - $this->_endOffset = $end; - $this->_type = $type; - - $this->_positionIncrement = 1; - } - - - /** - * positionIncrement setter - * - * @param integer $positionIncrement - */ - public function setPositionIncrement($positionIncrement) - { - $this->_positionIncrement = $positionIncrement; - } - - /** - * Returns the position increment of this Token. - * - * @return integer - */ - public function getPositionIncrement() - { - return $this->_positionIncrement; - } - - /** - * Returns the Token's term text. - * - * @return string - */ - public function getTermText() - { - return $this->_termText; - } - - /** - * Returns this Token's starting offset, the position of the first character - * corresponding to this token in the source text. - * - * Note: - * The difference between getEndOffset() and getStartOffset() may not be equal - * to strlen(Zend_Search_Lucene_Analysis_Token::getTermText()), as the term text may have been altered - * by a stemmer or some other filter. - * - * @return integer - */ - public function getStartOffset() - { - return $this->_startOffset; - } - - /** - * Returns this Token's ending offset, one greater than the position of the - * last character corresponding to this token in the source text. - * - * @return integer - */ - public function getEndOffset() - { - return $this->_endOffset; - } - - /** - * Returns this Token's lexical type. Defaults to 'word'. - * - * @return string - */ - public function getType() - { - return $this->_type; - } -} - diff --git a/buildscripts/texbuilder/Zend/Search/Lucene/Analysis/TokenFilter.php b/buildscripts/texbuilder/Zend/Search/Lucene/Analysis/TokenFilter.php deleted file mode 100644 index 9ea5125f..00000000 --- a/buildscripts/texbuilder/Zend/Search/Lucene/Analysis/TokenFilter.php +++ /dev/null @@ -1,45 +0,0 @@ -getTermText() ), - $srcToken->getStartOffset(), - $srcToken->getEndOffset(), - $srcToken->getType()); - - $newToken->setPositionIncrement($srcToken->getPositionIncrement()); - - return $newToken; - } -} - -- cgit v1.2.3