Does any one know how to expand queries using Wordnet with Lucene 3.6?

2012-06-15 Thread Kits89
I've found the class WordnetSynonymParser in org.apache.lucene.analysis.synonym but there aren't examples of its usage neither in the API nor in google. Does any one have experience with it? Thank you! EDIT: I know that there used to be the class SynExpand, but with version 3.6 it disappeared...

Re: Does any one know how to expand queries using Wordnet with Lucene 3.6?

2012-06-15 Thread Robert Muir
See its test: http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_6/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/synonym/TestWordnetSynonymParser.java The idea is you parse the wordnet file with this thing, and create a SynonymFilter that you use in your query

Re: Does any one know how to expand queries using Wordnet with Lucene 3.6?

2012-06-15 Thread Péter Király
Hi, maybe not the one you are looking for, only a similar thing what I have create: http://drupalcode.org/project/xc.git/tree/refs/heads/6.x-1.x:/xc_wordnet. This is a Drupal module and a distinct Java class. The Java class creates an XML file, which can be imported into Solr, to build a Wordnet