[TYPO3-Solr] Problem with fragsize and too many results

Ingo Renner ingo at typo3.org
Tue Mar 20 11:54:08 CET 2012


Am 08.03.12 12:50, schrieb "Frédéric Jaeger | critic.de":

Hi Frédéric,

> 1. Even though we defined the fragsize (hl.fragsize) with 200 characters
> it returns for different results different lengths of text, sometimes
> even 600 characters. Any ideas?

This is a known behavior, there's not much you can do about it. IIRR 
there's an explanation somewhere about that on the Apache Solr wiki 
http://wiki.apache.org/solr/

You could use the crop viewhelper to make sure it stays within your 
limit though.


> 2. Also there are often useless results because the search terms seem to
> be combined by OR and not AND.

It's combined using AND. However, for even better results we're thinking 
about switching to OR by default. It's a bit hard to explain, but 
relevance should be better with OR.

> Can I modify this for both the AJAX
> search and the actual search?

Currently not, but feel free to open a feature request on forge.

> The Problem ist that I'll get many results for just one or two of five
> searchwords.

This is an effect of the minimum match behavior, you can find more 
information about that in the Solr wiki or even better explanation in 
http://www.amazon.de/Apache-Solr-Enterprise-Search-Server/dp/1849516065/ref=sr_1_1?ie=UTF8&qid=1332240786&sr=8-1

You can set this through plugin.tx_solr.search.query.minimumMatch

> Also the number shown in brackets in the AJAX search is
> different from the one in the results on the results page (in AJAX it
> seams to search (TERM1 OR TERM2) AND TERM3 - can that be correct?)
> How can I change that?

Simply ignore these numbers, these are side effects from relevance 
calculations inside Solr, we'll be removing the numbers from the default 
template - they don't offer a lot of information to the user anyway as 
the list is sorted by relevance already anyway.


best
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