Skip to content

Instantly share code, notes, and snippets.

bradfordcp /
Created September 2, 2010 19:12
Converts a WordNet prolog file into a flat file useful for Solr synonym matching.
* Based off of the Lucene prolog parser in the wordnet contrib package within the
* main Lucene project. It has been modified to remove the Lucene bits and generate
* a synonyms.txt file suitable for consumption by Solr. The idea was mentioned in
* a sidebar of the book Solr 1.4 Enterprise Search Server by Eric Pugh.
* @see <a href="">Lucene Sandbox WordNet page</a>
* @see <a href="">SVN Repository of the WordNet contrib</a>
* @see <a href="">Solr 1.4 Enterprise Search Server Book</a>