You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Vladimir Strugatsky (JIRA)" <ji...@apache.org> on 2016/12/07 03:40:58 UTC

[jira] [Commented] (SOLR-4690) Highlighting Doesn't works when boost is used along with query

    [ https://issues.apache.org/jira/browse/SOLR-4690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15727574#comment-15727574 ] 

Vladimir Strugatsky commented on SOLR-4690:
-------------------------------------------

I was able to work around this problem by replacing {!type=edismax} with {!type=dismax}, but this assumes you don't use edismax-specific features (other than boost).

> Highlighting Doesn't works when boost is used along with query
> --------------------------------------------------------------
>
>                 Key: SOLR-4690
>                 URL: https://issues.apache.org/jira/browse/SOLR-4690
>             Project: Solr
>          Issue Type: Bug
>          Components: highlighter
>    Affects Versions: 4.1
>         Environment: windows and unix both
>            Reporter: lukes shaw
>            Priority: Critical
>
> Hi everyone, recently i was trying to have the boost in the query and highlighting on in parallel. But if have the boost, highlighting doesn't works, but the moment i remove the boost highlighting start working again.
> Below is the request i am sending.
> http://localhost:8983/solr/collection1/select?q=%2B_query_%3A%22
> {!type%3Dedismax+qf%3D%27body^1.0+title^10.0%27+pf%3D%27body^2%27+ps%3D36+pf2%3D%27body^2%27+pf3%3D%27body^2%27+v%3D%27apple%27+mm%3D100}%22&group=true&group.field=content_group_id_k&group.ngroups=true&group.limit=3&fl=id%2Clanguage_k%2Clast_modified_date_dt%2Ctitle&rows=20&hl.snippets=1&hl.fragsize=200&hl.fl=body&hl.fl=title&hl=true&hl.q=%2B_query_%3A%22{!type%3Dedismax+qf%3D%27body^1.0+title^10.0%27+pf%3D%27body^2%27+ps%3D36+pf2%3D%27body^2%27+pf3%3D%27body^2%27+v%3D%27apple%27+mm%3D100}
> %22&debugQuery=true&wt=json&indent=true&hl.snippets=1&hl.fragsize=200&hl.fl=body&hl.fl=title&hl=true&boost=boost_weight
> OR
> http://localhost:8983/solr/collection1/select?q=%2B_query_%3A%22
> {!type%3Dedismax+qf%3D%27body^1.0+title^10.0%27+pf%3D%27body^2%27+ps%3D36+pf2%3D%27body^2%27+pf3%3D%27body^2%27+v%3D%27apple%27+mm%3D100}
> %22&group=true&group.field=content_group_id_k&group.ngroups=true&group.limit=3&fl=id%2Clanguage_k%2Clast_modified_date_dt%2Ctitle&rows=20&hl.snippets=1&hl.fragsize=200&hl.fl=body&hl.fl=title&hl=true&debugQuery=true&wt=json&indent=true&hl.snippets=1&hl.fragsize=200&hl.fl=body&hl.fl=title&hl=true&boost=boost_weight
> But if i do above two without the boost or use bf(additive) instead of boost(multiplicative), things works but i don't get the boost(multiplicative).
> I am using SOLR4.1.0
> Any help in this is really appreciated.
> Regards,
> Lukes



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org