Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
frontend:searchres [2012/05/17 09:17]
giancarlo
frontend:searchres [2013/09/05 11:38]
giancarlo
Line 1: Line 1:
 ====== Custom search result ====== ====== Custom search result ======
  
-  * **Limit ''dc.description'' to 200 chars**+  * **Speed up search (from 30s to 1s !!) and Limit ''dc.description'' to 200 chars**
  
 Edit ''sites/all/modules/islandora_solr_custom/theme/islandora_solr_custom.theme.inc'' Edit ''sites/all/modules/islandora_solr_custom/theme/islandora_solr_custom.theme.inc''
Line 7: Line 7:
 <code php> <code php>
 function islandora_solr_custom_preprocess_islandora_solr_custom(&$variables) { function islandora_solr_custom_preprocess_islandora_solr_custom(&$variables) {
 +...
 +</code>
 +<wrap tip>Tip</wrap>
 +<WRAP prewrap center caution>
 +<code php>
 +//  $variables['field_order'] = _islandora_solr_custom_solrconfig(); // not sure if this is really needed, but I'll keep it in for now.
 +</code>
 +</WRAP>
 +<code php>
 ... ...
       if ($field=="PID") {       if ($field=="PID") {
 
 
frontend/searchres.txt ยท Last modified: 2013/09/05 11:38 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki