The code is here: http://pastebin.com/50ugqRfA

<http://pastebin.com/50ugqRfA>and my schema.xml configuration entry for
similarity is:
<similarity class="com.umamao.solr.ShortFieldNormSimilarity"/>

Thanks

Alex

On Mon, May 16, 2011 at 2:01 PM, Gora Mohanty <g...@mimirtech.com> wrote:

> On Mon, May 16, 2011 at 10:04 PM, Alex Grilo <a...@umamao.com> wrote:
> > Hi,
> > I'm new to Solr and I'm trying to use my custom Similarity class but I've
> > not succeeded on that.
> >
> > I added some debug information and my class is loaded, but it is not used
> > when queries are made.
> >
> > Does someone could help me? If any further information is relevant, I can
> > provide it.
> [...]
>
> Have you overriden the default similarity class in schema.xml?
> Though, if your class is getting loaded, that should be the case.
>
> The code for the class should be pretty small, right? Please post
> it here, or better yet at pastebin.com, and send a link to this list.
>
> Regards,
> Gora
>

Reply via email to