tag:support.flying-sphinx.com,2011-01-05:/discussions/questions/7-wordforms-works-but-only-unidirectionallyFlying Sphinx: Discussion 2018-10-19T03:09:27Ztag:support.flying-sphinx.com,2011-01-05:Comment/91222962011-08-06T08:49:33Z2011-08-06T08:49:33Zwordforms works, but only unidirectionally<div><p>Hi Pieter</p>
<p>I'm not sure if it works both ways - it's not entirely clear in
the <a href=
"http://sphinxsearch.com/docs/manual-1.10.html#conf-wordforms">Sphinx
documentation</a>, and I've not used wordforms myself. One thing to
double check is that you need to restart Sphinx <em>and</em>
reindex whenever you change the wordforms file - <code>heroku rake
fs:index fs:restart</code> should do that job (as would fs:rebuild,
though that'll bring Sphinx down while indexing happens).</p>
<p>Can you confirm whether it works as expected after restarting
and reindexing?</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/91222962011-08-06T08:54:53Z2011-08-06T08:54:56Zwordforms works, but only unidirectionally<div><p>Server was restarted and no difference. Only (unofficial)
discussions I've found have suggested that is not direction
specific, but it seems to be in our case.</p></div>Pietertag:support.flying-sphinx.com,2011-01-05:Comment/91222962011-08-07T03:17:39Z2011-08-07T03:17:39Zwordforms works, but only unidirectionally<div><p>Just following up on this - I've done some testing, you're
right, it should work in both directions (and does for my test). Is
'gold' and 'yellow' the failing example from your file? Or is it
something else?</p>
<p>The reason I ask is that wordforms are applied after tokenising
via the charset table (<a href=
"http://sphinxsearch.com/docs/manual-1.10.html#conf-charset-table">which
defaults to the UTF-8 set</a> - notably, converting upper-case to
lower-case, probably stripping out punctuation as well) - so you'll
want to make sure your wordforms file only has words in their
tokenised form (lowercase, no punctuation).</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/91222962011-08-07T04:03:19Z2011-08-07T04:03:21Zwordforms works, but only unidirectionally<div><p>There were a few apostrophes in there. Got rid of them and still
no change.<br>
Converted all to lowercase. No change<br>
I've duplicated each term make specifying them in each direction
for the moment and it works for the moment. Not a big deal.</p></div>Pieter