Semantic analysis using Solr

lucene, semantics, solr

Solution

You may use the Lucene Wordnet contrib package to look for synonyms.

Optimizing Findability in Lucene and Solr gives other ways to expand queries.

Problem

I'm considering about adding semantic analysis to my Solr installation, but I don't exactly know where to start. Basically, I'd like Solr to be able to find "similar" words (taken from the body of the indexed documents). For example, if I search for "music", I should be able to query the semantic engine and obtain "rock", "pop", etc. (of course if these words appeared near to music in some of the indexed documents). I found this project, but I don't know if it is the correct place to start: http://code.google.com/p/semanticvectors/

Original source