Use different Solr Similarity algo for every search

Posted by snickernet on Stack Overflow See other posts from Stack Overflow or by snickernet
Published on 2010-05-21T06:00:09Z Indexed on 2010/05/21 19:30 UTC
Read the original article Hit count: 216

Filed under:

Hi Guys,

Is possible in Solr 1.4 to specify which similarity class to use for every search within a single index?

Let's say, I got 2 type of search (keyword and brand). For keyword search, I want to use the DefaultSimilarity class. But, for brand search, I want to use my CustomSimilarity class.

I've been modifying the schema.xml to specify a single similarity class to use. But, I came to this requirement that I have to use 2 different similarity classes.

I'll be glad to here your thoughts on this.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about solr