Thats done (committed to SVN).
Use
-------
Zend_Search_Lucene_Search_QueryParser::setDefaultOperator(Ze
nd_Search_Lucene_Search_QueryParser::B_AND);
Zend_Search_Lucene_Search_QueryParser::setDefaultOperator(Ze
nd_Search_Lucene_Search_QueryParser::B_OR);
-------
to change behavior.
And
Zend_Search_Lucene_Search_QueryParser::getDefaultOperator();
to request current.
With best regards,
Alexander Veremyev.
Alexander Veremyev wrote:
> Hi all,
>
> Matthew:
> Thanks!
>
> David:
> Yes, I am going to add it right now.
>
> With best regards,
> Alexander Veremyev.
>
>
> Matthew Ratzloff wrote:
>> I think David meant to send this to the list--I'm
sending to MFS since
>> it's specific to Zend_Search_Lucene:
>>
>>> Apache Lucene offer a method to change the
default behaviour,
>>> QueryParser.SetDefaultOperator. Any plans on
implementing this in
>>> Zend_Search?
>>>
>>>
>>> David Brännlund
>>> Web & Database Development
>>> COMSOL AB, Sweden
>>>
>>> Matthew Ratzloff wrote:
>>>> I don't know that Zend_Search_Lucene should
stray too far from the
>>>> guidelines set out by Apache Lucene. It
is, after all, a PHP
>>>> implementation of Apache Lucene.
>>>>
>>>> -Matt
>>>>
>>>> ----- Original Message ----- From:
"Steph Fox" <steph zend.com>
>>>> To: "Alexander Veremyev"
<alexander.v zend.com>;
>>>> <fw-general lists.zend.com>
>>>> Sent: Friday, January 26, 2007 12:10 PM
>>>> Subject: Re: [fw-general] Zend_Search query
language
>>>>
>>>>
>>>>> Hi Alexander,
>>>>>
>>>>>> Zend_Search uses OR as default for
words in a search query.
>>>>>> There was a question, why it
doesn't use AND.
>>>>>>
>>>>>> Java Lucene uses OR. But for
example Google uses AND.
>>>>>>
>>>>>> Any thoughts?
>>>>> I'd say AND as default is more
traditional.
>>>>>
>>>>> I'm also wondering what the problem is
with a cached fulltext search?
>>>>> Or is this anti-tag speak?
>>>>>
>>>>> - Steph
>>
>>
>>
>
>
|