[TYPO3-Solr] Using "less than", "greater than" filters with facets

Ingo Renner ingo at typo3.org
Fri Jun 8 17:52:03 CEST 2012


Am 08.06.12 17:43, schrieb Ingo Renner:
> Am 08.06.12 13:48, schrieb Søren Malling:
>
> Hi Søren,
>
>> and shows my indexed prices. One of the prices is "180.00". When
>> clicking that I add a filter to the query, but I also products where the
>> price is "225.00".
>>
>> Is it in some way possible to expand the filter through TypoScript or
>> the syntax query so I my request to the SOLR server would be like this
>> (in human readable language)
>>
>> Clicking "180.00" would make a request like this -> "Return all items
>> where the indexed price field is {max,min,exact} the value 180.00"
>
> Solr can do this through query facets (facet.query parameter). The TER
> and Forge versions can't do this yet. However I needed query facets for
> some other feature on typo3.org so the EAP version can handle this -
> since yesterday ;)

so to be a little more precise and water your mouth a bit more ;) here's 
what the extension can do now:

* We know have conditional facets, that means I configured an age facet 
that is only shown when you selected "tt_news" from the type facet. 
(feature 1)

* The age facet is using facet.query (feature 2, this is what you want I 
guess) and configured to group results by
	* 1 to 7 days
	* 1 week to 1 month
	* 1 to 6 months
	* 6 months to 1 year
	* over 1 year



:)
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