Hi Matt, I think I ran into another issue. I've checked a bunch of
docs which I think should be indexed, but they all return false.
I think its because I have never declared id as field to index so
maybe solr doesn't actually call its internal id column "id". I want
to query based on the id that solr is using, so I didn't think I was
supposed to index the id explicitly in my sunspot configuration.
Couple of questions, how can I see the meta data about the system such
as how many items are indexed in total? Is there a way I can see what
fields I can query against? So is id the field I should be querying
against? Solr is still a blackbox to me, I'm still learning it , all
my current interactions with it have been through rsolr and sunspot.
This is what my sunspot configuration looks like:
Sunspot.setup(User) do
text :name
text :login
text :description
string :login
string :all_lists, :multiple => true do
titles_from_lists.map{|l| l.split(/-|_|\//)}.flatten
end
text :all_lists do
titles_from_lists.map{|l| l.split(/-|_|\//)}.flatten
end
dynamic_string :lists do
#dynamic_text :lists do
count = 0 #count is used so there are no name collisions
#lists.inject({}) do |hash, l|
titles_from_lists.inject({}) do |hash, l|
data = l.split('/',6)
hash["#{count}_#{data[5]}".to_sym] = {
:value => "#{data[5]} #{data[6]}",
#:boost => data[2] == 0 ? 1 : data[2]
:boost => 1
}
count += 1
hash
end
end
end
> > I know I have a server running because I can see "welcome to solr" athttp://
127.0.0.1:8983/solr/inthe browser.