tag:support.flying-sphinx.com,2011-01-05:/discussions/problems/61102-lemmatize-pathing-issuesFlying Sphinx: Discussion 2020-05-12T16:33:03Ztag:support.flying-sphinx.com,2011-01-05:Comment/481932022020-03-30T21:19:05Z2020-03-30T21:19:07ZLemmatize pathing issues?<div><p>Hey there, I'm running into a problem with morphology when deploying to Heroku, it seems to not be finding the dictionary so I must be not loading it properly for FlyingSphinx:</p>
<p>using config file '/mnt/local/flying-sphinx/379dafcbd5f9bc6a6/sphinx.conf'...<br>
indexing index 'document_core'...<br>
FATAL: index 'document_core': failed to open ./en.pak: No such file or directory</p>
<p>I've enabled common_sphinx_configuration, and set lemmatizer_base properly and can run this all locally just fine using ThinkingSphinx. Is there any additional steps or configurations required to make this work properly with FlyingSphinx? Or am I needing to shift things away from the yml config file and into the indice? Not sure how to set common configs via the indice..</p>
<p>My sphinx.yml is below:</p>
<p>development:<br>
address: 127.0.0.1 mysql41: 9306 morphology: lemmatize_en_all wordforms: <%= Rails.root.join("config", "sphinx", "wordforms", "en.txt") %> stopwords: <%= Rails.root.join("config", "sphinx", "stopwords", "stopwords-en.txt") %><br>
common_sphinx_configuration: true lemmatizer_base: <%= Rails.root.join("config", "sphinx", "dicts") %></p>
<p>production:<br>
address: 127.0.0.1 mysql41: 9306 morphology: lemmatize_en_all wordforms: <%= Rails.root.join("config", "sphinx", "wordforms", "en.txt") %> stopwords: <%= Rails.root.join("config", "sphinx", "stopwords", "stopwords-en.txt") %><br>
common_sphinx_configuration: true lemmatizer_base: <%= Rails.root.join("config", "sphinx", "dicts") %></p></div>Dave Fawcetttag:support.flying-sphinx.com,2011-01-05:Comment/481932022020-03-31T10:39:11Z2020-03-31T10:39:11ZLemmatize pathing issues?<div><p>Hi Dave,</p>
<p>I think the issue here is that the flying-sphinx gem doesn’t currently support sending through dictionary files in the lemmatizer_base directory to the Flying Sphinx servers. I’ll need to work through that - probably a couple of days away I’m afraid, but will aim for something as soon as possible.</p>
<p>Just from the perspective of you being able to use this change as soon as possible: are you using the latest thinking-sphinx and flying-sphinx releases?</p>
<p>Will keep you posted on this change.</p>
<p>Cheers,</p>
<p>— Pat</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/481932022020-03-31T14:42:41Z2020-03-31T14:42:41ZLemmatize pathing issues?<div><p>That would be amazing Pat, thanks so much. I'm using flying-sphinx (2.1.4) as well as thinking-sphinx (4.4.1)</p>
<p>If you'd like to see anything else just let me know!</p>
<hr></div>Davidtag:support.flying-sphinx.com,2011-01-05:Comment/481932022020-04-04T11:37:22Z2020-04-04T11:37:22ZLemmatize pathing issues?<div><p>Hi Dave,</p>
<p>I’ve just rolled out the changes for this - you’ll need to update flying-sphinx to v2.2.0 (beyond this fix, the only other change in the release is the dropping of support for Ruby 2.2.x), and then the dictionary files should be uploaded as part of running the configure/index/rebuild tasks. Certainly, it worked with my testing, but keen to hear if it all goes smoothly for you too!</p>
<p>Cheers,</p>
<p>— Pat</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/481932022020-05-12T16:33:02Z2020-05-12T16:33:03ZLemmatize pathing issues?<div><p>Thanks much Pat, it looks to be working for me now! I have another question, but will open a new discussion for it.</p></div>Dave Fawcett