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
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
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
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
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
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
>
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
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
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