summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/index/Zend/Search/Lucene
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/index/Zend/Search/Lucene')
-rw-r--r--demos/quickstart/protected/index/Zend/Search/Lucene/Search/QueryTokenizer.php3
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;
}