Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Solr field boost does not seem to be applied

Guest
Dec 23, 2013 Dec 23, 2013

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

429
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources