Take a look at MoreLikeThisQuery:
http://lucene.apache.org/core/4_1_0/queries/org/apache/lucene/queries/mlt/MoreLikeThisQuery.html

And MoreLikeThis itself:
http://lucene.apache.org/core/4_1_0/queries/org/apache/lucene/queries/mlt/MoreLikeThis.html

So, the idea is search for documents using your keyword(s) and ask Lucene to extract relevant terms from the top document(s).

-- Jack Krupansky

-----Original Message----- From: wgggfiy
Sent: Wednesday, January 30, 2013 12:27 PM
To: java-user@lucene.apache.org
Subject: How to find related words ?

In short,
you put in a term like "Lucene",
and The ideal output would be "solr", "index", "full-text search", and so
on.
How to make it ? to find the related words. thx
My idea is to use FuzzyQuery, or MoreLikeThis, or calc the score with all
the terms and then sort.
Any idea ?



-----
--------------------------
Email: wuqiu.m...@qq.com
--------------------------
--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-find-related-words-tp4037462.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

---------------------------------------------------------------------
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