Skip to content
Snippets Groups Projects
Commit 9e78a0eb authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Yandex Descriptions werden nun häufiger gefunden

parent 9afcda63
No related branches found
No related tags found
2 merge requests!209Yandex Descriptions werden nun häufiger gefunden,!208Bugfix
...@@ -39,6 +39,10 @@ class Yandex extends Searchengine ...@@ -39,6 +39,10 @@ class Yandex extends Searchengine
$link = $result->{"doc"}->{"url"}->__toString(); $link = $result->{"doc"}->{"url"}->__toString();
$anzeigeLink = $link; $anzeigeLink = $link;
$descr = strip_tags($result->{"doc"}->{"headline"}->asXML()); $descr = strip_tags($result->{"doc"}->{"headline"}->asXML());
if( !$descr )
{
$descr = strip_tags($result->{"doc"}->{"passages"}->asXML());
}
$this->counter++; $this->counter++;
$this->results[] = new \App\Models\Result( $this->results[] = new \App\Models\Result(
$this->engine, $this->engine,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment