wgggfiy wrote:
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 ?
This is a very broad question. This technique is usually called broadening the search space (and its reverse is narrowing the search space). Or simply, "thesaurus lookup." To broaden, you will need to have a collection of groups of such equivalent terms. I don't have a specific source for obtaining the collection. Once you have the collection, then you will need to transform the query for a single term into a, for example, boolean query for all the terms. And, possibly, giving higher weight to the specific term the user used and lesser weight to its equivalents. For more details, try some Delicious searches for articles, for example, https://delicious.com/search?p=thesaurus%2Clucene https://delicious.com/search?p=synonyms%2Clucene -- Andrew --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org