You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "lukes shaw (JIRA)" <ji...@apache.org> on 2013/04/09 01:28:15 UTC

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

lukes shaw created SOLR-4690:
--------------------------------

             Summary: 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=bosy&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=bosy&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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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