Similar terms or ontology?


(David Jensen-2) #1

Is there any way in ES that I can specify an ontology of terms that
should match as being equivalent. For instance a search for "Dave"
should match "David" and a search for "David" should match "Dave".

David


(ppearcy) #2

I don't think there is any out of the box support, but I believe that
a custom analyzer could be written to transform tokens to their base
meaning. Baked in support would be super cool, though.

Best Regards,
Paul

On Sep 10, 1:08 pm, David Jensen djense...@gmail.com wrote:

Is there any way in ES that I can specify an ontology of terms that
should match as being equivalent. For instance a search for "Dave"
should match "David" and a search for "David" should match "Dave".

David


(Paul Loy) #3

I would guess that this what you would need is word stemming. Lucene has a
SnowballAnalyzer (
http://lucene.apache.org/java/2_9_1/api/contrib-snowball/org/apache/lucene/analysis/snowball/SnowballAnalyzer.html)
for word stemming. So you can probably use that analyzer?

On Fri, Sep 10, 2010 at 8:08 PM, David Jensen djensen47@gmail.com wrote:

Is there any way in ES that I can specify an ontology of terms that
should match as being equivalent. For instance a search for "Dave"
should match "David" and a search for "David" should match "Dave".

David

--

Paul Loy
paul@keteracel.com
http://www.keteracel.com/paul


(Shay Banon) #4

The http://www.elasticsearch.com/docs/elasticsearch/index_modules/analysis/docs
covers the analyzers, tokenizers and token filters you can use. For
example, you can try the porterstem (
http://www.elasticsearch.com/docs/elasticsearch/index_modules/analysis/tokenfilter/)
token filter as part of custom analyzer you build.

On Fri, Sep 10, 2010 at 10:26 PM, Paul Loy keteracel@gmail.com wrote:

I would guess that this what you would need is word stemming. Lucene has a
SnowballAnalyzer (
http://lucene.apache.org/java/2_9_1/api/contrib-snowball/org/apache/lucene/analysis/snowball/SnowballAnalyzer.html)
for word stemming. So you can probably use that analyzer?

On Fri, Sep 10, 2010 at 8:08 PM, David Jensen djensen47@gmail.com wrote:

Is there any way in ES that I can specify an ontology of terms that
should match as being equivalent. For instance a search for "Dave"
should match "David" and a search for "David" should match "Dave".

David

--

Paul Loy
paul@keteracel.com
http://www.keteracel.com/paul


(Otis Gospodnetić) #5

Maybe you simply need synonyms functionality?

Otis

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/

On Sep 10, 3:08 pm, David Jensen djense...@gmail.com wrote:

Is there any way in ES that I can specify an ontology of terms that
should match as being equivalent. For instance a search for "Dave"
should match "David" and a search for "David" should match "Dave".

David


(system) #6