I was under the impression that the QueryParser class parsed a query and, if there were no exceptions, returned an object that, when converted to a string, would return a working query.
This seems to not be the case: ------------------------------------------------------------------ #!/usr/bin/php <?php set_include_path('./ZendFramework/trunk/library'); require_once 'Zend/Loader.php'; Zend_Loader::registerAutoload(); $queryString = '+gender:female age:[24 TO 30] +location:"Seattle, WA"'; try { $query = Zend_Search_Lucene_Search_QueryParser::parse($queryString); } catch (Zend_Search_Lucene_Search_QueryParserException $e) { echo "Query syntax error: " . $e->getMessage() . "\n"; } print $query; #=> gender female age to location seattle wa ------------------------------------------------------------------ Any ideas? Or am I misunderstanding the purpose of the class? -Matt