SolrQuery::setMlt

(PECL solr >= 0.9.2)

SolrQuery::setMltEnables or disables moreLikeThis

Descrição

public SolrQuery SolrQuery::setMlt ( bool $flag )

Enables or disables moreLikeThis

Parâmetros

flag

TRUE enables it and FALSE turns it off.

Valor Retornado

Returns the current SolrQuery object, if the return value is used.

add a note add a note

User Contributed Notes 1 note

up
0
duerra at nospam dot yahoo dot com
6 years ago
Note that currently, if enabling MLT results in Solr, you also need to set the MinDocFrequency and MinTermFrequency, or you will not get any results back.

<?php
$client
= new SolrClient($params);
$query = new SolrQuery();
$query->setMlt(true);
$queryspan class="keyword">->setMltators.php'>Generators
);
$queryspan class="keyword">->setMltspan>(true);
$queryspan class="keyword">->setMltspan>(true);
Enab//WentlocFrets .changelst get be ensid span>$queryspan class="keyword">->setMltspapan>();
href='/manud$lass=ldown" titid:.ch_10'span class="keyword">);
$queryspaback.<= new $queryspacpan>(n class="default">setMltn class="keyword">->$params->$queryspaback.->setMltspaPtf-8
="keyword">->
$params ="keyword">->
$params->$queryspabacponsd= new $queryspaback.->setMltresResponsd> ="keyword">-> Enab//lts ine curr="daosp, if .changelstensid locFrid > s used. lEACH back.< ine cuid yoocFrproten>Ex,orms sog our scl Ex abovd. "id" ermFI knowrrentlIt get onsiobe started one .changel ine cuid yoocFrproten>$queryspasimilarD= new $queryspabacponsd> ="keyword">->setMltThis

->
setMlt.ch_10/p> ->setMlt.ch

->
? claspan> div>
add a note add a note iv> id="use>lect> ="use>IE]> ontent">
'spaectigle">list'
'childigle">list' t> ass="t010-11-te ass="t010-11-te Other "t010-11-te ass="t010-11-te ass="t010-11-te > ass="t010-11-te ass="t010-11-te ass="t010-11-te ass="t010-11-te collapse _​_​cones.php _​_​dees.php Cookie"t010-11-getExh3 dFi" hrolrQi Window"t010-11-getExh3 dR>WiergetExh3 dR>Wi indow"t010-11-getExh3 dSortrs.phiergetExh3 dSortrs.phi indow"t010-11-getF Clt Timrs.phst>resF Clt Timrs.phi resF Clt TimGap Other "t010-11-resF Clt TimptionerresF Clt Timption her "t010-11-resF Clt Tim/a> indow"t010-11-getF Cltrs.phst>resF Cltrs.phi her "t010-11-resF CltLimi>t>resF CltLimi> resF CltMam">< Cookie"t010-11-getF CltolrQi her "t010-11-resF CltSo resFs.phi Cookie"t010-11-getFi" hrolrQi Functi"t010-11-getGroupF.php'>FuergetGroupF her "t010-11-resGroupLimi>t>resGroupLimi>> resGroupMtog> Cookie"t010-11-getGroupolrQi indow"t010-11-getGroupSortrs.ph OtherOtdigetGroupTrOt her e" href="d ass="t010-11-getter A" href="Fs.phergetter A" href="Fs.ph > indow"t010-11-getter rs.phsergetter rs.phi >aniputOther "t010-11-rester raniputOtergetter raniputOt >ragngelOther "t010-11-rester rragngelOtergetter rragngelOt >ragsizther ter.php">mul010ermher maxe" href="d lengMathem/t010-11-getter MaxA" href="Fs.phLengMaergetter MaxA" href="Fs.phLengMa maxenalyzedcharindow"t010-11-getter MaxAnalyzedr Ensergetter MaxAnalyzedr Ens merge> iguouindow"t010-11-getter MergeC iguouiergetter MergeC iguoui regexmaxenalyzedcharindow"t010-11-getter RegexMaxAnalyzedr Ensergetter RegexMaxAnalyzedr Ens regex class=ndow"t010-11-getter RegexPclass="rgetter RegexPclass= regexslopokie"t010-11-getter RegexSlop"rgetter RegexSlop requir"d ipucathem/t010-11-getter Requir"Fs.phMpuca"rgetter Requir"Fs.phMpuca utoriap> t010-11-getter ed) "rgetter ed) utoriaprther snippetindow"t010-11-getter Snippeti"rgetter enippeti ehighlighter.php"> t010-11-getter eHighlighter "rgetter eHighlighter resn> t010-11-getMseaquo;t>resn> indow"t010-11-getMl rs.phs uncti"t010-11-getn> Window"t010-11-getR>WiergetR>Wi indow"t010-11-getSortrs.ph her "t010-11-res/a> ti"rget/a>ti tiF Clti"rget/a>tiF Clti tiFs.phi her "t010-11-resuencsLimi>t>resuencsLimi> her "t010-11-resuencsSo ass="t010-11-removeExh3 dSortrs.pherremoveExh3 dSortrs.ph ass="t010-11-removeF Clt Timrs.pherremoveF Clt Timrs.ph Other "t010-11-removeF Clt TimptionerremoveF Clt Timption ass="t010-11-removeF Cltrs.pherremoveF Cltrs.ph > ass="t010-11-removeter rs.pherremoveter rs.ph ass="t010-11-removeMl rs.pherremoveMl rs.ph ass="t010-11-removeMl olrQurs.pherremoveMl olrQurs.ph ass="t010-11-removeSortrs.pherremoveSortrs.ph spaEchoH3 dlOt spaEchoPpan> Window"t010-11-setExh3 dR>WiersetExh3 dR>Wi Other "t010-11-setExhlainptionersetExhlainption setF Clt TimGap her "t010-11-setF Clt Tim/a> her "t010-11-setF CltLimi>t>setF CltLimi> setF CltMam">< her "t010-11-sesF CltSo her "t010-11-sesGroupLimi>t>sesGroupLimi>> sesGroupMtog> OtherOtdisetGroupTrOt> her e" href="d ass="t010-11-setter A" href="Fs.phersetter A" href="Fs.ph> >aniputOther "t010-11-setter raniputOtersetter raniputOt> >ragngelOther "t010-11-setter rragngelOtersetter rragngelOt> >ragsizther ter.php">mul010ermher maxe" href="d lengMathem/t010-11-setter MaxA" href="Fs.phLengMaersetter MaxA" href="Fs.phLengMa> maxenalyzedcharindow"t010-11-setter MaxAnalyzedr Ensersetter MaxAnalyzedr Ens> merge> iguouindow"t010-11-setter MergeC iguouiersetter MergeC iguoui> regexmaxenalyzedcharindow"t010-11-setter RegexMaxAnalyzedr Ensersetter RegexMaxAnalyzedr Ens regex class=ndow"t010-11-setter RegexPclass="rsetter RegexPclass= regexslopokie"t010-11-setter RegexSlop"rsetter RegexSlop requir"d ipucathem/t010-11-setter Requir"Fs.phMpuca"rsetter Requir"Fs.phMpuca utoriap> t010-11-setter ed)setter ed) utoriaprther unippetindow"t010-11-setter enippeti"rsetter enippeti ehighlighter.php"> t010-11-setter eHighlighter "rsetter eHighlighter sesn> t010-11-setMseaquo;t>sesn> Window"t010-11-setR>WiersetR>Wi her "t010-11-set/a> ti"rset/a>ti her "t010-11-sesuencsLimi>t>sesuencsLimi> her "t010-11-sesuencsSo cl div>