lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Veena Channagouda (JIRA)" <>
Subject [jira] Commented: (LUCENE-2347) Dump WordNet to SOLR Synonym format
Date Fri, 22 Oct 2010 10:56:15 GMT


Veena Channagouda commented on LUCENE-2347:

These were the steps I followed to run the attached file with command promt.
Assuming Java bin is set in classpath.

Downloaded to C:\downloads. Modified the file to remove the package declaration
at the top .
Downloaded lucene3.0.2 jar from 
Downloaded WNprolog from 

C:\downloads>javac -classpath lucene-core-3.0.2.jar

C:\java Syns2Solr  c:\downloads\index > index.txt

U will have index.txt created with all the synonyms in it.
( is extracted from the downloaded WNprolog. )

> Dump WordNet to SOLR Synonym format
> -----------------------------------
>                 Key: LUCENE-2347
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: contrib/analyzers
>    Affects Versions: 3.0.1
>            Reporter: Bill Bell
>         Attachments:
> This enhancement allows you to dump v2 of WordNet to SOLR synonym format! Get all your
syns loaded easily.
> 1. You can load all synonyms from WordNet V2 to
SOLR by first using the Sys2Index program
> Get WNprolog from
> 2. We modified this program to work with SOLR (See attached) on in
> vi /vol/src/lucene/contrib/wordnet/src/java/org/apache/lucene/wordnet/
> 3. Run ant
> 4. java -classpath /vol/src/lucene/build/contrib/wordnet/lucene-wordnet-3.1-dev.jar org.apache.lucene.wordnet.Syns2Solr
prolog/ solr > index_synonyms.txt

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message