Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
frontend:fulltext [2012/05/15 11:34] giancarlo |
frontend:fulltext [2013/10/14 18:43] (current) giancarlo |
\\ | \\ |
Applicable only to **one** search block. | Applicable only to **one** search block. |
| \\ |
| \\ |
| **IMPORTANT NOTE** |
| \\ |
| \\ |
| There is a bug in the solr-tomcat package which emits a required library (lucene-memory.jar) from Solr include path.\\ |
| The bug only becomes apparent when you search for an exact match.\\ |
| All that needs to be done is this: |
| <WRAP prewrap center> |
| <code> |
| cd /usr/share/solr/WEB-INF/lib |
| ln -s ../../../java/lucene-memory.jar lucene-memory.jar |
| sudo service tomcat6 restart |
| </code> |
| </WRAP> |
| \\ |
| \\ |
| |
* Edit **''/sites/all/modules/islandora_solr_search/IslandoraSolrQueryProcessor.inc''**: | * Edit **''/sites/all/modules/islandora_solr_search/IslandoraSolrQueryProcessor.inc''**: |
| |
| <WRAP prewrap center> |
<code php> | <code php> |
<?php | <?php |
$this->solrStart = max(0, $startPage) * $this->solrLimit; | $this->solrStart = max(0, $startPage) * $this->solrLimit; |
</code> | </code> |
<WRAP prewrap center tip 90%> | </WRAP> |
| <wrap tip>Tip</wrap> |
| <WRAP prewrap center caution> |
<code php> | <code php> |
// The breadcrumb should go in the display class | // The breadcrumb should go in the display class |
$this->solrParams['hl.simple.post'] = '</b>'; | $this->solrParams['hl.simple.post'] = '</b>'; |
</code> | </code> |
<WRAP center tip 90%> | <wrap tip>Tip</wrap> |
| <WRAP prewrap center caution> |
<code php> | <code php> |
$bcksolrQuery = $this->solrQuery; | $bcksolrQuery = $this->solrQuery; |
... | ... |
</code> | </code> |
<WRAP prewrap center tip 90%> | <wrap tip>Tip</wrap> |
| <WRAP prewrap center caution> |
<code php> | <code php> |
/** | /** |
} | } |
</code> | </code> |
<WRAP center tip 90%> | <wrap tip>Tip</wrap> |
| <WRAP prewrap center caution> |
<code php> | <code php> |
// append AND or OR at the end of string | // append AND or OR at the end of string |