Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
太阳黑子Solr不';不返回任何结果,但不返回错误_Solr_Sunspot Rails_Sunspot Solr - Fatal编程技术网

太阳黑子Solr不';不返回任何结果,但不返回错误

太阳黑子Solr不';不返回任何结果,但不返回错误,solr,sunspot-rails,sunspot-solr,Solr,Sunspot Rails,Sunspot Solr,环境:Rails 3.0.1 Ruby 1.8.7 MySQL 5.5.16社区服务器…Jdk 1.6 gem 'sunspot_rails' gem 'sunspot_solr' 型号: class Item < ActiveRecord::Base searchable do text :title,:description end end 我启动solr服务器,它启动正常,我在 询问。。。。q=。但不返回任何结果 我运行rake太阳黑子:reindex。。。

环境:Rails 3.0.1 Ruby 1.8.7 MySQL 5.5.16社区服务器…Jdk 1.6

gem 'sunspot_rails'
gem 'sunspot_solr'
型号:

class Item < ActiveRecord::Base 

  searchable do
    text :title,:description
  end

end
我启动solr服务器,它启动正常,我在

询问。。。。q=。但不返回任何结果

我运行rake太阳黑子:reindex。。。。在RAILS\u ROOT\solr\data\development\index下创建新的索引文件

我再次使用相同的查询查询Solr admin。仍然没有结果…试图找出错误。

架构浏览器将显示索引中是否有任何数据

http://localhost:8982/solr/admin/schema.jsp
寻找

type:Item
在Solr admin页面中,如果您的数据库中有任何项目,则应显示结果

I can't be cause
HTTP ERROR 500 Problem access/Solr/admin/schema.jsp。原因:未配置JSP支持
。我尝试了
Topic.create!(内容:“测试雷达提案”,用户id:1)。索引
but
r=Topic.search{fulltext'radar};放置r.hits
为空数组。。。我该怎么办?
type:Item