Cyclone3 Skin

Solr

From Cyclone3 Wiki

(Difference between revisions)

Rfordinal (Talk | contribs)
(New page: Apache Solr is document fulltext search engine integrated in Cyclone3 = Enable = Add line with Solr url into TOM.conf $Ext::Solr::url='http://localhost:8080/solr'; = Examples = ...)
Next diff →

Revision as of 12:08, 21 April 2012

Apache Solr is document fulltext search engine integrated in Cyclone3

Enable

Add line with Solr url into TOM.conf

$Ext::Solr::url='http://localhost:8080/solr';


Examples

Search in articles and boost score of newer items

my $boost='recip(ms(NOW/HOUR,last_modified),3.16e-11,1,1)';
my $response = $solr->search(
   "{!boost b=$boost} ".$query,
   {
       'rows' => 10,
       'defType' => 'dismax',
       'mm' => "100%",
       'bq' => '+id:example_tld.a401_article.sk.*',
       'qf' => "title^1.2 description^0.8 keywords^0.5 text^0.2",
       'fl' => "id ID_entity_i title description text score last_modified",
       'hl' => "true" ,
       'hl.fl' => "title description",
       'hl.fragsize' => "400"
   }
);