by including it in the fl (i.e. fl=id,
score,name,idRank), it does not display idRank (only displays the id, score and
name)
> Date: Wed, 11 May 2011 04:39:34 -0700
> From: iori...@yahoo.com
> Subject: RE: Boosting score of a document without deleting and adding another
> document
> I just want to confirm, (as I'm not quiet familiar with the
> function query syntax) will the following query be alright
> to search "car power adaptor", so that the entry with
> highest idRank be displayed first?
> http://localhost:8983/solr/select?indent=on&q=car%20power%20adaptor&fl=id,score,n
or&fl=id,score,name&_val_:idRank
Also, will I need to set the value of idRank for ALL items? Right now I have
only set it for those items which are being returned by this query.
> Date: Wed, 11 May 2011 03:52:36 -0700
> From: iori...@yahoo.com
> Subject: RE: Boosting score of a
> I did exactly the stuff that was told in the link. I have
> certain items with ids
>
> In schema.xml:I have set a fieldtype with name = idRankFile
> and keyField = id Also, a field with name idRank and type
> idRankFile
> In data directory, I made a text file external_idRankIn it,
> I set 3007WF
field. Any ideas
regarding the problem?
> Date: Wed, 11 May 2011 01:07:20 -0700
> From: iori...@yahoo.com
> Subject: RE: Boosting score of a document without deleting and adding another
> document
> To: solr-user@lucene.apache.org
>
> > How exactly do I define thes
> How exactly do I define these external keyfields?For
> example, I have a document in monitor.xml, and I want to
> define another field, lets say score1, to be used in
> FunctionQueries.From what I got from the documentation, I
> have to define a file called external_score1 in the index
> director
these files (data files - the .xml files) will be stored. Right now I'm
just using the example directory in the apachesolr download.(Sorry if these
questions seem too noobish!)
> Date: Wed, 11 May 2011 00:33:26 -0700
> From: iori...@yahoo.com
> Subject: RE: Boosting score of a document w
> Is the keyField over here the same thing as the "score" of
> the field?
It is not the same as score (it is an independent additional field) but you use
this field in FunctionQueries which means you can influence (multiply, add,
etc) score with it, or sort by it.
http://wiki.apache.org/solr/
Is the keyField over here the same thing as the "score" of the field?
> Date: Tue, 10 May 2011 06:39:32 -0700
> From: iori...@yahoo.com
> Subject: RE: Boosting score of a document without deleting and adding another
> document
> To: solr-user@lucene.apache.org
>
Lucene also lets you change the norms directly, from an IndexReader.
In theory this could do what you're seeking, I believe. But it's
rather expert... and I don't think it's exposed through to Solr (?).
Mike
http://blog.mikemccandless.com
On Tue, May 10, 2011 at 9:39 AM, Ahmet Arslan wrote:
>
> What I want to do is : everytime an item is searched, I get
> the ID of that document, and now I want to increase this
> document's score.Function queries at query time won't really
> help with this. Any way to do this other than adding the
> entire document again?
Looks like you need ExternalF
Nope can't do,
you can keep the counter at application end and update the time-stamp of
documents which have been searched then update/index the document with
counter or assign the boost to document being updated.
if keeping counter then by using function query you can influence the score
of hir
Perhaps the query elevation component is what you are looking for :
http://wiki.apache.org/solr/QueryElevationComponent
Ludovic.
-
Jouve
France.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Boosting-score-of-a-document-without-deleting-and-adding-another-document-tp29
What I want to do is : everytime an item is searched, I get the ID of that
document, and now I want to increase this document's score.Function queries at
query time won't really help with this. Any way to do this other than adding
the entire document again?
> From: kvs_cheezy_...@hotmail.com
>
You can add the boost at the time of indexing the doc at first time.
You can see the function queries at query time to boost the documents
dynamically.
You can see around DefaultSimilarityClass to tweak around scores
-
Thanx:
Grijesh
www.gettinhahead.co.in
--
View this message in context:
Any other workaround? Maybe by fiddling around with the source?
> From: kvs_cheezy_...@hotmail.com
> To: solr-user@lucene.apache.org
> Subject: Boosting score of a document without deleting and adding another
> document
> Date: Tue, 10 May 2011 16:17:25 +0530
>
>
>
> I want to add score for do
NO, You have to update the whole document .There is no way to update only
some of fields or any field attribute in solr/Lucene currently.
-
Thanx:
Grijesh
www.gettinhahead.co.in
--
View this message in context:
http://lucene.472066.n3.nabble.com/Boosting-score-of-a-document-without-deletin
17 matches
Mail list logo