Re: Possible to sort in .xml file?
Hi, Ah cool - missed that bit! Will give that a go (as it will be handy for passing along other paramaters too) Cheers Andy On Thu, Mar 10, 2011 at 9:13 PM, Chris Hostetter wrote: > > : I know its possible to do via adding sort= , but the Perl module > : (WebService::Solr) doesn't seem to offer the option to pass in this value > :( > > according to the docs, you can pass any query params you want to the sort > method... > > > http://search.cpan.org/~bricas/WebService-Solr-0.11/lib/WebService/Solr.pm#search%28_$query,_\%options_%29 > > >> All key-value pairs supplied in \%options are serialzied in the request > >> URL. > > > -Hoss > -- Andy Newby a...@ultranerds.com
Re: Possible to sort in .xml file?
: I know its possible to do via adding sort= , but the Perl module : (WebService::Solr) doesn't seem to offer the option to pass in this value :( according to the docs, you can pass any query params you want to the sort method... http://search.cpan.org/~bricas/WebService-Solr-0.11/lib/WebService/Solr.pm#search%28_$query,_\%options_%29 >> All key-value pairs supplied in \%options are serialzied in the request >> URL. -Hoss
Re: Possible to sort in .xml file?
No, look for request handlers. explicit 10 etc... You can add any valid parameter there as default. http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml On Thursday 10 March 2011 11:34:47 Andy Newby wrote: > Hi, > > Thanks for the quick reply! > > I did a quick look in the solrconfig.xml file, but can't see anything about > "sort", appart from: > > > > > TIA > > Andy > > On Thu, Mar 10, 2011 at 10:33 AM, Markus Jelsma > > wrote: > > Is there no generic parameter store in the Solr module you can use for > > passing > > the sort parameter? If not, you can define your sort parameter as default > > in > > the request handler you use in solrconfig. See the shipped config for > > examples. > > > > On Thursday 10 March 2011 11:25:01 Andy Newby wrote: > > > Hi, > > > > > > I'm trying to setup Solr so that we can "sort" using: > > > > > > document_views asc,score > > > > > > ...is this possible via the solrconfig.xml/schema.xml file? > > > > > > I know its possible to do via adding sort= , but the Perl module > > > (WebService::Solr) doesn't seem to offer the option to pass in this > > > value > > > > > > :( > > > > > > TIA > > > > -- > > Markus Jelsma - CTO - Openindex > > http://www.linkedin.com/in/markus17 > > 050-8536620 / 06-50258350 -- Markus Jelsma - CTO - Openindex http://www.linkedin.com/in/markus17 050-8536620 / 06-50258350
Re: Possible to sort in .xml file?
Is there no generic parameter store in the Solr module you can use for passing the sort parameter? If not, you can define your sort parameter as default in the request handler you use in solrconfig. See the shipped config for examples. On Thursday 10 March 2011 11:25:01 Andy Newby wrote: > Hi, > > I'm trying to setup Solr so that we can "sort" using: > > document_views asc,score > > ...is this possible via the solrconfig.xml/schema.xml file? > > I know its possible to do via adding sort= , but the Perl module > (WebService::Solr) doesn't seem to offer the option to pass in this value > :( > > TIA -- Markus Jelsma - CTO - Openindex http://www.linkedin.com/in/markus17 050-8536620 / 06-50258350
Possible to sort in .xml file?
Hi, I'm trying to setup Solr so that we can "sort" using: document_views asc,score ...is this possible via the solrconfig.xml/schema.xml file? I know its possible to do via adding sort= , but the Perl module (WebService::Solr) doesn't seem to offer the option to pass in this value :( TIA -- Andy Newby a...@ultranerds.com