public function finishExpression()
    {
        if ($this->getState() != self::ST_LITERAL) {
            include_once 'Zend/Search/Lucene/Exception.php';
            throw new Zend_Search_Lucene_Exception('Literal expected.');
        }

        $this->_conjunctions[] = $this->_currentConjunction;

        return $this->_conjunctions;
    }
public function finishExpression()
    {
        if ($this->getState() != self::ST_LITERAL) {
            include_once 'Zend/Search/Lucene/Exception.php';
            throw new Zend_Search_Lucene_Exception('Literal expected.');
        }

        $this->_conjunctions[] = $this->_currentConjunction;

        return $this->_conjunctions;
    }
public function finishExpression ( ) { if ( $ this -> getState ( ) != self :: ST_LITERAL ) { include_once 'Zend/Search/Lucene/Exception.php' ; throw new Zend_Search_Lucene_Exception ( 'Literal expected.' ) ; } $ this -> _conjunctions [ ] = $ this -> _currentConjunction ; return $ this -> _conjunctions ; }
Finish an expression and return result

Result is a set of boolean query conjunctions

Each conjunction is an array of conjunction elements
Each conjunction element is presented with two-elements array:
array(<literal>, <is_negative>)

So, it has a structure:
array( array( array(<literal>, <is_negative>), // first literal of first conjuction
array(<literal>, <is_negative>), // second literal of first conjuction
...
array(<literal>, <is_negative>)
), // end of first conjuction
array( array(<literal>, <is_negative>), // first literal of second conjuction
array(<literal>, <is_negative>), // second literal of second conjuction
...
array(<literal>, <is_negative>)
), // end of second conjuction
...
) // end of structure

@return array
@throws Zend_Search_Lucene_Exception
Finish an expression and return result