1 | <?php |
||
9 | class MoreLikeThis extends Select implements ComponentInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $handlerName = 'mlt'; |
||
15 | |||
16 | /** |
||
17 | * $var string |
||
18 | */ |
||
19 | protected $responseClass = '\PSolr\Response\Response'; |
||
20 | |||
21 | /** |
||
22 | * {@inheritDoc} |
||
23 | */ |
||
24 | public function preMergeParams(SolrRequest $request) {} |
||
25 | |||
26 | /** |
||
27 | * {@inheritDoc} |
||
28 | */ |
||
29 | public function init() |
||
33 | |||
34 | /** |
||
35 | * @param bool $mlt |
||
36 | * |
||
37 | * @return \PSolr\Request\MoreLikeThis |
||
38 | * |
||
39 | * @see http://wiki.apache.org/solr/MoreLikeThis#MoreLikeThisComponent |
||
40 | */ |
||
41 | public function mlt($mlt = true) |
||
45 | |||
46 | /** |
||
47 | * @param bool $count |
||
48 | * |
||
49 | * @return \PSolr\Request\MoreLikeThis |
||
50 | * |
||
51 | * @see http://wiki.apache.org/solr/MoreLikeThis#MoreLikeThisComponent |
||
52 | */ |
||
53 | public function setCount($count) |
||
57 | |||
58 | /** |
||
59 | * @param string|array $fields |
||
60 | * |
||
61 | * @return \PSolr\Request\MoreLikeThis |
||
62 | * |
||
63 | * @see http://wiki.apache.org/solr/MoreLikeThis#Common_Parameters |
||
64 | */ |
||
65 | public function setSimilarityFields($fields) |
||
69 | |||
70 | /** |
||
71 | * @param int $min |
||
72 | * |
||
73 | * @return \PSolr\Request\MoreLikeThis |
||
74 | * |
||
75 | * @see http://wiki.apache.org/solr/MoreLikeThis#Common_Parameters |
||
76 | */ |
||
77 | public function setMinimumTermFrequency($min) |
||
81 | |||
82 | /** |
||
83 | * @param int $min |
||
84 | * |
||
85 | * @return \PSolr\Request\MoreLikeThis |
||
86 | * |
||
87 | * @see http://wiki.apache.org/solr/MoreLikeThis#Common_Parameters |
||
88 | */ |
||
89 | public function setMinimumDocumentFrequency($min) |
||
93 | |||
94 | /** |
||
95 | * @param int $min |
||
96 | * |
||
97 | * @return \PSolr\Request\MoreLikeThis |
||
98 | * |
||
99 | * @see http://wiki.apache.org/solr/MoreLikeThis#Common_Parameters |
||
100 | */ |
||
101 | public function setMinimumWordLength($min) |
||
105 | |||
106 | /** |
||
107 | * @param int $max |
||
108 | * |
||
109 | * @return \PSolr\Request\MoreLikeThis |
||
110 | * |
||
111 | * @see http://wiki.apache.org/solr/MoreLikeThis#Common_Parameters |
||
112 | */ |
||
113 | public function setMaximumWordLength($max) |
||
117 | |||
118 | /** |
||
119 | * @param int $max |
||
120 | * |
||
121 | * @return \PSolr\Request\MoreLikeThis |
||
122 | * |
||
123 | * @see http://wiki.apache.org/solr/MoreLikeThis#Common_Parameters |
||
124 | */ |
||
125 | public function setMaximumQueryTerms($max) |
||
129 | |||
130 | /** |
||
131 | * @param int $max |
||
132 | * |
||
133 | * @return \PSolr\Request\MoreLikeThis |
||
134 | * |
||
135 | * @see http://wiki.apache.org/solr/MoreLikeThis#Common_Parameters |
||
136 | */ |
||
137 | public function setMaximumTokens($max) |
||
141 | |||
142 | /** |
||
143 | * @param bool $boost |
||
144 | * |
||
145 | * @return \PSolr\Request\MoreLikeThis |
||
146 | * |
||
147 | * @see http://wiki.apache.org/solr/MoreLikeThis#Common_Parameters |
||
148 | */ |
||
149 | public function boost($boost = true) |
||
153 | |||
154 | /** |
||
155 | * @param string|array $fields |
||
156 | * An associative array of fields to boosts, e.g. array('field' => 2.0); |
||
157 | * |
||
158 | * @return \PSolr\Request\MoreLikeThis |
||
159 | * |
||
160 | * @see http://wiki.apache.org/solr/MoreLikeThis#Common_Parameters |
||
161 | */ |
||
162 | public function setQueryFields($fields) |
||
166 | |||
167 | // |
||
168 | // Handler params |
||
169 | // |
||
170 | |||
171 | /** |
||
172 | * @param bool $include |
||
173 | * |
||
174 | * @return \PSolr\Request\MoreLikeThis |
||
175 | * |
||
176 | * @see http://wiki.apache.org/solr/MoreLikeThisHandler#Params |
||
177 | */ |
||
178 | public function includeMatchedDocuments($include = true) |
||
182 | |||
183 | /** |
||
184 | * @param int $offset |
||
185 | * |
||
186 | * @return \PSolr\Request\MoreLikeThis |
||
187 | * |
||
188 | * @see http://wiki.apache.org/solr/MoreLikeThisHandler#Params |
||
189 | */ |
||
190 | public function setMatchOffset($offset) |
||
194 | |||
195 | /** |
||
196 | * @param int $option |
||
197 | * |
||
198 | * @return \PSolr\Request\MoreLikeThis |
||
199 | * |
||
200 | * @see http://wiki.apache.org/solr/MoreLikeThisHandler#Params |
||
201 | */ |
||
202 | public function setInterestingTerms($option) |
||
206 | } |
||
207 |