Re: How to use $docBoost in data import handler?

2013-05-21 Thread Arun Rangarajan
ache.org/solr/DataImportHandler#Special_Commands, I am > > trying to use index-time document-level boost in data import handler. I > > have a database table 'boosts' in which the document boosts are stored > > against the solr unique key. > > > > In data-confi

Re: How to use $docBoost in data import handler?

2013-05-21 Thread Alexandre Rafalovitch
-level boost in data import handler. I > have a database table 'boosts' in which the document boosts are stored > against the solr unique key. > > In data-config.xml, I am using: > > pk="id" >query="SELECT d.id, d.name, b.boost AS '$docBoost

How to use $docBoost in data import handler?

2013-05-21 Thread Arun Rangarajan
. In data-config.xml, I am using: There are a total of 116 results for that query. (I am assuming LEFT JOIN is the correct thing to do here, so missing entries will get NULL for $docBoost, so they should get the default boost of 1.) For testing, I have the boosts table with only 1 row for id 1 with

Re: docBoost with "fq" search

2012-03-09 Thread Ahmet Arslan
> if you store your boost in a search-able numeric field... You can simply sort by that field too. q=*:*&sort=your_boost_field desc

Re: docBoost with "fq" search

2012-03-09 Thread Tanguy Moal
'm really suprised because I always thought docBoost as a kind of sorting tool. And I used in that way, I'm giving big boost to the documents I want back first in search. Do you think there is a trick to force the usage of docBoost in my special case? Gian Marco On Wed, Mar 7, 2012 a

Re: docBoost with "fq" search

2012-03-09 Thread Gian Marco Tagliani
Hi Ahmet, thanks for the answer. I'm really suprised because I always thought docBoost as a kind of sorting tool. And I used in that way, I'm giving big boost to the documents I want back first in search. Do you think there is a trick to force the usage of docBoost in my special ca

Re: docBoost with "fq" search

2012-03-07 Thread Ahmet Arslan
--- On Wed, 3/7/12, Gian Marco Tagliani wrote: > From: Gian Marco Tagliani > Subject: docBoost with "fq" search > To: solr-user@lucene.apache.org > Date: Wednesday, March 7, 2012, 3:11 PM > Hi All, > I'm seeing strange behavior with my Solr (version 3.4). &g

docBoost with "fq" search

2012-03-07 Thread Gian Marco Tagliani
Hi All, I'm seeing strange behavior with my Solr (version 3.4). For searching I'm using the "q" and the "fq" params. At index-time I'm adding a docBoost to each document. When I perform a search with both "q" and "fq" params everything work

Re: docBoost

2011-03-10 Thread Brian Lamb
Okay I think I have the idea: <![CDATA[ function BoostScores(row) { // if searching for recommendations add in the boost score if(some_condition) { row.put('$docBoost', row.get('boost_score')); } // end if(some_condition) r

Re: docBoost

2011-03-09 Thread Bill Bell
.apache.org/solr/DataImportHandler#ScriptTransformer >> >> >><![CDATA[ >>function f1(row) { >>// Add boost >>row.put('$docBoost',1.5); >>

Re: docBoost

2011-03-09 Thread Brian Lamb
the ScriptTransformer to perform the boost calcualtion and > addition. > http://wiki.apache.org/solr/DataImportHandler#ScriptTransformer > > ><![CDATA[ >function f1(row) { >// Add boost >row.put('$docBoost

Re: docBoost

2011-03-09 Thread Jayendra Patil
you can use the ScriptTransformer to perform the boost calcualtion and addition. http://wiki.apache.org/solr/DataImportHandler#ScriptTransformer <![CDATA[ function f1(row) { // Add boost row.put('$docBo

Re: docBoost

2011-03-09 Thread Brian Lamb
Anyone have any clue on this on? On Tue, Mar 8, 2011 at 2:11 PM, Brian Lamb wrote: > Hi all, > > I am using dataimport to create my index and I want to use docBoost to > assign some higher weights to certain docs. I understand the concept behind > docBoost but I haven't

docBoost

2011-03-08 Thread Brian Lamb
Hi all, I am using dataimport to create my index and I want to use docBoost to assign some higher weights to certain docs. I understand the concept behind docBoost but I haven't been able to find an example anywhere that shows how to implement it. Assuming the following config file:

DataImportHandler + docBoost

2010-06-17 Thread dbashford
Pulled this out of another thread of mine as it's the only bit left that I haven't been able to figure out. Can someone show me briefly how one would include a docBoost inside a DIH? I've got something like this... var rank = row.get('rank');