We're doing something similar: We want to combine search relevancy with a
fitness value computed from several other data sources.

For this, we pre-compute the fitness value for each document and store it a
flat file (lines of the format document_id=fitness_score) that we use an
externalFileField<http://lucene.apache.org/solr/api/org/apache/solr/schema/ExternalFileField.html>
to
access from Solr.

This file can be updated at regular intervals, e.g. to reflect recent views
or up/downvotes. It is re-read by solr on every commit.

The fitness field can then be included as a boost field in a (e)dismax
query.

/Martin

On Thu, Mar 29, 2012 at 9:56 AM, mads <mads...@yahoo.dk> wrote:

> Hello everyone!
>
> I am new to Solr and I have been doing a bit of reading about boosting
> search results. My search index consists of products with different
> attributes like a title, a description, a brand, a price, a discount
> percent
> and so on. I would like to do a fairly complex boosting, so that for
> example
> a hit on the brand name, a low price, a high discount percent is boosted
> compared to a hit in the title, higher prices etc. Basically I would like
> to
> make a more "intelligent" search with a my self-defined boosting algorithm
> of definition. I hope it makes sense. My question is if more experienced
> Solr people considers this possible, and how I can get started on this
> project? Is it possible to do a kind of a plugin, or?
>
> Regards Mads
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-advanced-boosting-tp3867025p3867025.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to