Skip to content. | Skip to navigation

Personal tools
Sections
You are here: Home Topics solr
Navigation
 

solr

Sep 07, 2009

Solr explanations in collective.solr search results

by Andrew Mleczko — last modified Sep 07, 2009 12:22 PM
Filed Under:

If you are using Solr score boost configuration, sometimes you need to know how certain document has been scored. Now you can see Solr explanation in Plone search results.

I'm still working on collective.solr branch. To help our customer to understand how certain documents has been scored, I've included in Plone search results an configurable option - debug query.

Configuration

Using it you can check directly in Plone, Solr score explanation (it's toggled by jQuery).

hidden:

Hidden explanation

and unfold:

Full explanation

Sep 03, 2009

Solr score in collective.solr

by Andrew Mleczko — last modified Sep 03, 2009 08:44 PM
Filed Under:

I've recently created a branch merging rt.solr with collective.solr. You can now boost search results' relevancy directly from Plone configuration

For one of our customer we have been developing Solr score configuration in Plone. After a short discussion with witsch we have decided to contribute our efforts and merge everything to collective.solr branch. This is just a simple configuration panel with additional score query builder. Every score-boost entry has 3 fields: index, value and score. In current implementation if you leave value empty - it will be populated with SearchableText index value - when building the query. This approach allows flexibility our customer needs.

Let's assume you want to sort results as follow:

  • Description has a query boost 10.0
  • portal_type=Document has a query boost 15.0
  • review_state=published has a query boost 20.0

In this way you can boost Description index (for which the value will be taken from SearchableText) and portal_type index (for which you can define the value manualy) at the same time.

to-do: we would like to add as an option Solr score explanation in search results (for users who want to know why certain document has certain score).

We have found also some problems with Lucene proximity algorithm which can give some problems (it should be configurable in Solr 1.4.0). 

Aug 26, 2009

How to use Solr score's in plone search

by Andrew Mleczko — last modified Aug 26, 2009 07:05 PM
Filed Under:

For one of our customers we need to implement more sophisticated search, then the default plone one. Using collective.solr and rt.solr it's quite easy.

Thanks to Jarn's collective.solr package you can easily use Solr search engine in Plone. What we have been missing in current implementation is a way to make use of solr/lucene score (relevancy). That's why we are working on rt.solr package - Solr score configuration implementation. Here's what we have so far:
 
Solr configuration
 
You can set score for Field and ZCText indexes and value for Field index (ZCTextIndex is using the SearchableText value from query). 
 
Above example then is translated to proper Solr query:
Description:%(searchterm)s^10 Title:%(searchterm)s^20 portal_type:Folder^10 portal_type:Document^30 review_state:published^100
 
and added to collective.solr search query. 
The result than is:
 
Results
 
Stay tuned for more information about release of rt.solr package ;-)