Sunday, 15 September 2013

ruby on rails - Websolr, Heroku - NGramFilterFactory seemingly not working on production, works on Dev -



ruby on rails - Websolr, Heroku - NGramFilterFactory seemingly not working on production, works on Dev -

i have number of models searchable sunspot - both set partial words , both work fine in dev, neither making successful searches on partial words when go production (heroku + websolr), though else seems fine.

schema.xml -

<fieldtype name="text" class="solr.textfield" omitnorms="false"> <analyzer type="index"> <tokenizer class="solr.standardtokenizerfactory"/> <filter class="solr.standardfilterfactory"/> <filter class="solr.lowercasefilterfactory"/> <filter class="solr.porterstemfilterfactory"/> <filter class="solr.ngramfilterfactory" mingramsize="2" maxgramsize="15"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.standardtokenizerfactory"/> <filter class="solr.standardfilterfactory"/> <filter class="solr.lowercasefilterfactory"/> <filter class="solr.porterstemfilterfactory"/> </analyzer> </fieldtype>

i've run

heroku run rake sunspot:solr:reindex

and

heroku run rake sunspot:reindex(5000)

the search fine on various fields i'm searching, , fine uppercase , lowercase text entry, whilst passes on partial words on local machine, fails on heroku.

has else come across problem?

copy dev 'schema.xml' production 'schema.xml' through addons:open websolr, , reindex.

this reply useful - heroku - rsolr::error::http (rsolr::error::http - 404 not found

ruby-on-rails heroku solr

No comments:

Post a Comment