Zend_Search_Lucene_Exception

Description

It's not allowed to mix boolean and signs styles in the same subquery.

Source File

/home/data/web/vhosts/saxophone.org/protected/vendors/Zend/Search/Lucene/Search/QueryParser.php(388)

00376:             foreach (self::$_instance->_tokens as $token) {
00377:                 try {
00378:                     self::$_instance->_currentToken = $token;
00379:                     self::$_instance->process($token->type);
00380: 
00381:                     self::$_instance->_lastToken = $token;
00382:                 } catch (Exception $e) {
00383:                     if (strpos($e->getMessage(), 'There is no any rule for') !== false) {
00384:                         throw new Zend_Search_Lucene_Search_QueryParserException( 'Syntax error at char position ' . $token->position . '.', 0, $e);
00385:                     }
00386: 
00387:                     require_once 'Zend/Search/Lucene/Exception.php';
00388: throw new Zend_Search_Lucene_Exception($e->getMessage(), $e->getCode(), $e);
00389: } 00390: } 00391: 00392: if (count(self::$_instance->_contextStack) != 0) { 00393: throw new Zend_Search_Lucene_Search_QueryParserException('Syntax Error: mismatched parentheses, every opening must have closing.' ); 00394: } 00395: 00396: return self::$_instance->_context->getQuery(); 00397: } catch (Zend_Search_Lucene_Search_QueryParserException $e) { 00398: if (self::$_instance->_suppressQueryParsingExceptions) { 00399: $queryTokens = Zend_Search_Lucene_Analysis_Analyzer::getDefault()->tokenize($strQuery, self::$_instance->_encoding); 00400:

Stack Trace

#0 /home/data/web/vhosts/saxophone.org/protected/vendors/Zend/Search/Lucene.php(923): Zend_Search_Lucene_Search_QueryParser::parse('title:pro title...')
#1 /home/data/web/vhosts/saxophone.org/protected/classes/YiiZendSearch.php(136): Zend_Search_Lucene->find('title:pro title...')
#2 /home/data/web/vhosts/saxophone.org/protected/models/UserAudio.php(52): YiiZendSearch->search('Pro Backing Tra...', 'UserAudio')
#3 /home/data/web/vhosts/saxophone.org/protected/controllers/GalleryController.php(300): UserAudio->getRelatedModels()
#4 /home/data/web/vhosts/saxophone.org/framework/web/actions/CInlineAction.php(32): GalleryController->actionAudio()
#5 /home/data/web/vhosts/saxophone.org/framework/web/CController.php(300): CInlineAction->run()
#6 /home/data/web/vhosts/saxophone.org/framework/web/filters/CFilterChain.php(129): CController->runAction(Object(CInlineAction))
#7 /home/data/web/vhosts/saxophone.org/framework/web/filters/CFilter.php(41): CFilterChain->run()
#8 /home/data/web/vhosts/saxophone.org/protected/components/Controller.php(281): CFilter->filter(Object(CFilterChain))
#9 /home/data/web/vhosts/saxophone.org/framework/web/filters/CInlineFilter.php(59): Controller->filterCheckActiveUser(Object(CFilterChain))
#10 /home/data/web/vhosts/saxophone.org/framework/web/filters/CFilterChain.php(126): CInlineFilter->filter(Object(CFilterChain))
#11 /home/data/web/vhosts/saxophone.org/framework/web/filters/CFilter.php(41): CFilterChain->run()
#12 /home/data/web/vhosts/saxophone.org/protected/components/Controller.php(287): CFilter->filter(Object(CFilterChain))
#13 /home/data/web/vhosts/saxophone.org/framework/web/filters/CInlineFilter.php(59): Controller->filterUserFilter(Object(CFilterChain))
#14 /home/data/web/vhosts/saxophone.org/framework/web/filters/CFilterChain.php(126): CInlineFilter->filter(Object(CFilterChain))
#15 /home/data/web/vhosts/saxophone.org/framework/web/CController.php(283): CFilterChain->run()
#16 /home/data/web/vhosts/saxophone.org/framework/web/CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)
#17 /home/data/web/vhosts/saxophone.org/framework/web/CWebApplication.php(324): CController->run('audio')
#18 /home/data/web/vhosts/saxophone.org/framework/web/CWebApplication.php(121): CWebApplication->runController('gallery/audio/i...')
#19 /home/data/web/vhosts/saxophone.org/framework/base/CApplication.php(135): CWebApplication->processRequest()
#20 /home/data/web/vhosts/saxophone.org/index.php(36): CApplication->run()
#21 {main}
2024-03-28 03:32:43 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40 Yii Framework/1.1.3