You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by cmd <cm...@hotmail.com> on 2011/10/21 07:13:01 UTC

hierarchical synonym

if solr support hierarchical synonym 
for example:
animal->
  dog
  cat
  bird

use animal as query term and the result set should be contains
animal,dog,cat,bird
use dog as query term and the result set should be only contains dog rather
than other words

thanks.

--
View this message in context: http://lucene.472066.n3.nabble.com/hierarchical-synonym-tp3440000p3440000.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: hierarchical synonym

Posted by Lukáš Vlček <lu...@gmail.com>.
Hi,

I think what you are looking for are synonym rules like this:

dog, cat, bird => animal

I think the following link can be interesting to you as well:
http://wisdombase.net/wiki/index.php?title=Hiearchy_synonym_search_solution_in_solr

I am not a Solr expert but speaking about Lucene synonyms it is also
possible to use synonyms in Wordnet format, and it is possible to describe
hierarchical synonyms in Wordnet, but unfortunately, this feature is not
currently supported by Lucene Wordnet code (as far as I understand).

Regards,
Lukas


On Fri, Oct 21, 2011 at 7:13 AM, cmd <cm...@hotmail.com> wrote:

> if solr support hierarchical synonym
> for example:
> animal->
>  dog
>  cat
>  bird
>
> use animal as query term and the result set should be contains
> animal,dog,cat,bird
> use dog as query term and the result set should be only contains dog rather
> than other words
>
> thanks.
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/hierarchical-synonym-tp3440000p3440000.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Re: hierarchical synonym

Posted by pravesh <su...@yahoo.com>.
If I understood correctly, this seems you are wanting facets/hierarchical
facets.

Regds
Pravesh

--
View this message in context: http://lucene.472066.n3.nabble.com/hierarchical-synonym-tp3440000p3440090.html
Sent from the Solr - User mailing list archive at Nabble.com.