Index: trunk/extensions/SolrStore/SolrConnectorStore.php |
— | — | @@ -170,9 +170,9 @@ |
171 | 171 | */ |
172 | 172 | public function getQueryResult( SMWQuery $query ) { |
173 | 173 | // IF YOU SEE THIS HERE PLEASE IGNORE IT! |
174 | | - // Our first aproche was it to create new SMWStore for querying data |
175 | | - // but we had big problems recreating and parsing the SMW query syntax |
176 | | - // that we just stopped at this point here. |
| 174 | + // Our first approach was to create new SMWStore for querying data |
| 175 | + // but we had big problems recreating and parsing the SMW query syntax, |
| 176 | + // so we just stopped at this point here. |
177 | 177 | // Maybe we will finish it someday |
178 | 178 | $wgSolrTalker = new SolrTalker(); |
179 | 179 | if ( property_exists( $query, 'params' ) && |
— | — | @@ -186,10 +186,10 @@ |
187 | 187 | |
188 | 188 | echo( "SOLR query: {$query->getQueryString()}\n" ); |
189 | 189 | |
190 | | - echo 'Search is Powered by Solr!'; |
| 190 | + echo 'Search is powered by Solr!'; |
191 | 191 | echo $queryStr = urldecode( $wgSolrTalker->parseSolrQuery( $query->getQueryString() ) ); |
192 | 192 | |
193 | | - // Get Sort Parameters and add them to the QueryString |
| 193 | + // Get sort parameters and add them to the query string |
194 | 194 | if ( $query->sort ) { |
195 | 195 | // TODO: Der Inhalt von Sort muss genau der Name eines der Felder von Solr sein |
196 | 196 | // um danach Sortieren zu können. Deshalb Wird eine Liste alle Solr Felder |
— | — | @@ -208,7 +208,7 @@ |
209 | 209 | echo 'Query Limit:' . $query->getLimit(); |
210 | 210 | |
211 | 211 | echo ( 'SEARCHRESULT: ' . $xml = $wgSolrTalker->solrQuery( $queryStr, $query->getOffset(), $query->getLimit() ) ); |
212 | | - echo '<br/>'; |
| 212 | + echo '<br />'; |
213 | 213 | // TODO: Move this code to parseSolrResult |
214 | 214 | $numFound = $xml->result['numFound']; |
215 | 215 | foreach ( $xml->result->doc as $doc ) { |
— | — | @@ -248,7 +248,7 @@ |
249 | 249 | // Do we have more results? |
250 | 250 | $more = false; |
251 | 251 | // TODO: Does this work? |
252 | | - echo 'Number of Records: ' . $numFound; |
| 252 | + echo 'Number of records: ' . $numFound; |
253 | 253 | if ( $numFound > 10 ) { |
254 | 254 | $more = true; |
255 | 255 | } |