#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    6
    Rep Power
    0

    Solr Suggestions


    I've used suggestions in Verity before, but I switched to Solr and I am using CF9.
    The docs (can't post URL - newbie) give info about suggestions, but they only reference Verity.

    Can suggestions be used with Solr too?

    Thanks
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,281
    Rep Power
    968
    I'm actually not sure, but I *think* the Solr integration was done in such a way as to be as "invisible" as possible compared to the previous Verity integration.

    So I would say it's worth a try.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    6
    Rep Power
    0
    Originally Posted by kiteless
    I'm actually not sure, but I *think* the Solr integration was done in such a way as to be as "invisible" as possible compared to the previous Verity integration.

    So I would say it's worth a try.
    Thanks, I tried, but nothing displays in Solr, but this code worked in Verity..

    Here is the search:
    <cfsearch
    name = "search_all"
    collection = "title_only, keywords, docs"
    criteria = "#Form.SearchSOP#"
    status = "info"
    suggestions="5"
    maxrows = "100">

    Then based on what was returned, I offer this:
    <cfif info.FOUND LTE 5 AND isDefined("info.SuggestedQuery")>
    <br />
    Did you mean:<cfoutput>
    <a href="search.cfm?Form.SearchSOP=#info.SuggestedQuery#&Form.searchtype=2">#info.SuggestedQuery#</a></cfoutput>
    <br />

    </cfif>

    Even when I put in an intentional typo and no results are returned, I don't get any suggestions.
  6. #4
  7. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,281
    Rep Power
    968
    Hmm this is a couple years old but seems to indicate that the Solr search supports suggestions. Not sure if that helps you directly but at least you know that it supports suggestions. http://www.raymondcamden.com/index.c...RMSolr-Example
  8. #5
  9. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    woman affiliated applause to grab for their Franch men pk Louis vuitton Bags


    doudoune Moncler Femme
    Armani Parka Homme
    Doudoune G-star Homme
    Karen Millen Dresses
    Cheap North Face Jackets

    Moderator Edit: Not only am I a sleazy spammer, I'm so dumb that I don't even know that newcomers to the forum can't post links. So I got banned and didn't even get my linkbait to work! ha ha

    Comments on this post

    • portcitysoftwar disagrees
    • salem disagrees : Another lame-assed SEO twit
    Last edited by kiteless; January 5th, 2013 at 09:24 PM.

IMN logo majestic logo threadwatch logo seochat tools logo