Re: Boosting Documents using the field Value

2017-06-27 Thread govind nitk
Hi Erick, Finally Made it work. bf=if(exists(query($qqone)),one_score,0)&qqone=one_query:\"google cloud\" Thanks a lot for guiding, also reminding its not url escape. No analyzers used. Regards, Govind On Tue, Jun 27, 2017 at 11:01 AM, govind nitk wrote: > Hi Erick, > I accept, I should

Re: Boosting Documents using the field Value

2017-06-26 Thread govind nitk
Hi Erick, I accept, I should have mentioned the what I was doing first. field types: one_query is "string", one_score is float. So No explicit analyzers. mentioned sow=false. and escaping as you mentioned. But still the error persist. - undefined field "cloud" Will get back. Regards, Givind O

Re: Boosting Documents using the field Value

2017-06-26 Thread Erick Erickson
bq: So, ultimate goal is when the exact query matches in field one_query, apply boost of one_score It would have been helpful to have made that statement in the first place, would have saved some false paths. What is your analysis chain here? If it's anything like "text_general" or the like then

Re: Boosting Documents using the field Value

2017-06-26 Thread govind nitk
Hi Developers, Erick I am able to add boost through function as below: bf=if(termfreq(one_query,"google"),one_score,0) Problem is when I say "google cloud" as query, it gives error: undefined field: \"cloud\"" I tried encoding the query(%20, + for space), but not able to get it working. So, ult

Re: Boosting Documents using the field Value

2017-06-25 Thread govind nitk
Hi Erick, Exactly this is what I was looking for. Thanks a lot. Regards, Govind On Mon, Jun 26, 2017 at 12:03 AM, Erick Erickson wrote: > Take a look at function queries. You're probably looking for "field", > "termfreq" and "if" functions or some other combination like that. > > On Sun, Jun

Re: Boosting Documents using the field Value

2017-06-25 Thread Erick Erickson
Take a look at function queries. You're probably looking for "field", "termfreq" and "if" functions or some other combination like that. On Sun, Jun 25, 2017 at 9:01 AM, govind nitk wrote: > Hi Erik, Thanks for the reply. > > My intention of using the domain_ct in the qf was, giving the weight >

Re: Boosting Documents using the field Value

2017-06-25 Thread govind nitk
Hi Erik, Thanks for the reply. My intention of using the domain_ct in the qf was, giving the weight present in the that document. e.g qf=category^domain_ct if the current query matched in the category, the boost given will be domain_ct, which is present in the current matched document. So if I

Re: Boosting Documents using the field Value

2017-06-24 Thread Erik Hatcher
With dismax use bf=domain_ct. you can also use boost=domain_ct with edismax. > On Jun 23, 2017, at 23:01, govind nitk wrote: > > Hi Solr, > > My Index Data: > > id name category domain domain_ct > 1 Banana Fruits Home > Fruits > Banana 2 > 2 Orange Fruits Home > Fruits > Orange 4 > 3 Samsung

Boosting Documents using the field Value

2017-06-23 Thread govind nitk
Hi Solr, My Index Data: id name category domain domain_ct 1 Banana Fruits Home > Fruits > Banana 2 2 Orange Fruits Home > Fruits > Orange 4 3 Samsung Mobile Electronics > Mobile > Samsung 3 I am able to retrieve the documents with dismax parser with the weights mentioned as below. http://local

Re: Negative Boosting documents with a certain word

2015-05-07 Thread Chris Hostetter
: Right now, I specify the boost for my request handler as: : : . : ln(qty) : : : : Is there a way to specify this boost in the Solrconfig.xml? : : I tried: (*:* -Refurbished)^10 and I get the : following exception: : : ERROR - 2015-05-01 15:13:41.609; org.apache.solr.commo

Re: Negative Boosting documents with a certain word

2015-05-02 Thread O. Olson
t; (*:* -Refurbished)^10 > > -Hoss > http://www.lucidworks.com/ -- View this message in context: http://lucene.472066.n3.nabble.com/Negative-Boosting-documents-with-a-certain-word-tp4203224p4203488.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Negative Boosting documents with a certain word

2015-04-30 Thread Chris Hostetter
n certain words in : their description. : : Thank you in advance for all your help, : O. O. : : : : -- : View this message in context: http://lucene.472066.n3.nabble.com/Negative-Boosting-documents-with-a-certain-word-tp4203224.html : Sent from the Solr - User mailing list archive at Nabble.com. : -Hoss http://www.lucidworks.com/

Negative Boosting documents with a certain word

2015-04-30 Thread O. Olson
if they contain certain words in their description. Thank you in advance for all your help, O. O. -- View this message in context: http://lucene.472066.n3.nabble.com/Negative-Boosting-documents-with-a-certain-word-tp4203224.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Boosting documents by categorical preferences

2014-01-30 Thread Amit Nithian
Chris, Sounds good! Thanks for the tips.. I'll be glad to submit my talk to this as I have a writeup pretty much ready to go. Cheers Amit On Tue, Jan 28, 2014 at 11:24 AM, Chris Hostetter wrote: > > : The initial results seem to be kinda promising... of course there are > many > : more optimiz

Re: Boosting documents by categorical preferences

2014-01-28 Thread Chris Hostetter
: The initial results seem to be kinda promising... of course there are many : more optimizations I could do like decay user ratings over time to indicate : that preferences decay over time so a 5 rating a year ago doesn't count as : much as a 5 rating today. : : Hope this helps others. I'll open

Re: Boosting documents by categorical preferences

2014-01-27 Thread Amit Nithian
Hi Chris (and others interested in this), Sorry for dropping off.. I got sidetracked with other work and came back to this and finally got a V1 of this implemented. The final process is as follows: 1) Pre-compute the global categorical num_ratings/average/std-dev (so for Action the average rating

Boosting documents at index time, based on payloads

2014-01-10 Thread michael.boom
ct so, but then how should this behaviour be implemented - the basic recipe failed to work, so I'm a little confused. Thanks! - Thanks, Michael -- View this message in context: http://lucene.472066.n3.nabble.com/Boosting-documents-at-index-time-based-on-payloads-tp4110661.html Sent from

Re: Boosting documents by categorical preferences

2013-11-22 Thread Chris Hostetter
: I thought about that but my concern/question was how. If I used the pow : function then I'm still boosting the bad categories by a small : amount..alternatively I could multiply by a negative number but does that : work as expected? I'm not sure i understand your concern: negative powers would

Re: Boosting documents by categorical preferences

2013-11-20 Thread Amit Nithian
I thought about that but my concern/question was how. If I used the pow function then I'm still boosting the bad categories by a small amount..alternatively I could multiply by a negative number but does that work as expected? I haven't done much with negative boosting except for the sledgehammer

Re: Boosting documents by categorical preferences

2013-11-19 Thread Chris Hostetter
: My approach was something like: : 1) Look at the categories that the user has preferred and compute the : z-score : 2) Pick the top 3 among those : 3) Use those to boost search results. I think that totaly makes sense ... the additional bit i was suggesting that you consider is that instead of

Re: Boosting documents by categorical preferences

2013-11-18 Thread Amit Nithian
Hey Chris, Sorry for the delay and thanks for your response. This was inspired by your talk on boosting and biasing that you presented way back when at a meetup. I'm glad that my general approach seems to make sense. My approach was something like: 1) Look at the categories that the user has pref

Re: Boosting documents by categorical preferences

2013-11-14 Thread Chris Hostetter
: I have a question around boosting. I wanted to use the &boost= to write a : nested query that will boost a document based on categorical preferences. You have no idea how stoked I am to see you working on this in a real world application. : Currently I have the weights set to the z-score equi

Boosting documents by categorical preferences

2013-11-12 Thread Amit Nithian
Hi all, I have a question around boosting. I wanted to use the &boost= to write a nested query that will boost a document based on categorical preferences. For a movie search for example, say that a user likes drama, comedy, and action. I could use things like qq=&q={!boost%20b=$b%20defType=edis

Re: Boosting Documents

2013-05-23 Thread Oussama Jilal
Oh thank you Chris, this is much clearer, and thank you for updating the Wiki too. On 05/22/2013 08:29 PM, Chris Hostetter wrote: : NOTE: make sure norms are enabled (omitNorms="false" in the schema.xml) for : any fields where the index-time boost should be stored. : : In my case where I only n

Re: Boosting Documents

2013-05-22 Thread Chris Hostetter
: NOTE: make sure norms are enabled (omitNorms="false" in the schema.xml) for : any fields where the index-time boost should be stored. : : In my case where I only need to boost the whole document (not a specific : field), do I have to activate the << omitNorms="false" >> for all the fields : in

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
olr/SolrRelevancyFAQ<http://wiki.apache.org/solr/SolrRelevancyFAQ> http://wiki.apache.org/solr/**SolrRelevancyFAQ> <http://wiki.**apache.org/solr/**SolrRelevancyFAQ<http://apache.org/**solr/**SolrRelevancyFAQ> http://apache.org/solr/**SolrRelevancyFAQ> http:/

Re: Boosting Documents

2013-05-22 Thread Sandeep Mestry
; >>>>>>> All you need to do is something similar to below.. >>>>>>> >>>>>>> - >>>>>>> >>>>>>> >>>>>> name="employeeId">05991>>>>&g

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
<http://wiki.apache.org/solr/SolrRelevancyFAQ> <http://**wiki.apache.org/solr/SolrRelevancyFAQ<http://wiki.apache.org/solr/**SolrRelevancyFAQ> <http://wiki.**apache.org/**solr/**SolrRelevancyFAQ<http://apache.org/solr/**SolrRelevancyFAQ> http://wiki.apache.org/solr/So

Re: Boosting Documents

2013-05-22 Thread Sandeep Mestry
your message is whether you need better scoring >>>>> or >>>>> better sorting. so, additionally, you can consider adding a secondary >>>>> sort >>>>> parameter for the docs having the same score. >>>>> http://wiki.apache.org/solr/CommonQueryParameters#sort<http://wiki.ap

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
e^2 subject You can refer: http://wiki.apache.org/solr/SolrRelevancyFAQ<http://wiki.apache.org/solr/**SolrRelevancyFAQ> <http://wiki.**apache.org/solr/**SolrRelevancyFAQ<http://wiki.apache.org/solr/SolrRelevancyFAQ> -- View this message in context: http://lucene.472066.n3.** nabb

Re: Boosting Documents

2013-05-22 Thread Sandeep Mestry
k you for your reply bbarani, >>>> >>>> I can't do that because I want to boost some documents over others, >>>> independing of the query. >>>> >>>> >>>> On 05/21/2013 05:41 PM, bbarani wrote: >>>> &

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
st during query time? Something like q=superman&qf=title^2 subject You can refer: http://wiki.apache.org/solr/**SolrRelevancyFAQ<http://wiki.apache.org/solr/SolrRelevancyFAQ> -- View this message in context: http://lucene.472066.n3.** nabble.com/Boosting-Documents-**tp4064955p4064966

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
Q> -- View this message in context: http://lucene.472066.n3.** nabble.com/Boosting-Documents-**tp4064955p4064966.html<http://lucene.472066.n3.nabble.com/Boosting-Documents-tp4064955p4064966.html> Sent from the Solr - User mailing list archive at Nabble.com.

Re: Boosting Documents

2013-05-22 Thread Sandeep Mestry
ing like q=superman&qf=title^2 subject >> >> You can refer: >> http://wiki.apache.org/solr/**SolrRelevancyFAQ<http://wiki.apache.org/solr/SolrRelevancyFAQ> >> >> >> >> -- >> View this message in context: http://lucene.472066.n3.** &

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
iki.apache.org/solr/SolrRelevancyFAQ -- View this message in context: http://lucene.472066.n3.nabble.com/Boosting-Documents-tp4064955p4064966.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Boosting Documents

2013-05-21 Thread bbarani
Why don't you boost during query time? Something like q=superman&qf=title^2 subject You can refer: http://wiki.apache.org/solr/SolrRelevancyFAQ -- View this message in context: http://lucene.472066.n3.nabble.com/Boosting-Documents-tp4064955p4064966.html Sent from the Solr - Use

Boosting Documents

2013-05-21 Thread Oussama Jilal
Hi everyone, I have a small (I hope) issue, and I wish someone could point me to the right direction. I have been indexing some documents using Solr 4.1 and specifying different "boost"s for different types of documents (boost for the whole document). But when searching, I noticed that the s

Re: Boosting documents with terms derived from clustering - good idea?

2013-05-19 Thread Otis Gospodnetic
Hi, I would take a different approach. Track users' queries and their clicks. Aggregate queries and start thinking of them as tags/labels. Aggregate them and use top N to tag your docs. Alternatively/additionally, extract significant terms and phrases from clicked-to docs and use that to tag you

Boosting documents with terms derived from clustering - good idea?

2013-05-14 Thread David Parks
We have a number of queries that produce good results based on the textual data, but are contextually wrong (for example, an "SSD hard drive" search matches the music album "SSD hip hop drives us crazy". Textually a fair match, but SSD is a term that strongly relates to technical documents.

Re: Boosting documents matching in a specific shard

2012-08-24 Thread Erick Erickson
Well, the simplest would be to include the shard ID in the document when you index it, then just boost on that field... Best Erick On Thu, Aug 23, 2012 at 8:33 AM, Husain, Yavar wrote: > I am aware that IDF is not distributed. Suppose I have to boost or give > higher rank to documents which are

Boosting documents matching in a specific shard

2012-08-23 Thread Husain, Yavar
I am aware that IDF is not distributed. Suppose I have to boost or give higher rank to documents which are matching in a specific/particular shard, how can I accomplish that? ** This message may contain conf

Re: Boosting documents based on search term/phrase

2012-05-01 Thread Donald Organ
ot;^" suffix operator after >>> a >>> term/phrase)? >>> >>> -- Jack Krupansky >>> >>> -Original Message- From: Donald Organ >>> Sent: Tuesday, May 01, 2012 3:59 PM >>> To: solr-user >>> Subject: Boosting documents based on search term/phrase >>> >>> Is there a way to boost documents based on the search term/phrase? >>> >>> >

Re: Boosting documents based on search term/phrase

2012-05-01 Thread Otis Gospodnetic
Hi, Can you please give an example of what you mean? OtisĀ  Performance Monitoring for Solr / ElasticSearch / HBase - http://sematext.com/spmĀ  > > From: Donald Organ >To: solr-user >Sent: Tuesday, May 1, 2012 3:59 PM >Subject: Boosting

Re: Boosting documents based on search term/phrase

2012-05-01 Thread Jack Krupansky
Here's some doc from Lucid: http://lucidworks.lucidimagination.com/display/solr/The+Query+Elevation+Component -- Jack Krupansky -Original Message- From: Donald Organ Sent: Tuesday, May 01, 2012 5:23 PM To: solr-user@lucene.apache.org Subject: Re: Boosting documents based on s

Re: Boosting documents based on search term/phrase

2012-05-01 Thread Jeevanandam
k Krupansky -Original Message- From: Donald Organ Sent: Tuesday, May 01, 2012 3:59 PM To: solr-user Subject: Boosting documents based on search term/phrase Is there a way to boost documents based on the search term/phrase?

Re: Boosting documents based on search term/phrase

2012-05-01 Thread Donald Organ
//wiki.apache.org/solr/QueryElevationComponent> > > And besides explicit boosting by the user (the "^" suffix operator after a > term/phrase)? > > -- Jack Krupansky > > -Original Message- From: Donald Organ > Sent: Tuesday, May 01, 2012 3:59 PM > To

Re: Boosting documents based on search term/phrase

2012-05-01 Thread Jack Krupansky
012 3:59 PM To: solr-user Subject: Boosting documents based on search term/phrase Is there a way to boost documents based on the search term/phrase?

Boosting documents based on search term/phrase

2012-05-01 Thread Donald Organ
Is there a way to boost documents based on the search term/phrase?

Re: Boosting documents based on the vote count

2010-10-20 Thread Alexandru Badiu
Thanks, will look into those. Andu On Mon, Oct 18, 2010 at 4:14 PM, Ahmet Arslan wrote: >> I know but I can't figure out what >> functions to use. :) > > Oh, I see. Why not just use {!boost b=log(vote)}? > > May be scale(vote,0.5,10)? > > > >

Re: Boosting documents based on the vote count

2010-10-18 Thread Ahmet Arslan
> I know but I can't figure out what > functions to use. :) Oh, I see. Why not just use {!boost b=log(vote)}? May be scale(vote,0.5,10)?

Re: Boosting documents based on the vote count

2010-10-18 Thread Alexandru Badiu
I know but I can't figure out what functions to use. :) On Mon, Oct 18, 2010 at 1:38 PM, Ahmet Arslan wrote: >> I have a field in my schema which holds the number of votes >> a document >> has. How can I boost documents based on that number? > > you can do it with http://wiki.apache.org/solr/Func

Re: Boosting documents based on the vote count

2010-10-18 Thread Ahmet Arslan
> I have a field in my schema which holds the number of votes > a document > has. How can I boost documents based on that number? you can do it with http://wiki.apache.org/solr/FunctionQuery

Boosting documents based on the vote count

2010-10-18 Thread Alexandru Badiu
Hello all, I have a field in my schema which holds the number of votes a document has. How can I boost documents based on that number? Something like the one which has the maximum number has a boost of 10, the one with the smallest number has 0.5 and in between the values get calculated automatic

Re: FunctionQuery and boosting documents using date arithmetic

2007-08-13 Thread Yonik Seeley
On 8/12/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: > : I'm having the date boosting function as well. I'm using this function: > : F = recip(rord(creationDate),1,1000,1000)^10. However, since I have around > : 10,000 of documents added in one day, rord(createDate) returns very > : different val

Re: FunctionQuery and boosting documents using date arithmetic

2007-08-12 Thread Chris Hostetter
: I'm having the date boosting function as well. I'm using this function: : F = recip(rord(creationDate),1,1000,1000)^10. However, since I have around : 10,000 of documents added in one day, rord(createDate) returns very : different values for the same createDate. For example, the last document yo

Re: FunctionQuery and boosting documents using date arithmetic

2007-08-12 Thread climbingrose
We add around 10,000 docs during week days and 5,000 during weekends. On 8/12/07, Pieter Berkel <[EMAIL PROTECTED]> wrote: > > Do you consistently add 10,000 documents to your index every day or does > the > number of new documents added per day vary? > > > On 11/08/07, climbingrose <[EMAIL PROTEC

Re: FunctionQuery and boosting documents using date arithmetic

2007-08-12 Thread Pieter Berkel
Do you consistently add 10,000 documents to your index every day or does the number of new documents added per day vary? On 11/08/07, climbingrose <[EMAIL PROTECTED]> wrote: > > I'm having the date boosting function as well. I'm using this function: > F = recip(rord(creationDate),1,1000,1000)^10.

Re: FunctionQuery and boosting documents using date arithmetic

2007-08-12 Thread Pieter Berkel
On 11/08/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > i would agree with you there, this is where a more robust (ie: > less efficient) DateField-ish class that supports configuration options > to specify: > 1) the output format > 2) the input format(s) > 3) the indexed format > ...as Si

Re: FunctionQuery and boosting documents using date arithmetic

2007-08-11 Thread climbingrose
I'm having the date boosting function as well. I'm using this function: F = recip(rord(creationDate),1,1000,1000)^10. However, since I have around 10,000 of documents added in one day, rord(createDate) returns very different values for the same createDate. For example, the last document added with

Re: FunctionQuery and boosting documents using date arithmetic

2007-08-10 Thread Chris Hostetter
: Actually, just thinking about this a bit more, perhaps adding a function : call such as parseDate() might add too much overhead to the actual query, : perhaps it would be better to first convert the date to a timestamp at index : time and store it in a field type slong? This might be more effic

Re: FunctionQuery and boosting documents using date arithmetic

2007-08-06 Thread Pieter Berkel
Actually, just thinking about this a bit more, perhaps adding a function call such as parseDate() might add too much overhead to the actual query, perhaps it would be better to first convert the date to a timestamp at index time and store it in a field type slong? This might be more efficient but

FunctionQuery and boosting documents using date arithmetic

2007-08-06 Thread Pieter Berkel
I've been using a simple variation of the boost function given in the examples used to boost more recent documents: recip(rord(creationDate),1,1000,1000)^1.3 While it seems to work pretty well, I've realised that this may not be quite as effective as i had hoped given that the calculation is base