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 Analyzer (The one you pass to
QueryParser).

On Fri, Jun 15, 2012 at 6:27 AM, Kits89 <marcjuare...@gmail.com> wrote:
> 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...
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Does-any-one-know-how-to-expand-queries-using-Wordnet-with-Lucene-3-6-tp3989794.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>



-- 
lucidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to