[prev in list] [next in list] [prev in thread] [next in thread] 

List:       solr-user
Subject:    Re: Find related words
From:       "Jack Krupansky" <jack () basetechnology ! com>
Date:       2013-07-04 14:03:03
Message-ID: 0F43792B62F84445B36152D9B074A5CE () JackKrupansky
[Download RAW message or body]

You can take a look at the MoreLikeThis/Find Similar feature. That gives you 
an approximation, but using documents rather than discrete terms. You would 
have to write a custom component of your own based on logic from MLT.

-- Jack Krupansky

-----Original Message----- 
From: Dotan Cohen
Sent: Thursday, July 04, 2013 8:09 AM
To: solr-user@lucene.apache.org
Subject: Find related words

How might one find the top related words for a given word in a Solr index?

For instance, given the following single-field documents:
1: I love chocolate
2: I love Solr
3: I eat chocolate cake
4: You will eat chocolate candy

Thus, given the word "Chocolate" Solr might find these top words:
I (3 times matched)
eat (2 times matched)
love, cake, you, will, candy (1 time each)

Thanks!

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic