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
-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
.
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
> 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
'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
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
--- 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
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
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
.apache.org/solr/DataImportHandler#ScriptTransformer
>>
>>
>><![CDATA[
>>function f1(row) {
>>// Add boost
>>row.put('$docBoost',1.5);
>>
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
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
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
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:
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');
15 matches
Mail list logo