[TYPO3-Solr] Solr boost field

Stephan Schuler Stephan.Schuler at netlogix.de
Mon Jun 19 18:48:12 CEST 2017


Hey Csaba.

I think boosting is not what you want.

Imagine searching for “something” and have that expression in one documents “title” property and in another documents “body” property.
Boosting the title over body means that the document where “something” occurs in the “title” property is more worthy than the document where “something” occurs in the “body” property.
The number you always add to boosting indicate how much more worthy it is. You can have a document where “something” occurs only once in the title being calculated higher than a document where “something” occurs three times in the body, but less than a document where “something” occurs four times in the body.
That’s what boosting is for. Count occurrences of your search word and apply the boosting factor.

If you want to have actual sorting, you should use sorting.
https://forge.typo3.org/projects/extension-solr/wiki/Tx_solrsearch#sorting

You actually *have* sorting in a default setup. Only you don’t “sort by title” but you “sort by score”, where “score” is the calculation result including boost factors.
https://wiki.apache.org/solr/CommonQueryParameters#sort

Regards,


Am 19.06.17, 14:56 schrieb "typo3-project-solr-bounces at lists.typo3.org im Auftrag von Csaba Lorinczi Hartlein" <typo3-project-solr-bounces at lists.typo3.org im Auftrag von csaba.lorinczi at reea.net>:

    Hi,

    i have a question regarding to boost search result by a given field. I
    need to make a custom extension which extend page properties on that way
    the user can add a value to a field(boost) will influence  the search
    result order by positioning. So far this thing i managed to do and with
    the following TS config the new field appear too in the solr index fields:

    plugin.tx_solr.index.queue {
         newfield = 1
           boostsearchresults {
             table = pages
             fields {
                     newfield_intS =     newfield_intS
             }
         }
    }

    ...

    So basicly i'm looking for some TS configuration to boost a page where
    this "newfield_intS" value is changed or it has a higher value than the
    other ones. I did some researches but didn't find yet the proper
    solution. Any help would be great, Thank you.


Stephan Schuler
Web-Entwickler | netlogix Web Solutions

Telefon: +49 (911) 539909 - 0
E-Mail: Stephan.Schuler at netlogix.de
Web: websolutions.netlogix.de



----------------------------
Neu: Wir sind Amazon Web Services Partner. Mehr erfahren:
https://websolutions.netlogix.de/technologie/amazon-web-services-aws
----------------------------




netlogix GmbH & Co. KG
IT-Services | IT-Training | Web Solutions
Neuwieder Straße 10 | 90411 Nürnberg
Telefon: +49 (911) 539909 - 0 | Fax: +49 (911) 539909 - 99
E-Mail: info at netlogix.de | Web: http://www.netlogix.de

netlogix GmbH & Co. KG ist eingetragen am Amtsgericht Nürnberg (HRA 13338)
Persönlich haftende Gesellschafterin: netlogix Verwaltungs GmbH (HRB 20634)
Umsatzsteuer-Identifikationsnummer: DE 233472254
Geschäftsführer: Matthias Schmidt



_______________________________________________
    TYPO3-project-solr mailing list
    TYPO3-project-solr at lists.typo3.org
    http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr




More information about the TYPO3-project-solr mailing list