diff options
author | xue <> | 2007-08-22 14:27:58 +0000 |
---|---|---|
committer | xue <> | 2007-08-22 14:27:58 +0000 |
commit | 81aa8185ce94a112f63e3c2145ac04614b696bed (patch) | |
tree | c95cdc35a792ba64e164549c46d5f139edacb3dc /demos/quickstart/protected/index | |
parent | 6477d21d4ccc7969cefe1e38cbc3c001bbcb7459 (diff) |
fix for tokenizer
Diffstat (limited to 'demos/quickstart/protected/index')
-rw-r--r-- | demos/quickstart/protected/index/Zend/Search/Lucene/Search/QueryTokenizer.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/quickstart/protected/index/Zend/Search/Lucene/Search/QueryTokenizer.php b/demos/quickstart/protected/index/Zend/Search/Lucene/Search/QueryTokenizer.php index 986f8899..3ca60d79 100644 --- a/demos/quickstart/protected/index/Zend/Search/Lucene/Search/QueryTokenizer.php +++ b/demos/quickstart/protected/index/Zend/Search/Lucene/Search/QueryTokenizer.php @@ -89,6 +89,9 @@ class Zend_Search_Lucene_Search_QueryTokenizer implements Iterator if (strlen($currentToken)) { $this->_tokens[] = new Zend_Search_Lucene_Search_QueryToken(Zend_Search_Lucene_Search_QueryToken::TOKTYPE_WORD, $currentToken); } + + if (empty($this->_tokens)) + $this->_tokens[] = $inputString; } |