lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Király Péter (JIRA) <>
Subject [jira] [Commented] (LUCENE-2347) Dump WordNet to SOLR Synonym format
Date Thu, 02 Jun 2011 21:33:47 GMT


Király Péter commented on LUCENE-2347:

It seems, that the current version of this class does not make use any Lucene or Solr class,
so you can delete/comment out all org.apache.* imports, and thus no need for adding the jar
to the classpath.

I found a problem, that both notification messages like "Opening Prolog file" goes into the
same output as the main content, the synonyms, which is not an optimal solution.

The second parameter, the index directory is not used at all, just checked, which is not necessary.

Anyway: thanks for publishing this code.

> Dump WordNet to SOLR Synonym format
> -----------------------------------
>                 Key: LUCENE-2347
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: modules/analysis
>    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.
For more information on JIRA, see:

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

View raw message