I'm a little confused as to how this should work.

        When creating fields, it seems like I should be able to create
fields like:

        $doc = new Zend_Search_Lucene_Document();
        $doc->addField(Zend_Search_Lucene_Field::UnIndexed('link', $file));

        $doc->addField(Zend_Search_Lucene_Field::Text('from', $from));
        $doc->addField(Zend_Search_Lucene_Field::Text('to', $to));      
        $doc->addField(Zend_Search_Lucene_Field::Text('subject', $subject));

        And then queries should search against all indexed fields, correct?
So the following query:

        $hits  = $index->find("important");

        Should search for the "important" token in from, to, and subject
fields, correct?

        What I'm seeing, even in the latest snapshot, is that searches only
work on the hardcoded 'contents' field.

        Is this by design (I should concatenate the from, to, subject fields
into a single string ) or is it a bug?

 Thanks,
 Chris

Reply via email to