RE: Boosting score of a document without deleting and adding another document

2011-05-11 Thread karan veer singh
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

RE: Boosting score of a document without deleting and adding another document

2011-05-11 Thread Ahmet Arslan
> 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

RE: Boosting score of a document without deleting and adding another document

2011-05-11 Thread karan veer singh
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

RE: Boosting score of a document without deleting and adding another document

2011-05-11 Thread Ahmet Arslan
> 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

RE: Boosting score of a document without deleting and adding another document

2011-05-11 Thread karan veer singh
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

RE: Boosting score of a document without deleting and adding another document

2011-05-11 Thread Ahmet Arslan
> 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

RE: Boosting score of a document without deleting and adding another document

2011-05-11 Thread karan veer singh
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

RE: Boosting score of a document without deleting and adding another document

2011-05-11 Thread Ahmet Arslan
> 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/

RE: Boosting score of a document without deleting and adding another document

2011-05-10 Thread karan veer singh
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 >

Re: Boosting score of a document without deleting and adding another document

2011-05-10 Thread Michael McCandless
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: >

RE: Boosting score of a document without deleting and adding another document

2011-05-10 Thread Ahmet Arslan
> 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

RE: Boosting score of a document without deleting and adding another document

2011-05-10 Thread Grijesh
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

RE: Boosting score of a document without deleting and adding another document

2011-05-10 Thread lboutros
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

RE: Boosting score of a document without deleting and adding another document

2011-05-10 Thread karan veer singh
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 >

RE: Boosting score of a document without deleting and adding another document

2011-05-10 Thread Grijesh
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:

RE: Boosting score of a document without deleting and adding another document

2011-05-10 Thread karan veer singh
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

Re: Boosting score of a document without deleting and adding another document

2011-05-10 Thread Grijesh
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