[opencms-dev] OpenCms 9 demo search page bug

Alessandro Magnolo alessandro.magnolo at gmail.com
Fri Nov 15 19:05:39 CET 2013


Hello Rüdiger,
the fix in configuration.js works.

Unfortunately, I tried to change solrconfig.xml to re-enable the spell
checking but that doesn't work.
The path of the file I changed is WEB-INF/solr/conf/solrconfig.xml,
and I also restarted tomcat after the edit.

Thank you,
Alessandro


On Fri, Nov 15, 2013 at 1:22 PM, Rüdiger Kurz <r.kurz at alkacon.com> wrote:
> Hi Alessandro,
>
> Open the file:
> /system/modules/com.alkacon.bootstrap.formatters/search/configuration.js
>
> Replace line 9:
> "spellUrl" : '<cms:link>/handleSolrSpellt</cms:link>',
>
> with:
> "spellUrl" : '<cms:link>/handleSolrSelect</cms:link>',
>
> will fix that issue, but the spellchecking is then not available anymore.
>
> In order to let the /select request handler perform the spellchecking you
> can edit the solrconfig.xml, search for the /select handler and add the
> spellchecker as last-component like:
>
>         <requestHandler name="/select" class="solr.SearchHandler">
>                 <lst name="defaults">
>                         <str name="echoParams">explicit</str>
>                         <int name="rows">10</int>
>                         <str name="df">text</str>
>                 </lst>
>                 <arr name="last-components">
>                         <str>spellcheck</str>
>                 </arr>
>         </requestHandler>
>
> Then also the spell checking will also work again.
>
> Anyway you've found an issue that could be fixed within the core by adding
> the link field when the /spell handler is beeing requested. I will see if
> this can be fixed within a future release.
>
> Thank you very much and good luck!
> Rüdiger
>
> -------------------
>
> Rüdiger Kurz
>
> Alkacon Software GmbH  - The OpenCms Experts
> http://www.alkacon.com - http://www.opencms.org
>
> Am 15.11.2013 12:35, schrieb Alessandro Magnolo:
>
>> The OpenCms 9 demo on-the-fly search is broken. Result links don't
>> work, they all point to the non-existent URL
>> opencms/demo/search-page/undefined.
>> The only way to fix them is to click the "Go" button.
>> I would like to fix the links, or at least disable the on-the-fly
>> search and leave only the explicit search functionality.
>>
>> Any hint on how to do that?
>>
>> thank you
>> Alessandro
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>



More information about the opencms-dev mailing list