Commit 83aa837f4568c6f083466c5cf472557303f66542
1 parent
bab97d5a
Exists in
master
and in
17 other branches
Remove wordnet from readme, as it no longer works [skip ci]
Showing
1 changed file
with
0 additions
and
21 deletions
Show diff stats
README.md
@@ -355,27 +355,6 @@ Search with: | @@ -355,27 +355,6 @@ Search with: | ||
355 | Product.search query, fields: [:name_tagged] | 355 | Product.search query, fields: [:name_tagged] |
356 | ``` | 356 | ``` |
357 | 357 | ||
358 | -### WordNet | ||
359 | - | ||
360 | -Prepopulate English synonyms with the [WordNet database](https://en.wikipedia.org/wiki/WordNet). | ||
361 | - | ||
362 | -Download [WordNet 3.0](http://wordnetcode.princeton.edu/3.0/WNprolog-3.0.tar.gz) to each Elasticsearch server and move `wn_s.pl` to the `/var/lib` directory. | ||
363 | - | ||
364 | -```sh | ||
365 | -cd /tmp | ||
366 | -curl -o wordnet.tar.gz http://wordnetcode.princeton.edu/3.0/WNprolog-3.0.tar.gz | ||
367 | -tar -zxvf wordnet.tar.gz | ||
368 | -mv prolog/wn_s.pl /var/lib | ||
369 | -``` | ||
370 | - | ||
371 | -Tell each model to use it: | ||
372 | - | ||
373 | -```ruby | ||
374 | -class Product < ApplicationRecord | ||
375 | - searchkick wordnet: true | ||
376 | -end | ||
377 | -``` | ||
378 | - | ||
379 | ### Misspellings | 358 | ### Misspellings |
380 | 359 | ||
381 | By default, Searchkick handles misspelled queries by returning results with an [edit distance](https://en.wikipedia.org/wiki/Levenshtein_distance) of one. | 360 | By default, Searchkick handles misspelled queries by returning results with an [edit distance](https://en.wikipedia.org/wiki/Levenshtein_distance) of one. |