[TYPO3-Solr] API-Use change search from and to or

Heiko Kromm | Paints h.kromm at paints.de
Mon Oct 24 12:18:46 CEST 2011


Hi Ingo, 

I tried the edismax Oliver proposed. The setMinimumMatch-Function in Class tx_solr_Query is really great for that. 
For me it's even better, than setting the Operator to OR, because sometimes I have a lot of keywords and now I can tell solr to give me results for e.g. 50% of my keywords. I'm loving this feature. :-) 

Never the less, thanks for setOperator-Method. I think this is really usefull for the most cases. 

Regards 
Heiko 


Von: "Ingo Renner" <ingo at typo3.org> 
An: typo3-project-solr at lists.typo3.org 
Gesendet: Freitag, 21. Oktober 2011 14:42:47 
Betreff: Re: [TYPO3-Solr] API-Use change search from and to or 

Am 17.10.11 16:46, schrieb Heiko Kromm | Paints: 


> In $searchkey could be multiple keywords and I want solr to search for all documents containing any of the words (OR). 
> Is ist possible to change search behavior from AND to OR? 

just use word1 OR word2 OR word3 as your query (works with Solr 3.x) 

Other than that I just added tx_solr_Query::setOperator() in the EAP 
version. 


Ingo 


-- 
Ingo Renner 
TYPO3 Core Developer, Release Manager TYPO3 4.2, Admin Google Summer of Code 

TYPO3 - Open Source Enterprise Content Management System 
http://typo3.org 

Apache Solr for TYPO3 - 
Open Source Enterprise Search meets Open Source Enterprise CMS 
http://www.typo3-solr.com 
_______________________________________________ 
TYPO3-project-solr mailing list 
TYPO3-project-solr at lists.typo3.org 
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr 


More information about the TYPO3-project-solr mailing list