Wednesday, 15 April 2015

Ruby on Rails - Sunspot Solr search configuration -



Ruby on Rails - Sunspot Solr search configuration -

i configured sunspot/solr in ruby on rails project , it's working fine. thus, it's response time great, it's finding records quickly.

but i've 2 questions/problems can't find resolve , cannot find info or explanation about.

a) want know how alter engine behavior, e.g. when search "windows" can find records containing word. if search "window" no record returned. there way alter parameter alter behavior?

b) want know if implement file uploading script or utility, able index related files, mean, if upload pdf attached record (using activerecord). solr/sunspot able index , find it.

regards.

i can provide answers solr perpective, check if can map sunspot apis :-

for windows , window search, need enable stemming on field. stemming cut down words roots , allow match results root word always. check how can add together filters fields defined in sunspot or can define text field in schema.xml stemming filter configured.

solr extract handler provides ability consume rich document , parse contents. solr used apache tika underlying , can parse of rich documents format. check matching api in sunspot. know solrj provides easy api this.

ruby-on-rails ruby configuration solr sunspot

No comments:

Post a Comment