Getting rid of 'similar matches' in search results
From phpCMS
Question: On my search results there is a line like this:
(Similar) Matches: literatur:5 | fachliteratur:1
or
Ähnliche Begriffe: literatur:5 | fachliteratur:1
What means this supplementary result on the right and where can I configure or remove it?
Answer:
This can be modified in the .mtpl menu template file.
There should be a section similar to this one:
{SEARCH.SEARCH.NORMAL}
<span><font face="Arial" size="2"><b>{NUMBER}. - <a href="{URL}">{TITLE}</a></b></font><br />
<font face="Arial" size="1">Ranking: {RANKING}</font><br />
<font face="Arial" size="2">{TEXT}</font><br />
<font face="Arial" size="1">Matches: {FWORDS}</font></span>
<hr align="left" width="100%" />
or
{SEARCH.SUCHE.NORMAL}
<span><font face="Arial" size="2"><b>{NUMBER}. - <a href="{URL}">{TITLE}</a></b></font><br />
<font face="Arial" size="1">Rangfolge: {RANKING}</font><br />
<font face="Arial" size="2">{TEXT}</font><br />
<font face="Arial" size="1">Ähnliche Begriffe: {FWORDS}</font></span>
<hr align="left" width="100%" />
The supplementary result of (Similar) Matches / Ähnliche Begriffe is configured in the 5th line of the above mentioned code section.
In your example you probably searched for the term "literatur". phpCMS then finds any pages containing words where "literatur" is a part of a word, i.e. also pages with the word "fachliteratur" are found.
The result in your example shows that on that certain page phpCMS found 5 times the word "literatur" and once the word "fachliteratur".
You can then click for example on "fachliteratur" and phpCMS performs a new search for pages containing the word "fachliteratur".
This way you can narrow down your search if you got to many results.
Diese Seite in anderen Sprachen: Deutsch
Main Page: FAQ MainPage | Top Page: English FAQ MainPage

