mix khafra.gen.wordform (khafra_search v0.2.1)
Wordforms allow you to specify synonym meanings in words so they are indexed as equivalent
See more: http://sphinxsearch.com/docs/manual-2.3.2.html#conf-wordforms
Generating a wordform will add it to your wordform configuration. To activate in your index add to your Elixir config something like:
Example
config :khafra_search, :index_defaults,
wordforms: "[cwd!]/sphinx/data/wordforms.txt"
Example
> mix khafra.gen.wordform "s02e02" "season 2 episode 2"
> mix khafra.gen.wordform "walks" "walk"
> mix khafra.gen.wordform "walked" "walk"
> mix khafra.gen.wordform "walking" "walk"
Link to this section Summary
Functions
Callback implementation for Mix.Task.run/1
.
Link to this section Functions
Link to this function
run(arg1)
Callback implementation for Mix.Task.run/1
.