SolrDisMaxQuery::__construct

(No version information available, might only be in Git)

SolrDisMaxQuery::__constructClass Constructor

说锟斤拷

public SolrDisMaxQuery::__construct ([ string $q ] )

Class constructor initializes the object and sets the q parameter if passed

锟斤拷锟斤拷

q

Search Query (q parameter)

锟斤拷锟斤拷值

锟斤拷锟斤拷锟届常

Emits SolrIllegalArgumentException in case of an invalid parameter was passed.

锟斤拷锟斤拷

Example #1 SolrDisMaxQuery::__construct() example

<?php

$dismaxQuery 
= new SolrDisMaxQuery('lucene');
echo 
$dismaxQuery;

?>

锟斤拷锟斤拷锟斤拷锟教伙拷锟斤拷锟斤拷锟�

q=lucene&defType=edismax

锟轿硷拷