Hi,
I've not tested it, but it should works:
$c = sfLuceneCriteria::newInstance()
->addMultiTerm(array('a', 'b'), 'field1', true)
->addMultiTerm(array('c', 'd'), 'field2', true);
On Tue, Jun 24, 2008 at 11:47 PM, Gilles TAUPENAS
<[EMAIL PROTECTED]> wrote:
>
> I would have liked to know if a special kind of search could be done with
> Lucene:
> I want a fulltext search first for a field with value 'a b' and then for
> another field with 'c d' values.
> First I need to find weither a or b (field1) and then, from the results to
> restrict to c or d (field2).
>
> What should I call from the API to do it if we can?
> http://trac.symfony-project.com/browser/plugins/sfLucenePlugin/branches/1.0/lib/util/sfLuceneCriteria.class.php
>
>
> Thanks a lot!
> Gilles
> >
--
Noël GUILBERT
http://www.sensiolabs.com
http://www.symfony-project.com
Sensio Labs
Tél: +33 1 40 99 80 80
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---