Item11007: Search options of SolrSearch don't work

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: SolrPlugin
Branches:
Reported By: MartinKaufmann
Waiting For:
Last Change By: MichaelDaum
In my installation, all the search options in the topic SolrSearch on the right don't work (i.e. "in current web", "in my contributions", "sort by", "display as" and "results per page"). The ones in the left bar (filter by web, contributor and time) work.

The autosubmit is executed but the URL is not changed (e.g. the URL always contains rows=20 even if the number of results is set to 10 and the page is reloaded).

Initially I used the latest version of SolrPlugin (1.10, $Rev: 10340 (2010-12-16) $) but now upgraded to the latest version on trunk (which has an even older revision $Rev: 20091124 (2009-11-24) $???). The problem occurs with both versions in FF5 as well as in IE8 and there are no javascript errors in the error console.

I'm using PatternSkin & Foswiki 1.1.3 as well as the latest version of JQueryPlugin (4.10, $Rev: 11763 (2011-05-25) $).

-- MartinKaufmann - 28 Jul 2011

Still the same situation in Foswiki 1.1.6 with the latest svn checkout of SolrPlugin (beginning of December 2012).

-- MartinKaufmann - 14 Dec 2012

If I remove the following hidden inputs, the options sort, display and rows work:

--- SolrSearchBaseTemplate.txt.orig     2012-12-11 17:07:46.000000000 +0100
+++ SolrSearchBaseTemplate.txt  2013-01-14 09:15:24.000000000 +0100
@@ -650,9 +650,9 @@
 %TMPL:DEF{"solr::formstart"}%<!-- -->
 <form name="searchform" class='solrSearchForm' action='%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%'>
 <div class='foswikiFormSteps'>
-<input type='hidden' name='sort' value='%<nop>URLPARAM{"sort" default="%TMPL:P{"solr::defaultsort"}%"}%' id='solrSortOption' />
-<input type='hidden' name='display' value='%<nop>URLPARAM{"display" default="%TMPL:P{"solr::defaultdisplay"}%"}%' id='solrDisplayOption' />
-<input type='hidden' name='rows' value='%<nop>URLPARAM{"rows" default="%TMPL:P{"solr::defaultrows"}%"}%' id='solrRowsOption' />
+<!-- <input type='hidden' name='sort' value='%<nop>URLPARAM{"sort" default="%TMPL:P{"solr::defaultsort"}%"}%' id='solrSortOption' /> -->
+<!-- <input type='hidden' name='display' value='%<nop>URLPARAM{"display" default="%TMPL:P{"solr::defaultdisplay"}%"}%' id='solrDisplayOption' /> -->
+<!-- <input type='hidden' name='rows' value='%<nop>URLPARAM{"rows" default="%TMPL:P{"solr::defaultrows"}%"}%' id='solrRowsOption' /> -->
 <input type='hidden' name='origtopic' value='%<nop>URLPARAM{"origtopic" default="%BASEWEB%.%BASETOPIC%"}%' />
 %FORMATLIST{
   "%<nop>URLPARAM{"filter" multiple="on" separator="#" encode="none"}%#%TMPL:P{"solr::extraselection"}%"

The docu mentions that these three options should be overwritten by javascript which is not the case on my system.

The options for searching only in the current web and in my contributions still don't work.

-- MartinKaufmann - 14 Jan 2013

The old solr search has been replaced by the all-ajax one now.

-- MichaelDaum - 29 May 2013
 

ItemTemplate edit

Summary Search options of SolrSearch don't work
ReportedBy MartinKaufmann
Codebase 1.1.3
SVN Range
AppliesTo Extension
Component SolrPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r5 - 29 May 2013, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy