Skip to main content
December 23, 2013
Question

Solr field boost does not seem to be applied

  • December 23, 2013
  • 0 replies
  • 445 views

I am indexing and searching and attempting to boost the results if found in a specfifc field, but the results do not appear as i expect

here is the cfindex

<cfindex

        query="getUsers"

        collection="ilpaUserSearch"

        action="refresh"

        type="Custom"

        key="CUSTOMERCD"

        title="USERS"

        body="LASTNAME, FIRSTNAME, JOBTITLE,ORGNAME"

        salutation_s = "LONGSALUTATION"

        member_s = "CUSTOMERCD,ISMEMBERFLG"

        jobtitle_s = "JOBTITLE"

        orgname_s = "LORGNAME"

        orgname_out_s = "ORGNAME"

        <!--- email_s = "email" --->

        email_s = ""

        last_name_s = "LASTNAME"

        first_name_s = "FIRSTNAME"

        org_code_s = "ORGCD"

        fieldboost="last_name_s:40,first_name_s:20,jobtitle_s:2,orgname_s:2"

    >

here is the search

<cfsearch 

            collection = "ilpausersearch"

            name = "search"

            contextHighlightBegin = '<span class="search-format">'

            contextHighlightEnd = "</span>"

            contextPassages = "2"

            criteria = 'last_name_s#qSearch#^40 first_name_s#qSearch#^20 jobtitle_s:#qSearch#^2 orgname_s:#qSearch#^2 '

            status = "searchstatus"

            startrow = "#iStart#"

            maxrows= "#iGLOBAL_MAX_ROWS#"

            suggestions = "10"

            >

no matter waht i change only teh results of body are search and scored accordingly

How do i set last name to score higher than every thing else and first name to score higher than everything except job and organization?

thanks

J

This topic has been closed for replies.