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

Ingo Renner ingo at typo3.org
Fri Oct 21 14:42:47 CEST 2011


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


More information about the TYPO3-project-solr mailing list