Skip to content
Permalink
Browse files

Remove wordnet from readme, as it no longer works [skip ci]

  • Loading branch information...
ankane committed Apr 12, 2019
1 parent bab97d5 commit 83aa837f4568c6f083466c5cf472557303f66542
Showing with 0 additions and 21 deletions.
  1. +0 −21 README.md
@@ -355,27 +355,6 @@ Search with:
Product.search query, fields: [:name_tagged]
```

### WordNet

Prepopulate English synonyms with the [WordNet database](https://en.wikipedia.org/wiki/WordNet).

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.

```sh
cd /tmp
curl -o wordnet.tar.gz http://wordnetcode.princeton.edu/3.0/WNprolog-3.0.tar.gz
tar -zxvf wordnet.tar.gz
mv prolog/wn_s.pl /var/lib
```

Tell each model to use it:

```ruby
class Product < ApplicationRecord
searchkick wordnet: true
end
```

### Misspellings

By default, Searchkick handles misspelled queries by returning results with an [edit distance](https://en.wikipedia.org/wiki/Levenshtein_distance) of one.

0 comments on commit 83aa837

Please sign in to comment.
You can’t perform that action at this time.