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