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

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

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

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
Ok thank you for your help, I think I will have to treat the problem in another way even if it will complicate things for me. thanks again On 05/22/2013 11:51 AM, Sandeep Mestry wrote: I'm running out of options now, can't really see the issue you're facing unless the debug analysis is posted.

Re: Boosting Documents

2013-05-22 Thread Sandeep Mestry
I'm running out of options now, can't really see the issue you're facing unless the debug analysis is posted. I think a thorough debugging is required from both application and solr level. If you want a customize scoring from Solr, you can also consider overriding DefaultSimilarity implementation

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
Yes I did debug it and there is nothing special about it, everything is treated the same, My Solr version is 4.2 The copy field is used because the 2 field are of different types but only one value is indexed in them (so no multiValue is required and it works perfectly). On 05/22/2013 11:

Re: Boosting Documents

2013-05-22 Thread Sandeep Mestry
Did you use the debugQuery=true in solr console to see how the query is being interpreted and the result calculation? Also, I'm not sure but this copyfield directive seems a bit confusing to me.. Because multiValued is false for Suggestion field so does that schema mean Suggestion has value only

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
I don't know if this can help (since the document boost should be independent of any schema) but here is my schema : |

Re: Boosting Documents

2013-05-22 Thread Sandeep Mestry
I think that is applicable only for the field level boosting and not at document level boosting. Can you post your query, field definition and results you're expecting. I am using index and query time boosting without any issues so far. also which version of Solr you're using? On 22 May 2013 10

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
I don't know if this is the issue or not but, concidering this note from the wiki : 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 fie

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
Thank you Sandeep, I did post the document like that (a minor difference is that I did not add the boost to the field since I don't want to boost on specific field, I boosted the whole document ' '), but the issue is that everything in the queries results has the same score even if they

Re: Boosting Documents

2013-05-22 Thread Sandeep Mestry
Hi Oussama, This is explained very nicely on Solr Wiki.. http://wiki.apache.org/solr/SolrRelevancyFAQ#index-time_boosts http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22add.22 All you need to do is something similar to below.. - 05991 Bridgewater What i

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
Thank 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: Why don't you boost during query time? Something like q=superman&qf=title^2 subject You can refer: http://wiki.apache.org/s

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 - User mailing list

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

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

Re: Boosting documents based on search term/phrase

2012-05-01 Thread Donald Organ
Perfect, this is working well. On Tue, May 1, 2012 at 5:33 PM, Jeevanandam wrote: > Yes, you can add in last-components section on default query handler. > > > elevator > > > - Jeevanandam > > > On 02-05-2012 3:53 am, Donald Organ wrote: > >> query elevation was exactly what I was talking

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 documents based on

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
Yes, you can add in last-components section on default query handler. elevator - Jeevanandam On 02-05-2012 3:53 am, Donald Organ wrote: query elevation was exactly what I was talking about. Now is there a way to add this to the default query handler? On Tue, May 1, 2012 at 4:26 PM, J

Re: Boosting documents based on search term/phrase

2012-05-01 Thread Donald Organ
query elevation was exactly what I was talking about. Now is there a way to add this to the default query handler? On Tue, May 1, 2012 at 4:26 PM, Jack Krupansky wrote: > Do you mean besides "query elevation"? > > http://wiki.apache.org/solr/**QueryElevationComponent

Re: Boosting documents based on search term/phrase

2012-05-01 Thread Jack Krupansky
Do you mean besides "query elevation"? http://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: solr-u

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