You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Matthias Herrmann (JIRA)" <ji...@apache.org> on 2013/05/17 07:55:24 UTC

[jira] [Updated] (SOLR-4835) highlighting in combination with join does not work in solr 4.0 - 4.2

     [ https://issues.apache.org/jira/browse/SOLR-4835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Herrmann updated SOLR-4835:
------------------------------------

    Description: 
I need to highlight results based on a query that contains a join operation.
I made a simple example by indexing example/exampledocs/*.xml which ships with standard Solr distribution. Having these documents indexed to the example server I run the following query:
[http://localhost:8983/solr/collection1/select?q=belkin&defType=lucene&wt=json&indent=true&hl=true&hl.fl=* ]
In the query result the section "highlighting" looks like:
{code}
"highlighting":{
    "F8V7067-APL-KIT":{
      "name":["<em>Belkin</em> Mobile Power Cord for iPod w/ Dock"],
      "manu_id_s":["<em>belkin</em>"],
      "manu":["<em>Belkin</em>"]},
    "IW-02":{
      "manu_id_s":["<em>belkin</em>"],
      "manu":["<em>Belkin</em>"]}}
{code}
So highlighting works fine. BUT when running this query: 
[http://localhost:8983/solr/collection1/select?q=\{!join+from=id+to=id\}belkin&defType=lucene&wt=json&indent=true&hl=true&hl.fl=*]
In the query result the section "highlighting" looks like:
{code}
"highlighting":{
    "F8V7067-APL-KIT":{},
    "IW-02":{}}
{code}
As you can see highlighting does not work in combination with join. Is this a bug or am I missing something?




  was:
q= {!join from=manu_id_s to=id}ipod
by highlighting this query it does not highlights the required field ,hence highlighting not works in join queries.




    
> highlighting in combination with join does not work in solr 4.0 - 4.2
> ---------------------------------------------------------------------
>
>                 Key: SOLR-4835
>                 URL: https://issues.apache.org/jira/browse/SOLR-4835
>             Project: Solr
>          Issue Type: Bug
>          Components: highlighter
>    Affects Versions: 4.0-ALPHA
>            Reporter: Matthias Herrmann
>              Labels: documentation
>
> I need to highlight results based on a query that contains a join operation.
> I made a simple example by indexing example/exampledocs/*.xml which ships with standard Solr distribution. Having these documents indexed to the example server I run the following query:
> [http://localhost:8983/solr/collection1/select?q=belkin&defType=lucene&wt=json&indent=true&hl=true&hl.fl=* ]
> In the query result the section "highlighting" looks like:
> {code}
> "highlighting":{
>     "F8V7067-APL-KIT":{
>       "name":["<em>Belkin</em> Mobile Power Cord for iPod w/ Dock"],
>       "manu_id_s":["<em>belkin</em>"],
>       "manu":["<em>Belkin</em>"]},
>     "IW-02":{
>       "manu_id_s":["<em>belkin</em>"],
>       "manu":["<em>Belkin</em>"]}}
> {code}
> So highlighting works fine. BUT when running this query: 
> [http://localhost:8983/solr/collection1/select?q=\{!join+from=id+to=id\}belkin&defType=lucene&wt=json&indent=true&hl=true&hl.fl=*]
> In the query result the section "highlighting" looks like:
> {code}
> "highlighting":{
>     "F8V7067-APL-KIT":{},
>     "IW-02":{}}
> {code}
> As you can see highlighting does not work in combination with join. Is this a bug or am I missing something?

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