--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<catalog_controller.rb>
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-development+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<catalog_controller.rb><solrconfig.xml>
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.
<solrconfig.xml>
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.
<solr.log><blacklight.log>
/select?facet=true&q=ZESTORETIC&spellcheck.q=ZESTORETIC&qf=id+DOCNUM+APPLID+ASSTYPEID+SUBMID+ASSDATE+REVORGID+REVROLE+PRODUCTID+PRODUCTDRUGTYPECD+PRODDRUGNAME+PRODRLDDRUGNAME&qt=search&wt=ruby&rows=10&debug=true
{'responseHeader'=>{'status'=>0,'QTime'=>1,'params'=>{'facet'=>'true','q'=>'ZESTORETIC','spellcheck.q'=>'ZESTORETIC','qf'=>'id DOCNUM APPLID ASSTYPEID SUBMID ASSDATE REVORGID REVROLE PRODUCTID PRODUCTDRUGTYPECD PRODDRUGNAME PRODRLDDRUGNAME','debug'=>'true','wt'=>'ruby','qt'=>'search','rows'=>'10'}},'response'=>{'numFound'=>0,'start'=>0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}},'debug'=>{'rawquerystring'=>'ZESTORETIC','querystring'=>'ZESTORETIC','parsedquery'=>'text:zestoretic','parsedquery_toString'=>'text:zestoretic','explain'=>{},'QParser'=>'LuceneQParser','timing'=>{'time'=>1.0,'prepare'=>{'time'=>1.0,'query'=>{'time'=>1.0},'facet'=>{'time'=>0.0},'mlt'=>{'time'=>0.0},'highlight'=>{'time'=>0.0},'stats'=>{'time'=>0.0},'debug'=>{'time'=>0.0}},'process'=>{'time'=>0.0,'query'=>{'time'=>0.0},'facet'=>{'time'=>0.0},'mlt'=>{'time'=>0.0},'highlight'=>{'time'=>0.0},'stats'=>{'time'=>0.0},'debug'=>{'time'=>0.0}}}}}
Thank you.
It’s querying for “text:zestoretic”, using the lucene query parser. Apparently that term (zestoretic) isn’t in the field named “text”. Maybe you’re not even using a field named “text”(but it must be defined in your schema at least or you’d get an error).Probably the simplest thing to do is add :defType => ‘edismax’ to your catalog_controller default solr parameters. Try adding &defType=edismax to that Solr request below and see if that solves the problem?Erik
Showing C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/blacklight-4.5.0/app/views/catalog/_document.html.erb where line #5 raised:
undefined method `gsub' for 38:FixnumExtracted source (around line #5):
2 3 4 5 6 7 8 |
|
HI Erik,So when I add the config to the controller, I get some new error on blacklight.NoMethodError in Catalog#index
Showing C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/blacklight-4.5.0/app/views/catalog/_document.html.erb where line #5 raised:
undefined method `gsub' for 38:FixnumExtracted source (around line #5):
2 3 4 5 6 7 8 <div class="document <%= render_document_class document %>"><%= render :partial => 'document_header', :locals => { :document => document, :document_counter => document_counter } %><%= render_document_partial document, :thumbnail, :document_counter => document_counter %><% # main container for doc partial view -%><%= render_document_partial document, :index, :document_counter => document_counter %>
On Mon, Jan 6, 2014 at 4:51 PM, Erik Hatcher <erikh...@mac.com> wrote:
Sorry for the "forward" but original bounced because of incorrect from address.
It’s querying for “text:zestoretic”, using the lucene query parser. Apparently that term (zestoretic) isn’t in the field named “text”. Maybe you’re not even using a field named “text”(but it must be defined in your schema at least or you’d get an error).Probably the simplest thing to do is add :defType => ‘edismax’ to your catalog_controller default solr parameters. Try adding &defType=edismax to that Solr request below and see if that solves the problem?
Erik
On Jan 6, 2014, at 4:09 PM, Kaushik <kaush...@gmail.com> wrote:
On Mon, Jan 6, 2014 at 3:56 PM, Erik Hatcher <erikh...@mac.com> wrote:
/select?facet=true&q=ZESTORETIC&spellcheck.q=ZESTORETIC&qf=id+DOCNUM+APPLID+ASSTYPEID+SUBMID+ASSDATE+REVORGID+REVROLE+PRODUCTID+PRODUCTDRUGTYPECD+PRODDRUGNAME+PRODRLDDRUGNAME&qt=search&wt=ruby&rows=10&debug=true
The first query was the result of executing a search whithout entering anything in the AllFields field. As you mentioned, adding &q=* to it, brings up documents on solr. Not sure why blacklight is appending it.On the other hand, when I executed the 2nd query with the debug ON, I get the following. Not sure what is wrong.{'responseHeader'=>{'status'=>0,'QTime'=>1,'params'=>{'facet'=>'true','q'=>'ZESTORETIC','spellcheck.q'=>'ZESTORETIC','qf'=>'id DOCNUM APPLID ASSTYPEID SUBMID ASSDATE REVORGID REVROLE PRODUCTID PRODUCTDRUGTYPECD PRODDRUGNAME PRODRLDDRUGNAME','debug'=>'true','wt'=>'ruby','qt'=>'search','rows'=>'10'}},'response'=>{'numFound'=>0,'start'=>0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}},'debug'=>{'rawquerystring'=>'ZESTORETIC','querystring'=>'ZESTORETIC','parsedquery'=>'text:zestoretic','parsedquery_toString'=>'text:zestoretic','explain'=>{},'QParser'=>'LuceneQParser','timing'=>{'time'=>1.0,'prepare'=>{'time'=>1.0,'query'=>{'time'=>1.0},'facet'=>{'time'=>0.0},'mlt'=>{'time'=>0.0},'highlight'=>{'time'=>0.0},'stats'=>{'time'=>0.0},'debug'=>{'time'=>0.0}},'process'=>{'time'=>0.0,'query'=>{'time'=>0.0},'facet'=>{'time'=>0.0},'mlt'=>{'time'=>0.0},'highlight'=>{'time'=>0.0},'stats'=>{'time'=>0.0},'debug'=>{'time'=>0.0}}}}}Thank you.
--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-development+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-development+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.