Skip to main content
Participating Frequently
November 4, 2010
Question

Solr Morelikethis Coldfusion

  • November 4, 2010
  • 2 replies
  • 817 views

Hi, I've been reading about the Morelikethis SearchHandler and decided to give it a try, it works perfectly with Solr, using it in the StandardHandler and as a Handler itself... but I'm having a problem... I don't know how to output its result using Coldfusion, does anyone knows how? I'll really appreciate the help...

    This topic has been closed for replies.

    2 replies

    cfjedimaster
    Inspiring
    November 4, 2010

    As far as I know, you cannot change what cfsearch returns to you. If

    you want the "additional" data as you see there you would need to use

    cfhttp to hit the solr instance.

    Btw - you may want to try the suggestions feature. It is close (kinda0.

    IxDelgaAuthor
    Participating Frequently
    November 4, 2010

    Could you give some tips on how to use the cfhttp to hit the Solr instance... I want to try it out...

    cfjedimaster
    Inspiring
    November 4, 2010

    Solr is usable over HTTP calls. I'd check the Solr docs for details though.

    Participating Frequently
    November 4, 2010

    If you show us what the results look like we could show you how to output it.  Got a dump/screenshot?

    IxDelgaAuthor
    Participating Frequently
    November 4, 2010

    the <1st name="moreLikeThis"> is the handler giving me more options to the term I searched at first... that's how Handler outputs the response using the Solr interface...